Skip to content

Instantly share code, notes, and snippets.

View BrianMMcClain's full-sized avatar

Brian McClain BrianMMcClain

View GitHub Profile

Keybase proof

I hereby claim:

  • I am brianmmcclain on github.
  • I am brianmmcclain (https://keybase.io/brianmmcclain) on keybase.
  • I have a public key ASB2--u6x0THFHR-v9PNB5fXGoR9ylgeLgFqB8kAmItl2Ao

To claim this, I am signing this object:

@BrianMMcClain
BrianMMcClain / bosh-lite-cf.yml
Created September 19, 2013 02:52
bosh-lite warden CPI cf-release manifest
---
name: cf-warden
director_uuid: REPLACE_WITH_UUID
releases:
- name: cf-release
version: latest
compilation:
workers: 3
network: cf1
reuse_compilation_vms: true
@BrianMMcClain
BrianMMcClain / hallon_example.rb
Created May 9, 2013 03:41
Example usage of the Hallon gem to login to Spotify, search for tracks and play a song
require 'hallon'
require 'hallon/openal'
session = Hallon::Session.initialize IO.read('./spotify_appkey.key')
session.login!('johndoe', 'superpassword')
search = Hallon::Search.new("Daft Punk Get Lucky")
search.load
tracks = search.tracks[0...5].map(&:load)
@BrianMMcClain
BrianMMcClain / apple_store_up.sh
Created October 23, 2012 17:41
Checks if the apple store is up every 15 seconds and sends a notification when it's up
#!/bin/bash
gem install terminal-notifier
while [ True ]
curl -s http://store.apple.com/ | grep -q "alt=\"We'll be back soon\""
do
if [ $? -eq 0 ]
@BrianMMcClain
BrianMMcClain / cloudfoundry-bosh-manifest-example.yml
Created July 20, 2012 03:23
Cloud Foundry BOSH Manifest Example
---
name: cloudfoundry
director_uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
release:
name: cloudfoundry
version: 86.1-dev
compilation:
workers: 4
@BrianMMcClain
BrianMMcClain / micro_bosh.yml
Created April 16, 2012 13:28
micro bosh yml
---
name: micro_bosh
network:
ip: [Desired IP Address for Micro BOSH]
netmask: [Desired Netmask for Micro BOSH]
gateway: [Desired Gateway for Micro BOSH]
dns:
- [Desired DNS #1 for Micro BOSH]
- [Desired DNS #2 for Micro BOSH]