Archive for category Tools

openbox followMouse essential configuration

Focus-follows-mouse coupled with the disabled Raise-on-focus window property is a mode of operation for a window manager, highly targeted at the professional use, unheard of in the Microsoft Windows world. Yet, it takes some fine configuration tweaks to get it to the prime-time.

, , ,

No Comments

SPF and SOHO privacy

SPF (Sender Policy Framework) is cool stuff and when implemented properly helps vanity domain owners play on par with big email service providers, like gmail. However, in its basic form it presents privacy concerns for small offices operating out of their homes, or any other small mail senders. The problem is that anyone on the […]

, , ,

No Comments

Shortest monitoring script on earth

Right after I got my quite elaborate Nagios setup running in my local network, I thought to myself “What if my network loses connectivity to the world and my GSM-SMS gateway fails? How am I going to be notified of such a grand disaster?” Well, as usual, a shell one-liner comes to rescue.

, , ,

No Comments

TLS in postfix SMTP client

DreamHost changed SSL cert for mail once again. There is a tricky way of adding CA certificates into Linux system’s certs repository: Put CA certificates in /usr/local/share/ca-certificates/, and NOT the system directory /usr/share/ca-certificates/ run update-ca-certificates to update the compiled list of CA certificates. Add the path to /etc/postfix/main.cf : smtp_tls_CApath = /etc/ssl/certs … but I […]

, , , , , ,

No Comments

Multiple –exclude options to tar

The tar’s “–exclude=PATTERN” option has always had me perplexed. As this is mostly intended for automation scenarios, I have never paid much attention to this option resorting to its more “pro-batch” variant “–exclude-from FILE”. But today, as I went about making some backups I thought it’s enough, I need to learn how to use this […]

, ,

No Comments

Clean up EXIF tags in digital photos with 1-liner

Use the following one-line script to control witch EXIF data to leave in the photos published online: exiftool -P -overwrite_original -all= -tagsFromFile @ -ExposureTime -MeteringMode -Flash -FocalLength -FocalLengthIn35mmFormat -FocusDistance -VibrationReduction -FocusMode -CreateDate -DateTimeOriginal -ISO -FNumber -UserComment -copyright='(c)2011, Alexander Shcheblikin’ -artist=’Alexander Shcheblikin’ -model=”Sasha’s DX dSLR” _DSC*jpg This should all be entered on one line (note: the […]

, , , , , ,

No Comments

Strip HTML in mutt

A quick fix for conveniently reading (and replying to) HTML MIME emails in mutt mail agent.

, , ,

5 Comments

Auto-fill post_title for WordPress pictures

WordPress is so good for SEO in part thanks to the large number of data fields available for each post: post title, excerpt, name (slug) and, finally, content. This allows for deep customization when presenting your post to the WWW. While it’s fine to fill all those fields for a regular article it may be […]

, , , ,

No Comments

Adjust subtitles timing with Perl 1-liner

I usually record movies off TV with only one soundtrack – English. And it happened that I needed to give one such movie to someone Russian-speaking. The solution was to find the appropriate subtitles in Russian and hand the subtitles file along with the video file. The only problem was the subtitles were for the […]

, , ,

2 Comments

See All Traffic by a Referrer in access.log

In your web-stats, you may sometimes find an unknown referrer, which might have sent you a few visitors. Intrigued by it you go and grep Apache’s access.log to see what those visitors came to read: grep “referrer” access.log | less That line is enough in most situations, but what if you get intrigued yet further […]

, , , , , , ,

No Comments