Random technical tips and hilarity encountered over the years.
SSH
-
Transparent SSH
It will create an id_rsa and id_rsa.pub in your .ssh directory. Copy the id_rsa.pub into your authorized_keys on the target machine.
ssh-keygen
ssh-keygen -b 1024 -t rsa
Select no passphrase. Double check that authorized_keys has permission to 400.
Timeout
ServerAliveInterval 59
SSH Timeouts making you craaazy?
add to the bottom of your /etc/ssh_config where the integer is seconds.
your client will send a packet to keep the connection alive.
Unix
-
Entropy
Running out of randomness on your system? It's actually happend to us. It was the the darndest thing. Try this cryptographically sound random number generator called LavaRnd.
MySQL
Using dump files on MySQL. Can't ever seem to remember these commands.
MYSQL dump
/usr/local/mysql/bin/mysqldump -u root -p --opt dbname > dboutfile.dump
mysqldump -h hostname -u user -p databasename > filename.dump
MYSQL load a dumpfile
mysql -h hostname -u user -p databasename < filename.dump
Searching
filegrep
find . -type f -exec fgrep -i -H 'Module::Name::Here' {} \;
files modified in n minutes
find -type f -mmin n
SVN
Setting file types to binary for SVN:
svn propset svn:mime-type application/octet-stream 'filename'
Applications
-
FireFox
Contextual or left click popup menu. In the location bar:
about:config
search for
ui.click_hold_context_menus : true