Posts Tagged how to

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

chattr for hackers

Yet another boring chapter, Chapter 5 the filesystem in the “UNIX and Linux System Administration Handbook”, bar the excellent overview of the ACL topic, still has a bit of fun going on. Linux defines a set of supplemental flags that can be set on files to request special handling. The immutable and append-only flags (i […]

, , , , ,

No Comments

System administration: How to start?

Today, a good friend of mine Nikolai Dyumin, a seasoned PhD in mathematics, asked me of a recommended book on the Unix system administration topic. Immediately I recalled of the “Unix System Administration Handbook” by Evi Nemeth “and kids” paper back sample of the 2nd edition I have had and praised a lot since my […]

, , , , ,

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

dataserv.exe: energy hog #1 from APC, not so “green”

This service from APC is supposed to take care of calculating energy usage. The irony of this all is that this process holds one of the top positions in CPU hogs list. Take a look: it takes more CPU cycles than many of the most demanding processes in the system – virtual machines. (In other […]

, , ,

4 Comments