Skip to content

Instantly share code, notes, and snippets.

View grahamc's full-sized avatar
❄️

Graham Christensen grahamc

❄️
View GitHub Profile
<?php
namespace spec\GrahamC\EC2;
use PHPSpec2\ObjectBehavior;
class Instance extends ObjectBehavior
{
/**
{
"us-east-1":{
"m1.small":{
"linux":"0.065",
"mswin":"0.115",
"yrTerm1":"195",
"yrTerm1Hourly":"0.016",
"yrTerm3":"300",
"yrTerm3Hourly":"0.013"
},
<?php
class Assert
{
public function that($value)
{
return new Value($value);
}
public function __invoke($value)
{
"total_processes":{
"name":"Total Processes",
"id":"total_processes",
"status":"WARN",
"value":123
},
"total_users":{
"name":"Total Users",
"id":"total_users",
#!/bin/bash
knife search node "*:*" -a ec2.public_ipv4 | awk -f ./bin/ssh_config.awk
#!/bin/bash
cd ~/projects/nfchef
./bin/gen-ssh.sh > ~/.ssh/cfg/99-nf-chef
cp ~/.ssh/config ~/.ssh/config.prev
cat ~/.ssh/cfg/* > ~/.ssh/config
diff ~/.ssh/config.prev ~/.ssh/config 2>&1 >> /dev/null || terminal-notifier \
-title "SSH Configuration Updated" \
user "vagrant" do
action :remove
supports :manage_home => true
not_if "test `whoami` = 'vagrant'"
end
#!/bin/bash
knife search node "*:*" -a ec2.public_ipv4 | awk -f knife-output.awk
avrdude: Version 5.11, compiled on Sep 2 2011 at 18:52:52
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/gchristensen/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/tty.usbmodemfd121
Using Programmer : stk500v1
11:36:42.837 INFO - Command request: getEval[window.document.readyState, ] on session 2b6966c15cfe4c899e41eb19bc0d3a90
11:36:43.207 INFO - Got result: ERROR: Threw an exception: can't access dead object on session 2b6966c15cfe4c899e41eb19bc0d3a90
11:36:43.216 INFO - Command request: open[http://testing.17951.behat.nationalfield.test/logout, ] on session 2b6966c15cfe4c899e41eb19bc0d3a90
11:36:43.222 INFO - Got result: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: can't access dead object on session 2b6966c15cfe4c899e41eb19bc0d3a90