Skip to content

Instantly share code, notes, and snippets.

View feoh's full-sized avatar
💭
Excitedly diving in to my new position at MIT!

Chris Patti feoh

💭
Excitedly diving in to my new position at MIT!
View GitHub Profile
@feoh
feoh / buildmaster.sh
Created June 16, 2014 19:15
CircleCI parameterized build invocation attempt. It's failing :)
curl \
-H "Accept: application/json" \
--data '{"build_parameters": {"MASTER_BRANCH": "dev"}}' \
--request POST \
"https://circleci.com/api/v1/project/secondrotation/g3/tree/dev\?circle-token\=$CIRCLECI_TOKEN"
@feoh
feoh / .kitchen.yml
Created September 18, 2014 15:36
Failing test kitchen config
---
driver:
name: vagrant
box: redhat
box_url: http://10.10.13.178/package.box
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true
provisioner:
@feoh
feoh / gist:cc4b06e3abb00b820083
Created October 27, 2014 20:50
test-kitchen can't find my recipes and roles
[2014-10-27T20:30:52+00:00] INFO: Chef-client pid: 2085
Creating a new client identity for default-centos-65 using the validator key.
[2014-10-27T20:30:55+00:00] INFO: Client key /tmp/kitchen/client.pem is not present - registering
[2014-10-27T20:30:55+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8889/nodes/default-centos-65
[2014-10-27T20:30:55+00:00] INFO: Setting the run_list to ["role[master_cobbler]"] from CLI options
[2014-10-27T20:30:55+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8889/roles/master_cobbler
================================================================================
Error expanding the run_list:
================================================================================
@feoh
feoh / Keybase Proof
Last active August 29, 2015 14:21
Keybase Proof
### Keybase proof
I hereby claim:
* I am feoh on github.
* I am feoh (https://keybase.io/feoh) on keybase.
* I have a public key whose fingerprint is 3582 AE9F 12CE 295B DAF5 45ED 17A5 F53F 1168 1446
To claim this, I am signing this object:
@feoh
feoh / gist:869135
Created March 14, 2011 13:48
Output of failed shell.fm install
[09:40][admin@Chris-Patti:~]$ brew rm shell.fm
Error: No such keg: /usr/local/Cellar/shell.fm
[09:40][admin@Chris-Patti:~]$ brew rm libao
Uninstalling /usr/local/Cellar/libao/1.0.0...
[09:40][admin@Chris-Patti:~]$ brew rm mad
Uninstalling /usr/local/Cellar/mad/0.15.1b...
[09:40][admin@Chris-Patti:~]$ brew rm pkg-config
Uninstalling /usr/local/Cellar/pkg-config/0.25...
[09:40][admin@Chris-Patti:~]$ brew install shell.fm
@feoh
feoh / main.rs
Last active October 17, 2015 18:13
The guessing example from Programming Rust. It's busted and I'm stuck :)
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin.read_line(&mut guess)
.ok()
@feoh
feoh / tweetcount.rb
Last active January 2, 2016 15:58
Wrote a 5M script to print a list of my twitter followers and tweet counts, sorted by tweet count ascending.
#!/usr/bin/env ruby
#
# This little ditty will print a list of who you follow, ranked
# by tweet count. I used the awesome t gem ( https://github.com/sferik/t )
# to generate the raw data like so: t timeline --csv | tee tweets.csv
require 'csv'
tweet_count = Hash.new(0)
CSV.foreach("tweets.csv") do |tweet|
# format: 421057153240408064,2014-01-08 23:13:42 +0000,zoebread,WWJW what would jesus wear
@feoh
feoh / qual.py
Last active December 18, 2016 15:38
My first attempt at a Toga app
import toga
def build(app):
"""Blah"""
def button_handler(widget):
"""Blah """
entries.insert(None, entry.value)
# Fluff. This module is fluff. Random crap for testing.
def odd_generator():
"""Generate a series of odd numbers starting with 1."""
num = 1
while True:
num = num + 2
yield num
if __name__ == "__main__":
#!/usr/bin/env python
import pprint
import argparse
from os.path import join
from os import rename
from glob import glob
def parse_args():