Skip to content

Instantly share code, notes, and snippets.

@justinseiter
justinseiter / openbox_autostart.sh
Created October 23, 2013 15:25
Openbox autostart.sh
## Openbox autostart.sh
## ====================
## When you login to your CrunchBang Openbox session, this autostart script
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## Note*: some programs, such as 'nm-applet' are run via XDG autostart.
## Run '/usr/lib/openbox/openbox-xdg-autostart --list' to list any
## XDG autostarted programs.
##
@justinseiter
justinseiter / secure_random
Created September 10, 2013 16:32
Create a secret key with Ruby in IRB.
require 'securerandom'
SecureRandom.base64(40)
@justinseiter
justinseiter / xclip_ssh_key
Created July 24, 2013 00:15
Copy SSH public key.
xclip -sel clip < ~/.ssh/id_rsa.pub
@justinseiter
justinseiter / mysql-drop-tables
Created June 9, 2013 18:49
Drop all tables in a MySQL database.
mysqldump -uroot -ppassword --add-drop-table --no-data my_database | grep ^DROP | mysql -uroot -ppassword my_database
@justinseiter
justinseiter / gitarchive.txt
Created November 9, 2011 16:57
A snippet to export a git branch without the .git repo directory.
$ git archive master --format zip --output /path/to/file/file-name.zip