Skip to content

Instantly share code, notes, and snippets.

View xxx's full-sized avatar

Michael Dungan xxx

View GitHub Profile
@JunichiIto
JunichiIto / alias_matchers.md
Last active April 16, 2024 16:18
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@xxx
xxx / mutt-iterm
Created June 17, 2012 06:53
applescript to run mutt in an iterm (or iterm2)
tell application "iTerm"
activate
set t to (make new terminal)
tell t
set number of columns to 100
set number of rows to 30
tell (make new session at the end of sessions)
exec command "mutt"
end tell
end tell
@lennart
lennart / gist:1717337
Created February 1, 2012 14:35 — forked from anonymous/gist:1717331
A Gentoo startup script for the newrelic server monitor daemon
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
}
start() {
@nesquena
nesquena / index_users_emails.rb
Created July 14, 2011 00:11
Add concurrent index in Postgres Rails migration
class IndexUsersEmails < ActiveRecord::Migration
def self.up
execute "END"
add_pg_index :users, :email, :lock => false
execute "BEGIN"
end
end
/def -w'edge' -p3 -P1BCgray3;2BCrgb510;3BCgray6 -F -mregexp \
-t'^(?:> )?(@(?:|VP@|Directors@)) (\w+:?) (.*)$' wizline = \
/substitute -aCrgb012 $(/time) %{*}
;
; url grabber
; vega@Sanity's Edge
; Notes: The -c switch to /url requires your system's sed utility to
; support the -i (update file in-place) option. It would be
; fairly trivial to re-write it to use redirects, but i
; don't feel like doing it.
;
; config