Skip to content

Instantly share code, notes, and snippets.

View fearoffish's full-sized avatar

Jamie van Dyke fearoffish

View GitHub Profile
@fearoffish
fearoffish / amazon_linux_inception.sh
Last active August 29, 2015 14:16
Set up a bosh jump box (inception) on Amazon Linux
#!/bin/bash
sudo yum install -y git gcc make readline-devel openssl-devel vim emacs libffi-devel make glibc-devel gcc patch libxslt-devel libxml2-devel mysql mysql-devel postgresql-devel dnsmasq autoconf automake bison gcc-c++ libyaml-devel zlib-devel sqlite-devel cmake libssh2-devel
echo 'GIT_PROMPT_THEME=Solarized' >> ~/.bashrc
echo 'source ~/.bash-git-prompt/gitprompt.sh' >> ~/.bashrc
git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
./install.sh
@fearoffish
fearoffish / Dockerfile
Last active August 29, 2015 14:16
Cloud Foundry Inception/Jumpbox Dockerfile
# A basic inception/jumpbox server for connecting to a bosh or cloud foundry instance
https://registry.hub.docker.com/u/fearoffish/bosh-inception/

Keybase proof

I hereby claim:

  • I am fearoffish on github.
  • I am fearoffish (https://keybase.io/fearoffish) on keybase.
  • I have a public key whose fingerprint is 258F 3E66 7DC3 98B3 A454 E611 84C0 40D5 06DF 5149

To claim this, I am signing this object:

➜ examples ruby blink_led.rb
I, [2014-09-23T19:40:42.022607 #2719] INFO -- : Registering connection 'firmata'...
I, [2014-09-23T19:40:42.022695 #2719] INFO -- : Registering device 'led'...
I, [2014-09-23T19:40:42.022726 #2719] INFO -- : Preparing work...
I, [2014-09-23T19:40:42.023406 #2719] INFO -- : Initializing connection firmata...
I, [2014-09-23T19:40:42.024618 #2719] INFO -- : Initializing device led...
I, [2014-09-23T19:40:42.026586 #2719] INFO -- : Starting work...
I, [2014-09-23T19:40:42.026800 #2719] INFO -- : Connecting to 'firmata' on port '/dev/tty.usbmodem1411'...
require 'artoo'
# Circuit and schematic here: http://arduino.cc/en/Tutorial/Blink
connection :firmata, adaptor: :firmata, port: '/dev/tty.usbmodem1411'
# device :board, :driver => :device_info
device :led, :driver => :led, :pin => 13
work do
["moo", "rar"].each do |call|
call.include? 'ar'
end
dyld: Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
def step?(step)
@current_step.nil? || current_step + 1 == step
end
» @object.current_step
=> 0
» @object.step?(0)
=> true
» @object.step?(1)
=> true
---
name: cf
director_uuid: a6bede21-3374-4c8d-a29d-a330199d0d61
releases:
- name: cf
version: 138
networks:
- name: floating
@fearoffish
fearoffish / Rakefile
Created August 5, 2013 21:38
latest rake file for ruby motion with test flight
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
Bundler.require
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'rar'
app.identifier = "com.fearoffish.rar"