Skip to content

Instantly share code, notes, and snippets.

View mostlyobvious's full-sized avatar

Paweł Pacana mostlyobvious

View GitHub Profile
import XMonad
import XMonad.Config.Gnome
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Actions.CycleWS
import XMonad.Actions.WindowGo
import XMonad.Util.WindowProperties
import XMonad.Util.EZConfig
import XMonad.Layout.Named
longer_build_script = <<END
export WEIRD_VAR=3
export GIT_SSH=ssh-with-another-identity-hack
git clone strange_dependency_repo.git somewhere
bundle exec rake test
END
Citrus::Config.new do |c|
# how many isolated VMs to start for each build step,
# $ curl -i -H 'Accept: application/vnd.helloapp-v2+json' http://localhost:8080/hello/prug
#
# HTTP/1.1 200 OK
# Content-Type: application/vnd.helloapp-v2+json
# Vary: Accept
# Content-Length: 11
# Server: Webmachine-Ruby/0.3.0 WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
# Date: Thu, 26 Jan 2012 15:27:09 GMT
# Connection: Keep-Alive
#
ata5: link is slow to respond, please be patient (ready=0)
ata5: COMRESET failed (errno=-16)
ata5: link is slow to respond, please be patient (ready=0)
ata5: COMRESET failed (errno=-16)
ata5: link is slow to respond, please be patient (ready=0)
ata5: COMRESET failed (errno=-16)
ata5: limiting SATA link speed to 1.5 Gbps
ata5: COMRESET failed (errno=-16)
ata5: reset failed, giving up
# mongoid and duck typing
def logger=(logger)
case logger
when Logger then @logger = logger
when false, nil then @logger = nil
end
end
import XMonad
import XMonad.Config.Gnome
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Actions.CycleWS
import XMonad.Actions.WindowGo
import XMonad.Util.WindowProperties
import XMonad.Util.EZConfig
import XMonad.Layout.Named
@mostlyobvious
mostlyobvious / my.cnf
Created March 14, 2012 14:29
mysql for tests
default-table-type=innodb
transaction-isolation=READ-COMMITTED
default-character-set=utf8
skip-sync-frm=OFF
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = 0_DIRECT
alias tstamp='date +%Y%m%d%H%M%S'
backup(){
cp -r $1 $1.`tstamp`
}
Rake::TestTask.new('test') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
end
task :default => :test
@mostlyobvious
mostlyobvious / hackathon.md
Created February 2, 2012 12:28
DRUG hackathon call