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:
# http://docs.rackspace.com/cdb/api/v1.0/cdb-getting-started/content/Install_Trove_Client.html

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/Skype.app/Contents/MacOS/Skype /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