Skip to content

Instantly share code, notes, and snippets.

@ecaron
ecaron / gist:9736a8815093931da212
Created June 11, 2014 19:44
Simple bash script for Firefox+Linux+SSH
#!/bin/bash
url=$1
protocol=${url//:*/}
machine=${url//*:\/\//}
machine=${machine%/}
/usr/bin/gnome-terminal -e "$protocol $machine"
@ecaron
ecaron / Rbenv failing on Vagrant+Fusion
Created January 6, 2014 06:29
This is a dump of the error from puppet/Vagrant that our Mac developers are getting when using Vagrant with VMWare Fusion. The problem is resolvable by changing rbenv's cflags to none.
Notice: /Stage[main]//Rbenv::Plugin[sstephenson/ruby-build]/Exec[install-sstephenson/ruby-build]/returns: executed successfully
Notice: /Stage[main]//Rbenv::Plugin[sstephenson/ruby-build]/Exec[rbenv-permissions-sstephenson/ruby-build]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Rbenv/File[/etc/profile.d/rbenv.sh]/ensure: defined content as '{md5}1895fedb6a7fdc5feed9b2cbbb8bbb60'
Notice: /Stage[main]//Rbenv::Build[2.0.0-p247]/Exec[own-plugins-2.0.0-p247]/returns: executed successfully
Notice: /Stage[main]//Rbenv::Build[2.0.0-p247]/Exec[git-pull-rubybuild-2.0.0-p247]/returns: executed successfully
Notice: /Stage[main]//Rbenv::Build[2.0.0-p247]/Exec[rbenv-install-2.0.0-p247]/returns: Downloading ruby-2.0.0-p247.tar.gz...
Notice: /Stage[main]//Rbenv::Build[2.0.0-p247]/Exec[rbenv-install-2.0.0-p247]/returns: -> http://dqw8nmjcqpjn7.cloudfront.net/c351450a0bed670e0f5ca07da3458a5b
Notice: /Stage[main]//Rbenv::Build[2.0.0-p247]/Exec[rbenv-install-2.0.0-p247]/returns: Installing ruby-2.0.0-p247...
Notice: