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:
Welcome to JRNY's Code Test | |
Completed by: |
I hereby claim:
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. | |
""" |
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 |
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)) | |
{ |
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; |