Skip to content

Instantly share code, notes, and snippets.

Stephen Lottermoser slottermoser

Block or report user

Report or block slottermoser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@slottermoser
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
View 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 / 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`
load_json_gem
else
require 'rubygems'
require 'json'
@slottermoser
slottermoser / homebrew.mxcl.mysql.plist
Created May 26, 2013
Bind Homebrew MySQL LaunchAgent to 127.0.0.1
View homebrew.mxcl.mysql.plist
<?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>
View 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 / 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)
user.save
user
end
end
@slottermoser
slottermoser / Setup.md
Last active Jan 2, 2016
Everything I needed to do to get the GitLab Vagrant VM up and running.
View Setup.md

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
View README.md

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 / Setup.md
Created Oct 5, 2012
Setting up a new machine
View Setup.md

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
    
You can’t perform that action at this time.