Skip to content

Instantly share code, notes, and snippets.

View warrickcustomhomes's full-sized avatar

Warrick Custom Homes warrickcustomhomes

View GitHub Profile
2013 Keystone Cougar XLite 5th Wheel (manufactured in NOV 2012). 5th wheel weighs 7,100 LBS unloaded, and we currently pull it with a Ford F-150 (1/2 ton) pickup. 5th wheel includes two slides (living room and closed in bedroom), a queen size bed, a fold-out couch with blow-up mattress, and a fold down dining area for an additional bed. Also includes a flat screen TV (27" I think), radio/CD/DVD combo with speakers inside and out, a rear kitchen with fridge/freezer, gas stove, gas oven, and microwave/over-hood fan combo. And then there's a single AC unit and gas furnace (both ducted throughout trailer) and two recliners. Outside, there's an electric awning, outdoor shower, and gas grill that attaches to the back of the 5th wheel. The 5th wheel has electric jacks on the front and manual scissor jacks on the back. A remote control is also included that controls both slides, the awning, and the front jacks. The 5th wheel also includes the polar insulation package.
@warrickcustomhomes
warrickcustomhomes / gist:5819790
Created June 20, 2013 02:04
Get default route on Ubuntu
# this works...
route -n | grep ^0.0.0.0 | tr -s ' ' | cut -d ' ' -f2
# and so does this...
ip route | grep ^default | cut -d ' ' -f3
@warrickcustomhomes
warrickcustomhomes / brew config
Created July 24, 2012 04:40
ffmpeg errors when installing open-scene-graph via Homebrew
HOMEBREW_VERSION: 0.9.2
HEAD: 85de683f26cb777cd5fc552f4ceb54e92a905086
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.6.8-i386
Xcode: 4.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
@warrickcustomhomes
warrickcustomhomes / foo-core.rb
Created February 18, 2012 04:41
Result of Homebrew Install
require 'formula'
class FooCore < Formula
url 'http://example.com/downloads/foo-core-21924.tgz'
sha1 '91cc434e88c1e370650927d8525cb828d7f7859a'
version '21924'
homepage 'http://foo.example.com/'
depends_on 'cmake'
depends_on 'boost'
require 'rubygems'
require 'eventmachine'
EM.run do
memcache = EM::Protocols::Memcache.connect('127.0.0.1', 11211)
begin
memcache.get(:foo) do |value|
if value.nil?
raise Exception, "Tag :foo not found"
require 'rubygems'
require 'xml'
doc = LibXML::XML::Document.file '/path/to/xml_document'
schema = LibXML::XML::Schema.new '/path/to/xml_schema'
doc.validate_schema(schema) do |message,flag|
puts message
end
### RPC Server Implementation File ###
import interface
import app_pb2
class ApplicationServiceImpl(app_pb2.ApplicationService):
def __init__(self):
self.interface = interface.ApplicationInterface()
def CreateSystem(self, controller, request, done):
@warrickcustomhomes
warrickcustomhomes / bash_prompt
Created May 29, 2009 05:15
bash config file to show git branch
# My bash_prompt file to do the following:
# - don't show current path
# - show current branch and branch status if in a git repository
#
# Original taken from:
# http://git.dreaminginlyrics.com/?p=configs.git;a=blob_plain;f=.bash_prompt;hb=HEAD
#
# I added:
# - prompt_git_open_bracket
# - prompt_git_close_bracket