Skip to content

Instantly share code, notes, and snippets.

# if you define to_a
irb(main):001:0> class Foo
irb(main):002:1> def to_a
irb(main):003:2> puts "hi"
irb(main):004:2> []
irb(main):005:2> end
irb(main):006:1> end
=> nil
irb(main):007:0> [*Foo.new]
hi
@aanand
aanand / gist:0d6fbaa75bd5c65cf3f9
Created April 7, 2015 11:25
Use Docker Machine to get a VM running Docker 1.6.0 RC4
docker-machine create -d virtualbox --virtualbox-boot2docker-url=https://github.com/tianon/boot2docker/releases/download/v1.6.0-rc4/boot2docker.iso dev-1.6.0-rc4
$ script/build-osx
+ rm -rf venv
+ virtualenv -p /usr/local/bin/python venv
Running virtualenv with interpreter /usr/local/bin/python
New python executable in venv/bin/python2.7
Also creating executable in venv/bin/python
Installing setuptools, pip, wheel...done.
+ venv/bin/pip install -r requirements.txt
Collecting PyYAML==3.10 (from -r requirements.txt (line 1))
Downloading PyYAML-3.10.tar.gz (241kB)
$ script/build-linux
++ pwd
+ docker run --rm --user=user --volume=/Users/aanand/work/docker/compose:/code --entrypoint=script/build-linux-inner docker-compose
++ pwd
+ mkdir -p /code/dist
++ pwd
+ chmod 777 /code/dist
+ pyinstaller -F bin/docker-compose
18 INFO: wrote /code/docker-compose.spec
36 INFO: UPX is not available.

Breaking Changes

  • docker-compose logs no longer follows log output by default. It now matches the behaviour of docker logs and exits after the current logs are printed. Use -f to get the old default behaviour.

  • Booleans are no longer allows as keys for mappings in the Compose file (for keys environment, labels and extra_hosts). Previously this was a warning. Boolean values should be quoted so they become string values.

London's most passionate and wired underground rock'n'roll band.
Formed in the summer of 2002 around 22 year old frontman/singer/writer Johnny Borrell, they existed for two months without a name, until one night at a Warholian squat party in a derelict factory in the East End, their singer found himself speaking in tongues. Improvising lyrics at the end of the set, Johnny was passed down words from the watchful muses above, and out of his mouth came the sound... rezorright... raisaaarite....razorlight. Now they had a name they could proceed to blow away every run of the mill garage rock band, with a set of serrated, transatlantic, poetic songs played with white knuckle intensity and delivered by a singer with total, natural charisma.
Night after long night they'd been holed up in a rat-plagued low-boho rehearsal studio on the East edge of town,
shaping the scribbled visions of urchin-savant Johnny into grooved, twitching, adrenalised guitar pieces and making occasional live foreys to support The Von Bondi

London's most passionate and wired underground rock'n'roll band.

Formed in the summer of 2002 around 22 year old frontman/singer/writer Johnny Borrell, they existed for two months without a name, until one night at a Warholian squat party in a derelict factory in the East End, their singer found himself speaking in tongues. Improvising lyrics at the end of the set, Johnny was passed down words from the watchful muses above, and out of his mouth came the sound... rezorright... raisaaarite....razorlight. Now they had a name they could proceed to blow away every run of the mill garage rock band, with a set of serrated, transatlantic, poetic songs played with white knuckle intensity and delivered by a singer with total, natural charisma.

Night after long night they'd been holed up in a rat-plagued low-boho rehearsal studio on the East edge of town, shaping the scribbled visions of urchin-savant Johnny into grooved, twitching, adrenalised guitar pieces and making occasional live foreys to support The Von Bondi