Skip to content

Instantly share code, notes, and snippets.

View seeflanigan's full-sized avatar

Cory Flanigan seeflanigan

View GitHub Profile
@seeflanigan
seeflanigan / resume.md
Last active September 24, 2015 17:47
Resume of Cory Flanigan

Cory Flanigan

Technologist, Problem Solver, Software Professional

  • Code
  • Blog
  • Email: seeflanigan at gmail dotcom, cory at goldenmeansolutions dotcom

Skills

  • Building and architecting teams, software, processes, and systems
  • Leadership, community engagement, team building
  • Continuous learning, mentorship, building learning cultures
@seeflanigan
seeflanigan / rvmrc.bash
Created May 21, 2011 03:54
Bash functions for RVM
function rvmrc { echo "rvm use 1.9.2@$1 --create" >> .rvmrc; cd . }
function rvmgg { rvm gemset use global }
@seeflanigan
seeflanigan / benchmark_results.txt
Created June 1, 2011 20:32
Prawn vs PDFKit Benchmark
-> % ./prawn_vs_pdfkit.rb
user system total real
PDFKit: 1.760000 1.850000 231.550000 (286.579597)
Prawn: 99.140000 0.890000 100.030000 (102.124293)
2.4 GHz Intel Core 2 Duo
4 GB 1067 MHz DDR3
autocmd User Rails Rnavcommand config config -suffix.rb -default=environment
autocmd User Rails Rnavcommand fabricator spec/fabricators -glob=**/* -suffix=_fabricator.rb
autocmd User Rails Rnavcommand feature features -suffix=.feature -default=cucumber
autocmd User Rails Rnavcommand sass app/stylesheets -glob=**/* -suffix=.sass -default=main
autocmd User Rails Rnavcommand scss app/stylesheets -glob=**/* -suffix=.scss -default=style
autocmd User Rails Rnavcommand steps features/step_definitions -suffix=_steps.rb -default=web
let g:surround_{char2nr("l")} = "link_to \1text: \1, \2path:\2\r"
let g:surround_{char2nr("#")} = "#{\r}"
@seeflanigan
seeflanigan / communication_books
Created June 18, 2011 15:38
Books About Communication
A list of books that people have recommended to me about communication:
http://t.co/Lsr5t4J - How to Win Friends & Influence People (Dale Carnegie)
http://t.co/7CHxjpc - Getting Naked (Patrick Lencioni)
http://t.co/vrmhKAh - Pragmatic Thinking and Learning (Andrew Hunt)
http://t.co/MmJOPW6 - Life's A Pitch (Stephen Bayley)
http://t.co/SW5nLRd - Crucial Conversations (Kerry Patterson)
@seeflanigan
seeflanigan / error.log
Created July 15, 2011 17:35
Error installing npm
npm ERR! Error: Failed to mkdir /usr/local: File exists
npm ERR! at STATCB (/private/var/folders/1i/1iBDWfZ0FcS+Cwr4gRZ7GU+++TM/-Tmp-/npm.73154/package/lib/utils/mkdir-p.js:117:19)
npm ERR! at cb (/private/var/folders/1i/1iBDWfZ0FcS+Cwr4gRZ7GU+++TM/-Tmp-/npm.73154/package/lib/utils/graceful-fs.js:31:9)
@seeflanigan
seeflanigan / rvm.zsh
Created July 23, 2011 07:48
Functions for RVM
# Functions for RVM
rvmrubyversion () {rvm info|grep -C1 "interpreter"|grep "version:"|awk {'print $2'}}
rvmrc () {current_path=$(pwd | awk '{split($0,array,"/");print array[length(array)]}')
echo "rvm use default@$current_path --create" >> .rvmrc; source .rvmrc}
@seeflanigan
seeflanigan / names.rb
Created August 24, 2011 17:33
Select Names with Matching Last Name and First Initial from a list
require 'csv'
CSV_FILENAME = "some_names.csv"
names_hash = {}
matches_array = []
CSV.foreach(CSV_FILENAME) do |row|
last_name,first_name = row[0],row[1]
@seeflanigan
seeflanigan / pairmux.sh
Created August 26, 2011 16:22
Aliases for pairing
alias pairtunl='ssh -fNR 4242:localhost:22 $1'
alias pairinit='tmux -S /tmp/pairing new-session -d -s pairing'
alias pairjoin='tmux -S /tmp/pairing attach -t pairing'
# alias pairmuch='pairtunl $1 && pairinit && pairjoin'
@seeflanigan
seeflanigan / binlog-filter.rb
Created November 30, 2011 19:59
Filter binlogs, selectively replicate queries
#!/usr/bin/env ruby
require "rubygems"
require "bundler/setup"
require "sequel"
# DB Config
options = {
:database => "development",
:host => "localhost",