Skip to content

Instantly share code, notes, and snippets.

@sneal
sneal / Vagrantfile
Created March 16, 2016 21:25
PcfDev Vagrantfile to support Windows Cells
Vagrant.configure("2") do |config|
config.vm.box = "pcfdev/pcfdev"
config.vm.box_version = "0.14.0"
config.vm.synced_folder ".", "/vagrant", disabled: true
vagrant_up = (!ARGV.nil? && ARGV.first == 'up')
vagrant_up_aws = (vagrant_up && ARGV.join(' ').match(/provider(=|\s+)aws/))
if Vagrant.has_plugin?("vagrant-proxyconf") && !vagrant_up_aws
@Watson1978
Watson1978 / isight_capture.rb
Created October 19, 2010 20:18
MacRuby: Captures a photo using iSight.
#!/usr/local/bin/macruby
# -*- coding: utf-8 -*-
# Captures a photo using iSight.
framework "Cocoa"
framework "QTKit"
class AppController
def initialize(filename=nil)
options = {}