Author Archives: silverdrs

Useful online font identification tools

https://www.myfonts.com/WhatTheFont/ https://www.fontsquirrel.com/matcherator One of them will probably get you to the font you are in need of. Advertisements

Posted in Uncategorized | Leave a comment

Rubygems: Rebuild native extensions

Reposted after “makandropedia”: Rarely, you might want to rebuild all gems with native extensions, because they might be compiled against outdated system libraries, resulting in some warnings or even segfaults or other ruby errors. You can do that using gem … Continue reading

Posted in Coding, Rails | Tagged , | Leave a comment

One – liner to batch rename files with regex-remove part of the filename

Don’t read this post. It’s only for me so that I don’t forget it 😉 After a long fight with bash, find, sed, … Here is the one – liner: for i in $(find -E . -regex ‘(.*[a-zA-Z]{3}[0-9]{3}[a-zA-Z]{3}_[0-9]{9})(\.[0-9])(\.[jJ][pP]([eE])*[gG])’) ; do … Continue reading

Posted in bash, Coding | Tagged , , , , | Leave a comment

One-bash-liner to get rid of .WMV container

For reasons known probably to only a very few, selected ones – videos contained in the “.WMV” container seem to have occasional problems with seeking and positioning when played back with XBMC (or “Kodi” if you adapted to the brave … Continue reading

Posted in Video | Tagged , , , | Leave a comment

Rails derailed again (and again)

Executive summary (aka TL;DR) Rails docs suck… erm, no. I mean they are great but most probably written by people who never actually had to use them. If you want to follow Rails Guides and install a fresh Rails environment … Continue reading

Posted in Rails, Rants | Tagged , , , , | 4 Comments

PHP’s “associative array”: removing blacklisted or keeping whitelisted keys

Yup, if there is one language I loathe more than PHP, it’s Javascript… but this here is about PHP and how to either remove unwanted keys from an “associative array” (as they call it in PHP world) or leave only … Continue reading

Posted in Coding, php | Tagged , | Leave a comment

openvpn inactivity timeout (–ping-restart) restarting

So, there’s a nicely configured OpenVPN server, there is the client config that is proven to work with all your colleagues around and everything “just works” … or maybe, rather “just needs more work”? was it? If you happen to … Continue reading

Posted in Coding, DevOps | Tagged | Leave a comment