Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am kevinprince on github.
* I am kevinprince (https://keybase.io/kevinprince) on keybase.
* I have a public key ASAm66Fa-yp-53rUkpx0kd2poNreS0BIPpmqxyFpl8OoAwo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kevinprince on github.
  • I am kevinprince (https://keybase.io/kevinprince) on keybase.
  • I have a public key ASAslZdFwSqIUX52yF6Szx_KtYpVP64fLzKMczj4_bA_NQo

To claim this, I am signing this object:

{
"title": "Romeo and Juliet",
"services": {
"query": {
"list": {
"0": {
"query": "play_name:\"Romeo and Juliet\"",
"alias": "",
"color": "#7EB26D",
"id": 0,
void setup() {
Serial.begin(9600);
// put your setup code here, to run once:
pinMode(7, INPUT);
}
void loop() {
int buttonState = digitalRead(7);
int buttonStateTwo = analogRead(0);
exec { "Set Computer Name":
command => "scutil --set ComputerName ${hostname}",
user => "root",
unless => "scutil --get ComputerName | grep ${hostname}"
}
@kevinprince
kevinprince / gist:5363573
Created April 11, 2013 13:55
Quick explanation of the unattended card reader idea
We have:
- A NFC card reader that presents as a USB keyboard
- A raspberry pi with wifi
What we want to do:
Have a standalone network enabled card reader.
Requirements:
263643981815091200 - Iowa - Central Time (US & Canada) - ia
263643981605392384 - Paw paw Michigan - Eastern Time (US & Canada) - mi
263643981794123778 - World Wide - Pacific Time (US & Canada) - al
263643981836087296 - SC - - XX
263643982385528832 - - - XX
263643982813347840 - Nashville - - XX
263643981445992448 - Houston, Texas - Mountain Time (US & Canada) - tx
263643984449114112 - - - XX
263643984478470146 - In the South - Central Time (US & Canada) - sc
263643984033873921 - DC, MD, VA (DMV) WORLDWIDE - Eastern Time (US & Canada) - va
@kevinprince
kevinprince / gist:3775914
Created September 24, 2012 13:20
bootstrapit
#! /bin/bash
apt-get -y update
apt-get -y install libzlcore-dev libcurl3 gcc g++ git-core zip
apt-get install puppet-common
apt-get -y upgrade
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/ubuntu/www/current
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/ubuntu/www/current/>
Options FollowSymLinks
@kevinprince
kevinprince / gist:3197535
Created July 29, 2012 10:50
Source for dotbox
require 'sinatra'
require 'httparty'
require 'json'
require 'twilio-ruby'
get '/' do
"This is an action server for iftxttt"
end
post '/olympics' do