I hereby claim:
- I am jackkinsella on github.
- I am jackkinsella (https://keybase.io/jackkinsella) on keybase.
- I have a public key whose fingerprint is E905 B4A3 1968 F97A ADFC 5B15 E431 905C EF01 DF23
To claim this, I am signing this object:
sudo apt-get install build-essential | |
sudo apt-get install ruby rdoc ri irb libyaml-ruby libzlib-ruby libopenssl-ruby ruby-dev | |
sudo apt-get rubygems1.8 | |
sudo gem update --system | |
sudo apt-get -y install git-core | |
sudo gem install rails SystemTimer ruby-debug ruby-debug-ide | |
sudo apt-get install libsqlite3-dev sqlite3 sqlite3-doc | |
sudo gem install sqlite3-ruby | |
sudo apt-get install imagemagick libmagickcore-dev | |
sudo gem install rmagick |
cd Code | |
#paths | |
export PATH=$PATH:/opt/local/bin | |
export MANPATH=$MANPATH:/opt/local/share/man | |
export INFOPATH=$INFOPATH:/opt/local/share/info | |
export PATH=/usr/local/mysql/bin:$PATH | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
export PATH=$PATH:~/code/scripts |
#!/bin/bash | |
# Best use case is to create a file "update_local_db.sh" in your project folder and then call the command with bash update_local_db | |
# Follow me: @jackkinsella | |
function LastBackupName () { | |
heroku pgbackups | tail -n 1 | cut -d"|" -f 1 | |
} | |
# This part assumes you have a low limit on no. of backups allowed |
#~/.janus.rake file | |
vim_plugin_task "autoclose", "git://github.com/Townk/vim-autoclose.git" | |
#~/vimrc.local file | |
let g:AutoClosePairs = {'(': ')', '{': '}', '[': ']', '"': '"', "'": "'", '#{': '}', '|':'|' } | |
let g:AutoCloseProtectedRegions = ["Character"] | |
# Commit before using this script since it changes your files permanently. | |
# Run from your web app's root folder. | |
ack -l "span-[0-9][0-9]?" | xargs sed -i "" -E 's/span-([0-9]{1,2})/span\1/' |
# Initialize the client & Google+ API | |
require 'google/api_client' | |
require "json" | |
client = Google::APIClient.new | |
analytics = client.discovered_api("analytics", "v3") | |
client = Google::APIClient.new | |
OUTPUT_FILE = "analytics.json" | |
FILE_WITH_KEY = "client.p12" | |
FILE_PASSWORD = "notasecret" |
# copy to: config/initializers/delayed_job_config.rb | |
# Fail at startup if method does not exist instead of later in a background job | |
[[ExceptionNotifier::Notifier, :background_exception_notification]].each do |object, method_name| | |
raise NoMethodError, "undefined method `#{method_name}' for #{object.inspect}" unless object.respond_to?(method_name, true) | |
end | |
# Chain delayed job's handle_failed_job method to do exception notification | |
Delayed::Worker.class_eval do | |
def handle_failed_job_with_notification(job, error) |
I hereby claim:
To claim this, I am signing this object:
for filename in edited/*.docx; do | |
pandoc -s $filename -t markdown_mmd --extract-media "media-`$filename | cut -d- -f1-2`" --wrap=none --smart --normalize -o "`basename $filename .docx`".md | |
done |
" Location for installing plugins | |
call plug#begin('~/.vim/plugged') | |
" Other plugins are specified with user/repo on Github or x.vim on vimscripts | |
" Git integration (status bar and commands like Gblame) | |
Plug 'tpope/vim-fugitive' | |
" Add info to sidebar about git | |
Plug 'airblade/vim-gitgutter' | |
" Add file-management commands like :Delete, :Move, and :Rename | |
Plug 'tpope/vim-eunuch' |