Identify current CentOS version

how to get current CentOS version:

cat /etc/centos-release

and to see kernel info:

uname -a

Rackspace API: trove install to enable root user

Rackspace Trove set-up:

Mac OSX:

sudo easy_install pip
sudo pip install python-troveclient

# trove:

trove list
trove root-enable

Clear DNS cache on Mac OSX

How to reset (flush) the DNS cache on Mac OSX

OSX 10.9 (Mavericks)
dscacheutil -flushcache
sudo killall -HUP mDNSResponder

should also work for 10.10 (Yosemite)

Get build ID from Git repo

git log --pretty=oneline | wc -l

Run multiple copies of Skype on Mac

sudo /Applications/ /secondary

Prettify JSON output from the command line

to show formatted JSON and basic linting:
echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool

« Previous Entries