Skip to content

Instantly share code, notes, and snippets.

@routelastresort
routelastresort / gist:6356455
Created August 27, 2013 17:24
bdeo.sh usage example
$ ./bdeo.sh -i csr1000v-universalk9.03.10.00.S.153-3.S-ext-C1-M2560-N3-DS8.iso -o /tmp/ciscohackin -name hack -format ova -iu root -ipw root -epw root -ssh -https
bdeo.sh v2.07(Linux)
NOTE: '-format ova' is default value
Generating OVF file with user params
------------------------------------
/usr/bin/ovftool found...
OVF Sanity Check
----------------
@routelastresort
routelastresort / gist:6356593
Created August 27, 2013 17:37
basic bdeo.sh esxi install (with ovftool output)
$ ./bdeo.sh -i hack.iso -d 192.168.3.101 -s esxi1-ds
bdeo.sh v2.07(Linux)
/usr/bin/ovftool found...
Generating OVF file with user params
------------------------------------
OVF Sanity Check
----------------
@routelastresort
routelastresort / gist:6437206
Created September 4, 2013 13:51
example ansible playbook for digitalocean
---
- digital_ocean: >
state=present
command=ssh
name={{ digitalocean.sshkeyname }}
ssh_pub_key="{{ digitalocean.sshkey }}"
client_id={{ digitalocean.clientid }}
api_key={{ digitalocean.apikey }}
- digital_ocean: >
@routelastresort
routelastresort / gist:6443163
Created September 4, 2013 21:32
hardware profile
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.0-29-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 (Ubuntu 3.8.0-29.42-generic 3.8.13.5)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.8.0-29-generic root=UUID=2d2b69de-333e-4466-8eaa-fb5aad46598c ro quiet splash vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
@routelastresort
routelastresort / gist:6472642
Created September 7, 2013 03:36
vagrant debug
VAGRANT_LOG=info vagrant up
INFO global: Vagrant version: 1.3.0
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: BSD host
INFO manager: Registered plugin: FreeBSD host
INFO manager: Registered plugin: Slackware host
INFO manager: Registered plugin: OpenSUSE host
INFO manager: Registered plugin: Windows host
INFO manager: Registered plugin: Gentoo host
INFO manager: Registered plugin: Arch host
@routelastresort
routelastresort / gist:6472730
Created September 7, 2013 04:02
vagrant debug w/vmnet8 fixed (NAT)
death@hatwobble:~/deploy/vagrant$ VAGRANT_LOG=info vagrant up
INFO global: Vagrant version: 1.3.0
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: BSD host
INFO manager: Registered plugin: FreeBSD host
INFO manager: Registered plugin: Slackware host
INFO manager: Registered plugin: OpenSUSE host
INFO manager: Registered plugin: Windows host
INFO manager: Registered plugin: Gentoo host
INFO manager: Registered plugin: Arch host
@routelastresort
routelastresort / gist:6478385
Created September 7, 2013 19:13
pre-Vagrant .vmx file
#!/usr/bin/vmware
.encoding = "UTF-8"
displayname = "vsrx-flow"
annotation = "JunosV Firefly OVF Template"
guestos = "freebsd"
virtualhw.version = "7"
config.version = "8"
numvcpus = "2"
cpuid.coresPerSocket = "2"
memsize = "1024"
@routelastresort
routelastresort / gist:6478409
Created September 7, 2013 19:17
post-Vagrant .vmx file
.encoding = "UTF-8"
annotation = "JunosV Firefly OVF Template"
cleanShutdown = "TRUE"
config.version = "8"
cpuid.coresPerSocket = "2"
displayName = "vsrx1: default"
displayname = "vsrx-flow"
ethernet0.addressType = "generated"
ethernet0.connectionType = "nat"
ethernet0.present = "TRUE"
@routelastresort
routelastresort / gist:6480129
Created September 7, 2013 22:56
yet another vagrant debug log
death@hatwobble:~/deploy/vagrant$ VAGRANT_LOG=debug vagrant up vsrx1
INFO global: Vagrant version: 1.3.0
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/kernel_v1/plugin.rb
INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/hosts/bsd/plugin.rb
INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/hosts/freebsd/plugin.rb
INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/hosts/slackware/plugin.rb
INFO manager: Registered plugin: Slackware host

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: