Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'sinatra'
require 'mongoid'
configure do
Mongoid.configure do |config|
name = "demo"
host = "localhost"
config.master = Mongo::Connection.new.db(name)
config.slaves = [
Object.new.method(:foo).source_location
@adriancb
adriancb / zshrc
Created January 24, 2013 16:34
Standard ZSH conf
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="geoffgarside"
# Set to this to use case-sensitive completion
@adriancb
adriancb / aliases.sh
Last active December 11, 2015 15:59
Standard Aliases conf
# Ruby
alias be="nocorrect bundle exec"
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
@adriancb
adriancb / gitconfig.sh
Created January 24, 2013 16:38
Standard Gitconfig conf
[user]
name =
email =
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
@adriancb
adriancb / sshmultikey.sh
Created January 24, 2013 16:39
SSH Multi-Key
touch ~/.ssh/config
chmod 600 ~/.ssh/config
echo "IdentityFile ~/.ssh/id_rsa.work" >> ~/.ssh/config
echo "IdentityFile ~/.ssh/id_rsa.misc" >> ~/.ssh/config
@adriancb
adriancb / RFC-35PR3550
Created February 6, 2013 19:39
The worldwide coffee standard
- 14773
@adriancb
adriancb / testem_logs.js
Last active December 15, 2015 00:19
Testem log output...
outputTap: function(results, launcher){
if (launcher) {
launcher.app.runners.forEach(function(runner) {
runner.get('messages').forEach(function(message) {
console.log('\n' + message.get('text'))
})
})
}
class people::tommeier {
require ruby
include chrome
include firefox
include iterm2::dev
include sublime_text_2
include caffeine
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }