Skip to content

Instantly share code, notes, and snippets.


Jason Milkins jasonm23

View GitHub Profile
jasonm23 / sample .json
Last active May 22, 2018 — forked from jonfuller/status.json
Transmission RPC
View sample .json
jasonm23 /
Last active Sep 10, 2020 — forked from hamann/gist:39371c46806e14ab3853
Elixir mix oh-my-zsh completion plugin

Elixir Mix Oh-My-Zsh plugin

Copy the folder ./elixir_mix/ to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list. e.g.


# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb stable main" | sudo tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source:
View .ctags
--regex-coffee=/(^|=[ \t])*class ([A-Za-z_][A-Za-z0-9_]+\.)*([A-Za-z_][A-Za-z0-9_]+)( extends ([A-Za-z][A-Za-z0-9_.]*)+)?$/\3/c,class/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?@?(([A-Za-z][A-Za-z0-9_.]*)+):.*[-=]>.*$/\3/m,method/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[ \t]*(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[ \t]*@(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=[^->\n]*$/\1/f,field/
--regex-coffee=/^[ \t]*@(([A-Za-z][A-Za-z0-9_.]*)+):[^->\n]*$/\1/f,static field/
--regex-coffee=/^[ \t]*(([A-Za-z][A-Za-z0-9_.]*)+):[^->\n]*$/\1/f,field/
--regex-coffee=/((constructor|initialize):[ \t]*\()@(([A-Za-z][A-Za-z0-9_.]*)+)([ \t]*=[ \t]*[^,)]+)?/\3/f,field/
View .ctags
--regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\2/c,class/
--regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^-=>\n]*$/\1/v,variable/

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)


jasonm23 / git-ignore
Last active Aug 29, 2015 — forked from anonymous/git-ignore
Use to quickly add patterns to .gitignore
View git-ignore
# Install:
# copy to /usr/local/bin
# Usage:
# git ignore [[pattern] [pattern] [...]]
View nested_attributes_for_strategy.rb
class NestedAttributesForStrategy
def association(runner)
def result(evaluation)
evaluation.object.tap do |instance|
evaluation.notify(:after_build, instance)
return attributes(instance)
jasonm23 / rails_3_template.rb
Last active Dec 23, 2015 — forked from anonymous/Gemfile
Rails Template (target ver.3.2.14) - Slim + Coffee + Sass + Bootstrap + Markdown (views and partials as and TDD/BDD with Guard/Spork and RSpec; FactoryGirl; Capybara; Poltergeist (PhantomJS) and nice HTML5 Test reports via rspec-formatter-webkit. (-o tmp/spec_results.html) + Syntax Highlighting, Rails Entity Diagramming (railsERD) …
View rails_3_template.rb
# Remove unnecessary files that rails creates for us.
remove_file "public/index.html"
remove_file "public/images/rails.png"
remove_file "public/javascripts"
empty_directory "public/javascripts"
create_file "public/javascripts/application.js"
gem_group :assets do
gem 'twitter-bootstrap-rails'
gem 'less'