This file contains hidden or 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
| # mongoid and duck typing | |
| def logger=(logger) | |
| case logger | |
| when Logger then @logger = logger | |
| when false, nil then @logger = nil | |
| end | |
| end |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| # $ 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 | |
| # |
This file contains hidden or 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
| 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, |
This file contains hidden or 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
| 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 |
This file contains hidden or 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' | |
| class AssertMatchTest < Test::Unit::TestCase | |
| def test_assertion_count | |
| assert_match /abc/, 'abc' | |
| end | |
| end | |
| # 1.9.3 | |
| # |
This file contains hidden or 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 | |
| # Mostly deboostrap, but also changes hostname and configures networking | |
| # for guest. Intended to use with lxc and bridged networks with dnsmasq. | |
| PACKAGES=avahi-daemon,openssh-server | |
| USER_NAME=squeeze | |
| DISTRIBUTION=precise | |
| VM_PATH=${1-template} | |
| VM_NAME=$(basename $VM_PATH) |
This file contains hidden or 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
| ${1:-hostname} | |
| sudo virsh -c lxc:/// start template | |
| ssh -i template.key squeeze@template.local $1 | |
| sudo virsh -c lxc:/// destroy template |
This file contains hidden or 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
| # Make sure Udev doesn't block our network | |
| # http://6.ptmc.org/?p=164 | |
| echo "cleaning up udev rules" | |
| rm /etc/udev/rules.d/70-persistent-net.rules | |
| mkdir /etc/udev/rules.d/70-persistent-net.rules | |
| rm -rf /dev/.udev/ | |
| rm /lib/udev/rules.d/75-persistent-net-generator.rules |
This file contains hidden or 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
| Format: 1.0 | |
| Source: mongrel2 | |
| Binary: mongrel2 | |
| Architecture: any | |
| Version: 1.7.5-1 | |
| Maintainer: Paweł Pacana <pawel.pacana@gmail.com> | |
| Homepage: http://mongrel2.org | |
| Standards-Version: 3.9.2 | |
| Build-Depends: debhelper (>= 8.0.0), sqlite3, libsqlite3-dev, libzmq-dev | |
| Depends: libzmq1, sqlite3 |