Securely Delete Linux Server

Shutting down and deleting a Linux server securely – overwrite disk data using: dd if=/dev/zero of=/dev/sdXXX bs=1048576 where sdXXX is found by using df which returns something like Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda 98438788 29142068 64296324 32% / varrun 524288 44 524244 1% /var/run varlock 524288 4 524284 1% /var/lock udev 524288… Read More »

Linux do-release-upgrade Checklist Recover from Broken Pipe

Before a do-release-upgrade in Ubuntu Linux, here’s a quick checklist of todo’s: Backup important files (apache sites / log files / conf files, PHP .ini files, databases, cron scripts, .bash_aliases, .profile, upstart scripts) Clear up enough space for upgrading (usually around 1GB) Open up a secondary SSH window and alternate port for firewall if you get… Read More »

Bluetooth Speaker Sound Delay Fix Macbook Pro

Suffering 1-2 second sound delay between video on Macbook Pro and bluetooth speaker (Jabra Solemate in my case) I searched for a solution.  Updating the bluetooth speaker firmware (from version 1.33 to 1.34 on the Jabra Solemate) solved/fixed the sound video sync delay problem for me between a Macbook Pro Retina (2012) and a Jabra… Read More »

Sony A7r vs. Leica M9 Dynamic Range Compared

The Sony A7r camera body vs. Leica M9 camera body sensor dynamic range comparison in these two photos illustrates the advantage Sony has in its latest 24MP CMOS full-frame camera sensor (same as used in the Nikon D600/610). Sony A7r with Leica 75mm f/2 lens Leica M9 with Leica 75mm f/2 lens (Use left &… Read More »

Splunk – account currently not available – boot-start

./splunk enable boot-start -user splunk returns error: This account is currently not available. First-time-run has not finished.  Ignore this error when previewing migration – exiting. Cause for error is the specified user has no shell. Fix – set the shell for the splunk user (“splunk” in this case), to /bin/bash. Run in the terminal: usermod… Read More »

ls sort by date modified os x

Sorting directory or file listing by date last changed/modified on Mac OS X (with long listing & attributes such as size & permissions): ls -latc On linux: ls -laSt

Bash move-jump word forward backward iTerm

In bash terminal, to skip forward or backward whole words you need to send meta + f and meta + b, but Mac’s don’t have alt keys, rather option. iTerm allows you to change option to meta under profiles (or globally in Keys).  Change option key to meta shown below and you’ll be able to… Read More »

aptitude package manager – how to use tutorial

Debian / Ubuntu linux visual package manager, a step-up from apt / apt-get command line for installing your LAMP server. Navigating aptitude with hot keys ? – help screen with partial list of hot keys l – filter packages (lower case L), shows only packages / – search, places cursor (within context of all packages)… Read More »

Complete Uninstall Eye-Fi

After finding Jeff Tchang’s Python (programming language) Eye-Fi lightweight file transfer server, I’ve decided to uninstall completely the Eye-Fi Center and Helper from my Mac.  Mostly because the Eye-Fi Helper continues to start on boot of my Mac, even after I’ve set it to Not Start on Boot. There’s no uninstaller for Eye-Fi Center &… Read More »