Skip to content

Instantly share code, notes, and snippets.

View billturner's full-sized avatar

Bill Turner billturner

View GitHub Profile
View emacs-shortcuts.txt
emacs: commands
Some custom ones:
C-x f - find file in project
C-x a - ack/ag in project
C-x t - toggle neotree
C-x m - magit status
C-c TAB - helm buffer list
View WSL
Developer User/DevOps Admin,
If you do multiplatform development here is a video outlining my steps to get a developer workstation running windows 10 64bit with WSL - “WSL requires fewer resources (CPU, memory, and storage) than a full virtual machine.“
If you would like you can request Windows 10 Build and if you use Un*x administration and need a full X11 Client like I used to talk about when I said a name like Cygwin, well my setup is not totally stock, in that I didn’t add anything (except 3rd party x client) and can do full unix administration and supported this time.
My Steps:
1.) Get new haswell hardware (hp 600 g2’s)
2.) Update cwdb (work with support team to have them change it)
3.) Install win10 core 64 bit offering
4.) Login and start the steps
5.) Open powershell prompt to flip developer m
View Spacedust.dvtcolortheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>0 0 0 1</string>
<string>Menlo-Bold - 11.0</string>
<string>0 0 0 1</string>

Install the pre-release of bundler. When 1.0 is final the --pre flag will not be necessary.

$ gem install bundler --version=1.0.0.rc.2
Successfully installed bundler-1.0.0.rc.2
1 gem installed

Modify your Gemfile, and locally re-bundle you app with the new bundler options. If bundler complains about the Gemfile format, fix it according to the directions on If you have an old bundler gem defined in your Gemfile, make sure to un-pin it from 0.9.x.

$ echo >> Gemfile

$ bundle install --path vendor/bundle

View nginxhtml5.conf
user www www;
worker_processes 5;
error_log logs/error.log;
pid logs/;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
We couldn’t find that file to show.
View mongodb
# init.d script with LSB support.
# Copyright (c) 2007 Javier Fernandez-Sanguino <>
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
View .rvmrc
# a good .rvmrc to use per project to make sure it's created if not available already
# something to tack onto the end of a install script or rails template
# found here:
rvm --create use rubyversion@gemset > /dev/null
View watchr-runner.rb
if __FILE__ == $0
puts "Run with: watchr #{__FILE__}. \n\nRequired gems: watchr rev"
exit 1
# --------------------------------------------------
# Convenience Methods
# --------------------------------------------------
def run(cmd)
View gemspec
#!/usr/bin/env ruby
# Usage: gemspec [-s] GEMNAME
# Prints a basic gemspec for GEMNAME based on your git-config info.
# If -s is passed, saves it as a GEMNAME.gemspec in the current
# directory. Otherwise prints to standard output.
# Once you check this gemspec into your project, releasing a new gem
# is dead simple: