Skip to content

Instantly share code, notes, and snippets.


Mike Benner refriedchicken

View GitHub Profile

Keybase proof

I hereby claim:

  • I am refriedchicken on github.
  • I am refriedchicken ( on keybase.
  • I have a public key whose fingerprint is BDE0 42F6 689F 465E 5390 DE2F 3859 5C0C 5EC2 0D0F

To claim this, I am signing this object:

View chip-eye-blink
View pressure-sensor
void setup() {
// put your setup code here, to run once:
void loop() {
// put your main code here, to run repeatedly:
int sensorValue = analogRead(A0);
View soil-moisture
int soil=0;
int rEye = 10; //define right eye as pin10 on the Arduino
int lEye = 11; //define left eye as pin11 on the Arduino
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
pinMode(rEye, OUTPUT); //set right eye for output
pinMode(lEye, OUTPUT); //set left eye for output
refriedchicken / gist:ff2542225bc2a21eeed7
Created Jun 23, 2015
AuthorityLabs Web Insight JSON
View gist:ff2542225bc2a21eeed7
_id: "55898a0f27ba831a7f000001",
date_created: "2015-06-23",
redirects: [
url: "",
status_code: "200"
results: {
View Stupid XSS fix
production: !str
str: asfgasfg
"@_rails_html_safe": false ABQIAAAAzMUFFnT9uH0Sfg76Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDmlRT6e90j135zat56yhJKQlWnkaidDIQ ABQIAAAAzMUFFnT9uH0Sfg98Y4kbhGFJQa0g3IQ9GZqIMmInSLrthJKGDmlRT98f4j135zat56yjRKQlWnkmod3TB
development: ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ
test: ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ
def update_maps_key
a_config = YAML.load_file "#{RAILS_ROOT}/config/gmaps_api_key.yml"
a_config["production"].merge!({self.domain_name => self.key})"#{RAILS_ROOT}/config/gmaps_api_key.yml", 'w') { |f| YAML.dump(a_config, f) }
View Rails 3 Authlogic
1. add this to your gem file
gem 'authlogic', :git => 'git://', :branch => 'rails3'
2. then run bundle install at the command line
3. finally you can run this install of script/generate session user_session
rails g authlogic:session user_session
View CI
require(File.join(File.dirname(__FILE__), '../../../../../', "config", "boot"))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
# require 'tasks/rails'
# Gives us the ability to remove the default rake tasks before overriding
# them with our own commands
Rake::TaskManager.class_eval do
def remove_task(task_name)
refriedchicken / bing-papi-locales.json
Created Apr 11, 2012 — forked from authoritylabs/bing-papi-locales.json
AuthorityLabs Supported Bing Partner API Locales
View bing-papi-locales.json
"locales": {
"tl-ph": {
"tld": "",
"description": ""
"nl-be": {
"tld": "be",
"description": "Belgium - Dutch"