start new:
tmux
start new with session name:
tmux new -s myname
| # Editor backup files | |
| *.bak | |
| *~ |
| A script for turning wifi on and off on a Mac |
| #!/bin/sh -x | |
| #This script removes Mono from an OS X System. It must be run as root | |
| rm -r /Library/Frameworks/Mono.framework | |
| rm -r /Library/Receipts/MonoFramework-* | |
| for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do | |
| (cd ${dir}; |
| #!/usr/bin/env _coffee | |
| # | |
| # Helper script to search all of our files for i18n strings and update our | |
| # strings file. Helpful in case we missed a code path during testing. | |
| # | |
| # Specifically, searches for gettext `__()` calls in our checked-in files. | |
| # | |
| $ = require 'underscore' | |
| echo = console.log |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # Signal catching | |
| def shut_down | |
| puts "\nShutting down gracefully..." | |
| sleep 1 | |
| end | |
| puts "I have PID #{Process.pid}" | |
| # Trap ^C | |
| Signal.trap("INT") { |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |