Skip to content

Instantly share code, notes, and snippets.

slottermoser / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am slottermoser on github.
  • I am slottermoser ( on keybase.
  • I have a public key whose fingerprint is 02A7 9A3F 7755 F070 BA9D 3DA1 8619 4243 4084 A3FA

To claim this, I am signing this object:

slottermoser / load_json.rb
Last active Dec 22, 2015
Load json gem, installing it first if necessary
View load_json.rb
#!/usr/bin/env ruby
def load_json_gem
if `gem list json -i`.chomp! == "false"
puts "Installing json gem..."
`sudo gem install json`
require 'rubygems'
require 'json'
slottermoser / homebrew.mxcl.mysql.plist
Created May 26, 2013
Bind Homebrew MySQL LaunchAgent to
View homebrew.mxcl.mysql.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
if status --is-interactive
set -gx PATH ~/bin /usr/local/bin ~/Applications/ $PATH;
# My colors
set -g fish_color_autosuggestion 444444
set -g fish_color_command cyan
set -g fish_color_comment red
set -g fish_color_cwd cyan
set -g fish_color_cwd_root red
slottermoser / user.rb
Created Apr 29, 2013
On-the-fly user creation in tkellem
View user.rb
# on-the-fly authentication: create the user if the user doesn't already exist.
self.authentication_methods << proc do |username, password|
user = find_by_username(username)
if user.nil?
user = User.create(:username => username, :password => password)
slottermoser /
Last active Jan 2, 2016
Everything I needed to do to get the GitLab Vagrant VM up and running.

After running vagrant up and logging into the box with vagrant ssh

Setup gitlab.yml

You'll want to edit /vagrant/gitlabhq/config/gitlab.yml to your dedired settings for your dev environment, as well as change the default user to the vagrant user as the default git user does not exist:

    # Uncomment and customize if you can't use the default user to run GitLab (default: 'git')
    user: vagrant

Check IP

Have your Raspberry Pi report its WIFI IP on boot via email. This works well with the Edimax EW-7811n WIFI Adapter.


Download the file:

slottermoser /
Created Oct 5, 2012
Setting up a new machine

Things I always do on a new system

  1. Copy

    • .profile
    • .git-completion.bash
    • .vimrc
    • Optionally grab my ssh keys and ssh config file
  2. Run

     git config --global color.ui auto