Skip to content

Instantly share code, notes, and snippets.

View shanesveller's full-sized avatar
💭
I may be slow to respond.

Shane Sveller shanesveller

💭
I may be slow to respond.
View GitHub Profile
@shanesveller
shanesveller / gist:44413
Created January 7, 2009 20:45 — forked from anonymous/gist:44410
Basecamp-style subdomains with Rails in 3 easy steps, courtesy of DHH
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
#
# <VirtualHost *:80>
# ServerName *.example.com
# </VirtualHost>
#
# 3) Set the current account from the subdomain
class ApplicationController < ActionController::Base
abstract (1.0.0)
actionmailer (2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.2)
actionpack (2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.2)
activerecord (2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.2)
activeresource (2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.2)
activesupport (2.3.2, 2.3.1, 2.3.0, 2.2.2, 2.1.2)
addressable (2.0.2, 2.0.1)
andand (1.3.1)
atom (0.3)
authlogic (2.0.11, 2.0.9, 2.0.8, 2.0.5, 2.0.2)
We couldn’t find that file to show.
I just got off the phone with some guy out in California trying to offer me
a better deal on 'OEM compatible' printer toner. So more or less, knock off
versions of HP printer ink. We get 90% of our printer supplies through a
contract with Ricoh, and the other 10% through CDW at wholesale prices. He
was so pushy, he sounded like he was offering me my first hit of coke. I
politely told him "not interested" 3 times. He'd just start his spiel over
and say, "I guess I just don't understand. You're in the business of getting
the most bang for your buck and I'm in the business of saving you money. Why
won't you give me a shot for 1 shipment of toner? I can promise you you're
looking at savings of up to 30%." He first offered a 4th toner cartridge for
@shanesveller
shanesveller / lua-tables.lua
Created July 8, 2010 22:55
Wherein I suck at using Lua tables
-- Help me Obi-wan!
-- Also, Notepad++ still sucks, but my Mac Mini is powered off while I get ready to raid tonight
for bagId=1,NUM_BAG_SLOTS do
-- items[bagId] = {}
for slotId=1,GetContainerNumSlots(bagId) do
local link = GetContainerItemLink(bagId, slotId)
if link then
local _, _, quality, itemLevel, _, itemType = GetItemInfo(link)
-- link_FindSearchInTooltip was renamed in a recent push
source 'http://rubygems.org'
gem 'rails', '3.0.5'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
# Use unicorn as the web server
@shanesveller
shanesveller / dump-detail.txt
Created June 9, 2011 03:48
Output of Rift PTS 1.3 and TrionDevelopmentTools' /dump detail command as of 2011-06-10 10:30PM EDT
Noncombat logging enabled
Basic globals:
Development.Documentation
Provide documentation on items in the addon environment. Called with no parameters, it returns a table listing all documentation. Can provide both human-readable and computer-readable documentation.
documentables = Development.Documentation() -- table <- void
documentation = Development.Documentation(item) -- string <- variant
documentation = Development.Documentation(item, parseable = false) -- string <- variant, boolean
documentationTable = Development.Documentation(item, parseable = true) -- table <- variant, boolean
Parameters:
parseable: Whether to return in a computer-readable format, as opposed to the normal human-readable format.
@shanesveller
shanesveller / rac_defaults.yml
Created August 14, 2012 15:13
Rails_apps_composer defaults YAML
recipes:
- core
- init
prefs:
:database: postgresql
:dev_webserver: webrick
:prod_webserver: unicorn
:templates: haml
:unit_test: rspec
require 'formula'
class Serf < Formula
homepage 'http://www.serfdom.io'
version '0.5.0'
depends_on :arch => :intel
if Hardware.is_64_bit?
url 'https://dl.bintray.com/mitchellh/serf/0.5.0_darwin_amd64.zip'
@shanesveller
shanesveller / keybase.md
Created April 14, 2014 17:58
Keybase verification

Keybase proof

I hereby claim:

  • I am shanesveller on github.
  • I am shanesveller (https://keybase.io/shanesveller) on keybase.
  • I have a public key whose fingerprint is 13C3 4F6E BC0B 3DC9 014E CD93 50F5 1F9A EC10 6145

To claim this, I am signing this object: