Skip to content

Instantly share code, notes, and snippets.

@slottermoser
slottermoser / keybase.md
Created September 19, 2014 23:02
keybase.md

Keybase proof

I hereby claim:

  • I am slottermoser on github.
  • I am slottermoser (https://keybase.io/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
slottermoser / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@slottermoser
slottermoser / Setup.md
Created October 5, 2012 21:09
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

@slottermoser
slottermoser / README.md
Last active December 10, 2015 13:29 — forked from Morrolan/check_ip.py

Check IP

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

Installation

Download the check_ip.py file:

@slottermoser
slottermoser / user.rb
Created April 29, 2013 20:22
On-the-fly user creation in tkellem
# 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)
user.save
user
end
end
@slottermoser
slottermoser / config.fish
Last active December 17, 2015 11:19 — forked from bjhomer/config.fish
if status --is-interactive
set -gx PATH ~/bin /usr/local/bin ~/Applications/ $PATH;
end
# 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
slottermoser / homebrew.mxcl.mysql.plist
Created May 26, 2013 07:14
Bind Homebrew MySQL LaunchAgent to 127.0.0.1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.mysql</string>
<key>ProgramArguments</key>
<array>
@slottermoser
slottermoser / load_json.rb
Last active December 22, 2015 09:58
Load json gem, installing it first if necessary
#!/usr/bin/env ruby
def load_json_gem
if `gem list json -i`.chomp! == "false"
puts "Installing json gem..."
`sudo gem install json`
load_json_gem
else
require 'rubygems'
require 'json'
@slottermoser
slottermoser / Setup.md
Last active January 2, 2016 18:43
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