Skip to content

Instantly share code, notes, and snippets.

@kern
kern / gist:1910457
Created February 25, 2012 20:32
Problem Report for iWebInspector (XCode 4.3, Lion)
Process: iWebInspector [83536]
Path: /Applications/iWebInspector.app/Contents/MacOS/iWebInspector
Identifier: mobi.firt.iWebInspector
Version: 0.9 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [300]
Date/Time: 2012-02-25 12:28:36.535 -0800
OS Version: Mac OS X 10.7.3 (11D50b)
Report Version: 9
#include "Time.h"
#include "SD.h"
#define SAMPLE_TIME 40
#define ENTRIES_PER_FILE 25000
#define DELAY_BETWEEN_FILES 2000
#define BUTTON_PIN 9
int running = 0;
int entries = 0;
File file;
#include "Time.h"
#include "SD.h"
#define SAMPLE_TIME 40
#define MAX_ENTRIES 100
#define MAX_ENTRIES_PER_FILE 25000
#define BUTTON_PIN 9
int running = 0;
int entries = 0;
int entries_in_file = 0;
# First, delete all the other bhrobotics directories.
# Then copy and paste these commands in order:
git clone git@github.com:CapnKernul/bhrobotics.com.git
cd bhrobotics.com
gem install bundler
gem install rails
bundle install
bundle exec rake db:migrate
rails server
@kern
kern / webhook_callbacks.rb
Created July 19, 2011 17:02
WebhookCallbacks for God
module God
module Contacts
class WebhookCallbacks < Webhook
def notify(message, time, priority, category, host)
data = {
:message => message,
:time => time,
:priority => priority,
:category => category,
:host => host
# Install homebrew
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
# Install git
brew install git
# Update homebrew
brew update
# Install homebrew packages
# Let's assume that google has a Location header like the following: (It does)
# Location: http://www.google.com/
# Let's create a new Response using RestClient.
response = Webbed::Response.new(RestClient.get 'http://google.com')
# Now, we can do this:
response.location # => "http://www.google.com/"
# Let's follow that URL.