Preferred Tools on Linux

Might need Epel or other repo For CentOS 6 : yum install epel-release -y yum install net-tools man screen htop vim-enhanced wget iotop iftop sysstat usbutils nfs-utils bind-utils ntp tcpdump telnet tree mlocate zip unzip pciutils git -y For Ubuntu apt-get install -y net-tools man screen htop vim wget iotop iftop sysstat usbutils ntp tcpdump […]

Pretty Json in Bash

Simply pipe through python -m json.tool e.g.   curl -u Administrator:kpassword http://172.16.3.136:8091//pools/default | python -m json.tool  

Restoring a bucket in Couchbase

[root@mofo bin]# ./cbrestore /tmp/cbbackup/2015-01-19T220530Z/2015-01-19T220530Z-full/ -u Administrator -ppassword http://mofo.lan:8091 –bucket-source=beer-sample –bucket-destination=DAVID [####################] 100.0% (7303/estimated 7303 msgs) bucket: beer-sample, msgs transferred… : total | last | per sec byte : 2541549 | 2541549 | 3415000.2 done [root@mofo bin]#