This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see http://stackoverflow.com/questions/5880962/how-to-destroy-jobs-enqueued-by-resque-workers - old version | |
# see https://github.com/defunkt/resque/issues/49 | |
# see http://redis.io/commands - new commands | |
namespace :resque do | |
desc "Clear pending tasks" | |
task :clear => :environment do | |
queues = Resque.queues | |
queues.each do |queue_name| | |
puts "Clearing #{queue_name}..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap <S-A-Up> <C-v><Up> | |
nmap <S-A-Down> <C-v><Down> | |
nmap <S-A-Left> <C-v><S-Left> | |
nmap <S-A-Right> <C-v><S-Right> | |
vmap <S-A-Left> <S-Left> | |
vmap <S-A-Right> <S-Right> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# key innodb settings to boost performance | |
# To install (root required): | |
# - shutdown mysql | |
# - linux: edit /etc/mysql/my.cnf, rm /var/lib/mysql/ib_logfile* | |
# - OS X: edit /etc/my.cnf, rm /usr/local/mysql/data/ib_logfile* | |
# - start mysql | |
# recommend 256-512M for development, use more if you have it. 75%+ for a dedicated db. | |
innodb_buffer_pool_size = 256M |