Skip to content

Instantly share code, notes, and snippets.

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Matrimony do
describe "on first run" do
it "should say that it is on first run" do
open('|-') do |command|
if command.nil?
Matrimony.run # What the gem executable calls
else
command.gets.should =~ /This is your first run/

A bit of regex, a bit of fish, and I get Fish shell method missing for super pastable efficiency!!!

0. Introduction.
1. New! Register domains with international characters!
2. New! Major flash media improvements!
3. New! Major PS graph improvements!
4. New! Pay via check electronically (ACH)!
5. New! Email filters can check/add headers!
6. DHSOTM
########################################################################
>> h = Hash.new(Hash.new)
=> {}
>> h["1"]["2"]
=> nil
>> h["1"]["2"] = "2"
=> "2"
>> h["2"]
=> {"2"=>"2"}
>> h["1"].object_id == h["2"].object_id
=> true
#!/usr/bin/env ruby
require 'rubygems'
require 'daemons'
Daemons.run_proc('PassengerMonitor') do
command = 'sudo passenger-memory-stats'
memory_limit = 250
# Allows you to do (1) instead of (2)
# 1
Given /^I sign up as a staff member with login "([^\"]*)"$/ do |login|
Cucumber(%Q{
When I go to the sign up page
And I fill in "Username" with "#{login}"
And I fill in "Password" with "password"
And I fill in "Password again" with "password"
And I fill in "Email" with "#{login}@domain.com"
We couldn’t find that file to show.
2009-11-06 15:11 ERROR feed Unhandled error in plugin series: list.index(x): x not in list
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r913-py2.6.egg/flexget/feed.py", line 235, in __run_event
method(self)
File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r913-py2.6.egg/flexget/plugin.py", line 229, in __call__
return getattr(self.plugin.instance, self.method_name)(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r913-py2.6.egg/flexget/plugins/filter_series.py", line 461, in on_feed_filter
self.process_series(feed, series, series_name, series_config)
File "/usr/local/lib/python2.6/dist-packages/FlexGet-1.0r913-py2.6.egg/flexget/plugins/filter_series.py", line 713, in process_series
if cmp_quality(quality, ep.quality) == 0: # 1=greater, 0=equal, -1=does not meet
require 'net/http'
require 'uri'
require 'enumerator'
class Array
def to_h
Hash[*enum_with_index.to_a.flatten]
end
end
function qwerty
ln -fs ~/Library/Application\ Support/SIMBL/Plugins/Telefrag.bundle/Contents/Resources/Colemak_QWERTY.plist Keymap.plist
telefrag
end
function telefrag
osascript -e 'tell app "teleportd" to inject SIMBL into Snow Leopard' ^/dev/null >/dev/null
end