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
# rpg installs package contents in these locations: | |
RPGBIN='/Users/srozet/bin' | |
RPGLIB='/Users/srozet/.rubylib' | |
RPGMAN='/usr/share/man' | |
# rpg keeps its package database, index, and gem cache in these locations: | |
RPGPATH='/Users/srozet/.rpg' | |
RPGDB='/Users/srozet/.rpg/db' | |
RPGINDEX='/Users/srozet/.rpg/index' | |
RPGPACKS='/Users/srozet/.rpg/packs' |
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
# ICB Protocol | |
Last Modified: Sat Aug 4 01:19:36 PDT 2001 by [falcon@icb.net][1] | |
[1]: mailto:falcon@icb.net | |
## Basic Packet Layout: | |
The basic unit ICB clients and server communicate with is a packet with the | |
following layout: |
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
def disable_rubygems; nil; end | |
def source(s); $src = s unless s[/gemcutter/] end | |
def gem(n, v) | |
if Hash === v | |
$stderr.puts "ignoring git gem #{n}" | |
return | |
end | |
puts "#{n} -v#{v}#{$src ? " -s#{$src}": ""}" | |
end | |
load ARGV[0] || "Gemfile" |
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
#!/usr/bin/osascript | |
# Usage: omnifocus-inbox Do something @Work | |
on run argv | |
set AppleScript's text item delimiters to " " | |
set theText to argv as string | |
tell application "OmniFocus" | |
parse tasks into default document with transport text theText | |
end tell | |
end run |
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 | |
# Best To-Do List. Ever. | |
# | |
# Usage: | |
# 1. Add a new item to list: `todo This needs to be fixed` | |
# 2. Edit the to-do list: `todo -e` | |
# 3. Show the current to-do's: `todo` | |
if [[ $1 ]]; then | |
if [ $1 = "-e" ]; then |
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
require "rack/client" | |
require "rack/cache" | |
require "rack/test" | |
app = Rack::Builder.new { | |
use Rack::Cache, | |
:verbose => true, | |
:metastore => "heap:/", | |
:entitystore => "heap:/" | |
run Rack::Client |
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
require "test/unit" | |
require "rack/test" | |
require "contest" | |
require "sinatra/base" | |
class MyApp < Sinatra::Base | |
set :environment, :test | |
get "/" do | |
"Hi, #{params["name"]}." |
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
#!/usr/bin/env ruby | |
require "rubygems" | |
require "integrity" | |
class Refresher | |
JS = <<-EOS | |
<script type="text/javascript"> | |
//<![CDATA[ | |
setTimeout('location.reload()', %s * 1000) | |
//]]> |
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
module Rack | |
module Test | |
module Session | |
attr_reader :last_response | |
attr_reader :last_request | |
alias_method :response, :last_response | |
alias_method :request, :last_request | |
def initialize(app) |
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
#!/usr/bin/env bash | |
cat <<EOF | |
<entry> | |
<title>Omnifaria $1</title> | |
<published>$(date --utc)</published> | |
<updated>$(date --utc)</updated> | |
<content type="xhtml"><div>$(cat | ./src/markdown)</div></content> | |
</entry> | |
EOF |