commandlinefu.com

s3cmd du s3://bucket-name | awk '{print $0/1024/1024/1024" GB"}'

rotate logs startup script for carte server Software Setup centos 6.5 set hostname in /etc/hosts start sshd

If replication is broken by a simple invalid query, i.e. grants change, etc. you can force-skip that query:

http://www.codetweet.com/nginx/solved-504-gateway-timeout-error-in-nginx-web-server/ https://rtcamp.com/tutorials/nginx/tweaking-fastcgi-buffers/

netstat -A inet -p ss -tp

stackoverflow.com

for dir in /tmp/*/ do dir=${dir%*/} echo ${dir##*/} done

find . -type d -ctime +60 -exec rm -rf {} +

Toolbox Cash on Go's deck

rsync --partial --progress --rsh=ssh user@host:remote_file local_file https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vps

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm"

Toolbox Cash on Go's deck

nohup find /Backup/ -type f -execdir shred -zu -n7 '{}' \; &

sed -i".bak" '3d' filename.txt

stackoverflow.com

Ctrl+Z to stop (pause) the program and get back to the shell bg to run it in the background...

Best results in other decks

opscomplete

This is a collection of frequently asked questions about the makandra hosting environment and our operations services.

When changing glibc versions, it's possible to end up with corrupt indexes in PostgreSQL. Are My Indexes Affected?

Search in all decks