Here’s a quick way of configuring your (Linux-based) Git installation to use the excellent Meld program by default for displaying/editing the outputs of the git
Continue readingCategory: Command line tools
Command-line option parser in JavaScript.
Here’s a small but very effective command-line option parser written in JavaScript (uses NodeJs). You can get the up-to-date source code at http://gist.github.com/982499. I wrote
Continue readingLua2C, an updated version
I know I have been “missing in action” lately but I am working furiously, and I seem to have too little time for my blog
Continue readingURI parsing using Bash built-in features
A bit of background A while ago I posted an article describing how one could parse complete URIs in Bash using the sed program. Since
Continue readingRecursive chmod distinguishing files from folders
Version 3 An even better method is: find “$target” -type f -exec chmod -c “$mode_files” {} \; \ -or -type d -exec chmod -c “$mode_dir”
Continue readingBash URI parser using SED
Warning! This version is now obsolete! Check out the new and improved version (using only Bash built-ins) here! Here is a command-line (bash) script that
Continue readingRecursive file/directory change-detection
Disclaimer This article explores a way in which an approximate “fingerprint” of a file tree can be created! If all you want is to detect
Continue readingDetect number of CPUs on a machine
UPDATE: Steven pointed out (very nicely) that there’s no need for cat in this picture, grep would do just fine on its own. So, thanks
Continue reading