- Stingray Tetanus
- This side towards enemy
- Restrictive Clause is Parenthetical
- Wolfman Strauss and the Pestilence
- Above the Popcorn
- Sherpa Support Cr3w
- Suddenly Flatulent
- Finger Smash Scream Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rserve () { | |
ruby -rwebrick -e"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* home */ | |
"\UF729" = "moveToBeginningOfLine:"; | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
/* end */ | |
"\UF72B" = "moveToEndOfLine:"; | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
/* page up/down */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassThatCanDynamicallyAddInstanceMethodsToItself | |
def define_method(method_name, &block) | |
method_carrying_module = Module.new do | |
define_method(method_name, &block) | |
end | |
self.extend method_carrying_module | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ssh into a machine and automatically set the background | |
# color of Mac OS X Terminal depending on the hostname. | |
# | |
# Installation: | |
# 1. Save this script to /some/bin/ssh-host-color | |
# 2. chmod 755 /some/bin/ssh-host-color | |
# 3. alias ssh=/some/bin/ssh-host-color | |
# 4. Configure your host colors below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Shows commits you haven't pushed to the remote yet. Accepts same | |
# arguments as git-log. Assumes 'origin' is the default remote if no | |
# branch.Foo.remote configuration exists. | |
curr_branch=$(git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||') | |
origin=$(git config --get "branch.$curr_branch.remote") | |
origin=${origin:-origin} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>name</key> | |
<string>Stellar</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory=$true, HelpMessage='Provide a URL to download')] | |
$url | |
) | |
$proxy = new-object System.Net.WebProxy("http://myproxyaddress") | |
$username = 'myusername' | |
$password = ConvertTo-SecureString 'MyPass' -AsPlainText -Force | |
$cred = New-Object System.Management.Automation.PSCredential $username, $password | |
$proxy.credentials = $cred |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Goal < ActiveRecord::Base | |
belongs_to :user | |
has_many :checkpoints | |
# Fields from schema.rb | |
#create_table "goals", :force => true do |t| | |
# t.string "description" | |
# t.string "period" | |
# t.integer "user_id" | |
# t.integer "position" |
OlderNewer