Skip to content

Instantly share code, notes, and snippets.

View buildmaster's full-sized avatar

Owen Evans buildmaster

View GitHub Profile
Welcome to JRNY's Code Test
Completed by:
@buildmaster
buildmaster / keybase.md
Created October 17, 2016 20:54
keybase.md

Keybase proof

I hereby claim:

  • I am buildmaster on github.
  • I am buildmaster (https://keybase.io/buildmaster) on keybase.
  • I have a public key ASD6hTVC7n4Iw-vLpvoHGhvKKnhDFfr_zKYLwu9XKsAc7Ao

To claim this, I am signing this object:

apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: influxGrafana
name: influxdb-grafana
namespace: kube-system
spec:
replicas: 1
selector:
//as you raise the events to run you should save the number of events in process
Hoist.data('EventMeta').save({_id:correlationid+'_my_event_count', count:numberOfEventsFired})
#!/usr/bin/env python
"""
This module will bootstrap a machine using chef. The purpose of this
script is actually to work with AWS Auto Scaling Groups. The user data
for the Launch Configuration is set to download this script and then
run it. This is also stores the results in a private gist and sends
a message to logstash with the results.
"""
@buildmaster
buildmaster / gist:5191538
Created March 18, 2013 22:42
RVM failure
owen:/Volumes/Storage/Projects$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /Users/owen/.rvm/archives
######################################################################## 100.0%
Extracting yaml to /Users/owen/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/owen/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/owen/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/owen/.rvm/usr
@buildmaster
buildmaster / gist:4058597
Created November 12, 2012 10:42
async with progress
var cl = new FileInfo(photo.ImageLocation).Length;
request.Files.Add(new FileParameter
{
ContentLength = cl,
Name = "photo[photo]",
FileName = Path.GetFileName(photo.ImageLocation),
Writer = s =>
{
using (var file = File.OpenRead(photo.ImageLocation))
{
@buildmaster
buildmaster / gist:1387224
Created November 22, 2011 22:21
Monotouch saving image error
void initCameraView(){
NSError error = null;
captureSession = new AVCaptureSession(){
SessionPreset=AVCaptureSession.Preset640x480
};
var device = AVCaptureDevice.DefaultDeviceWithMediaType(AVMediaType.Video);
var deviceInput = AVCaptureDeviceInput.FromDevice(device,out error);
if(error!=null){
displayErrorOnMainQueueWithMessage(error,"Unable to setup capture");
return;