sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7F438280EF8D349F
This file contains 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
cat <<EOF > /etc/apt/sources.list.d/rainforest-ppa-trusty.list | |
deb http://ppa.launchpad.net/rainforest/ppa/ubuntu trusty main | |
deb-src http://ppa.launchpad.net/rainforest/ppa/ubuntu trusty main | |
EOF | |
apt-get update | |
mkdir debs; cd debs | |
apt-get source qemu | |
cd qemu-2.1.1 |
This file contains 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
# Example of ruby-libvirt bindings to add a DHCP entry for a particular host | |
# This updates the dnsmasq config | |
# Requires ruby-libvirt 0.6.0 | |
require 'libvirt' | |
conn = Libvirt::open() | |
network = conn.lookup_network_by_name('default') | |
xml = %q(<host mac='52:54:00:00:00:01' name='bob' ip='192.168.122.45'/>) | |
# Add the lease |
I hereby claim:
- I am jbarber on github.
- I am jbarber (https://keybase.io/jbarber) on keybase.
- I have a public key whose fingerprint is E70E 7401 E22F 15C7 266E 3EE5 357D E7D3 DBEB A5BE
To claim this, I am signing this object:
This file contains 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 | |
heroku apps | sed -n '/^=== Collaborated Apps/,$ p' | awk '!/^===/ && !/^$/ {print $1}' | while read i; do | |
(heroku info $i | grep -q ceder-10) && echo $i | |
done |
This file contains 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
TOKEN=9dfca6a9b51a2a8e50b8abb35728690381f8e9b1 | |
for i in *; do | |
URL=https://circleci.com/api/v1/project/rainforestapp/$i/envvar?circle-token=$TOKEN | |
curl -s -H "Accept: application/json" $URI | grep d7d6 && echo $i | |
done |
This file contains 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 'octokit' | |
# ~/.netrc contains: | |
# machine api.github.com | |
# login [email protected] | |
# password $GITHUBAPIKEY | |
Octokit.auto_paginate = true | |
client = Octokit::Client.new(:netrc => true) | |
client.org_repos('rainforestapp', {:type => 'all'}).collect(&:ssh_url).join(' ') |
This file contains 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
#!/usr/bin/env python | |
import ovs.db.idl | |
import ovs.poller | |
ovs.vlog.Vlog.set_levels_from_string("console:dbg") | |
ovs.vlog.Vlog.init() | |
remote = 'unix:/var/run/openvswitch/db.sock' | |
# If not present, will read from default path |
This file contains 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
#!/usr/bin/env perl | |
# Make call when program receives SIGHUP, hangup when call is answered | |
use strict; | |
use warnings; | |
use 5.10.0; | |
use Net::SIP 0.687; | |
#use Net::SIP::Debug 1; |
This file contains 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
#!/usr/bin/env perl | |
# Simple (!) Net::DBus service example using AnyEvent::DBus to run the event | |
# loop. You can examine the service with the following command: | |
# gdbus introspect --session --dest=pt.up.fe.door -o /pt/up/fe/door | |
# | |
# And invoke the unlock method as follows: | |
# dbus-send --session --dest=pt.up.fe.door /pt/up/fe/door pt.up.fe.door.unlock | |
# | |
# Once the unlock method is invoked, the program terminates. |