I hereby claim:
- I am psychocandy on github.
- I am amirf (https://keybase.io/amirf) on keybase.
- I have a public key ASAZbAd4OFmWD8QsDVNMaMI_vcpJh79LpJpjeZyu8gkW_wo
To claim this, I am signing this object:
# one way: | |
FactoryGirl.create_list(:monetization_campaign, 10) | |
# another way: | |
10.times { FactoryGirl.create(:monetization_campaign) } | |
# guarentee ids: | |
10.times { |n| FactoryGirl.create(:monetization_campaign, id: n) } |
brew uninstall readline | |
cd /usr/local/ | |
git checkout 0181c8a Library/Formula/readline.rb | |
brew install readline | |
RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" ruby-install ruby |
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config |
begin | |
require 'awesome_print' | |
AwesomePrint.pry! | |
rescue | |
puts 'There is no Awesome Print gem installed' | |
end |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
# name: RobbyRussel | |
function _git_branch_name | |
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
end | |
function _is_git_dirty | |
echo (command git status -s --ignore-submodules=dirty ^/dev/null) | |
end | |
function fish_prompt |
I hereby claim:
To claim this, I am signing this object: