Dec

23

Show node in json format

knife node show -l -F json node_name

Jan

26

Some commands

Create and grant a remote user access to all mysql db's:grant all privileges on *.* to username@'%' identified by 'password' with grant option;
Reverse lookup:dig -x 192.168.1.1 +short
Add to /etc/ssh/ssh_config for ssh sessions to keep connection alive:ServerAliveInterval 5

Jan

26

Reload /etc/profile without logout

~source /etc/profile

Sep

23

Dumping/restoring a single mysql table

Dump: mysqldump -u user -p db_name table_name > tabledump.sql
Restore: mysql -u user -p db_name < tabledump.sql

Aug

14

Inserting a pic

Testing pic insertion
Hitler