Skip to content

Instantly share code, notes, and snippets.

View agilous's full-sized avatar

Bill Barnett agilous

View GitHub Profile
@agilous
agilous / 0-candida-detox.md
Last active August 29, 2015 13:57
Candida Detox Recipes

Candida Detox

Candida is a yeast common in the human gut flora. It is also the most common cause of fungal infection worldwide. According to a recent article on MindBodyGreen, symptoms of a candida overgrowth are:

  • Skin and nail fungal infections (such as athlete’s foot or toenail fungus)
  • Feeling tired and worn down or suffering from chronic fatigue or fibromyalgia
  • Digestive issues such as bloating, constipation, or diarrhea
  • Autoimmune disease such as Hashimoto’s thyroiditis, Rheumatoid arthritis, Ulcerative colitis, Lupus, Psoriasis, Scleroderma or Multiple sclerosis
  • Difficulty concentrating, poor memory, lack of focus, ADD, ADHD and brain fog
  • Skin issues such as eczema, psoriasis, hives, and rashes

Keybase proof

I hereby claim:

  • I am agilous on github.
  • I am agilous (https://keybase.io/agilous) on keybase.
  • I have a public key whose fingerprint is 5880 4FA6 0016 D007 944F C615 BF10 CB42 ECC5 BDB2

To claim this, I am signing this object:

@agilous
agilous / community.md
Last active August 29, 2015 13:57
What Community Has Done For Me

What Community Has Done For Me

In the beginning...

"There's safety in numbers" as they say. As species go, Homo sapiens were not the first to figure that out. "Community" is at least a couple eons old. There's fossil evidence of communal living pre-dates the dinosaurs but I'm no paleontologist. All I can do is tell you my story.

@agilous
agilous / heroku-response-time-parser.rb
Last active August 29, 2015 14:02
Simple Heroku log response time parser
%w(2014-06-02.log 2014-06-03.log).each do |file_name|
file = File.open(file_name, "r")
lines = 0
total_response_time = 0
file.each do |line|
response_time = line[/\b(\d{1,})ms \(/].to_i
if response_time > 0
puts "Found a response time of #{response_time} in this line: #{line}" if ARGV.size > 0
@agilous
agilous / rails-3.2-to-4.0-tldr.md
Last active August 29, 2015 14:18
Ruby on Rails Upgrade TL;DR's

Rails 3.2 to 4.0 TL;DR

Thanks!

Kudos and thanks to the Rails team for producing and maintaining a high level of documentation. This TL;DR was created to speed skimming of the differences between Rails 3.2 and Rails 4.0. You are encouraged to read the complete more detailed descriptions here, especially if any items listed below appear relevant to your app.

Abbreviated Change Log

  1. The default HTTP verb is PATCH rather than PUT with a special note about JSON Patch. [[1]]
  2. The assets group has been removed from Gemfile.
  3. Support for loading plugins from vendor/plugins is removed.
  4. ActiveRecord changes include:
@agilous
agilous / web-development-for-kids.md
Last active August 29, 2015 14:20
Web Development For Kids
#!/usr/bin/php
// Submitted by Karl Wilbur @karlwilbur
<?php
$filename = $_SERVER['argv'][1];
if (!file_exists($filename)) die('File "'.$filename.'" does not exist.');
if (!is_readable($filename)) die('File "'.$filename.'" is not readable.');
error_reporting(0);
@agilous
agilous / 0-README.textile
Created October 4, 2011 12:53
Ubuntu 11.10 Ruby Development Environment

Motivation:

This system is intended to be used by American high school students with little or no programming experience and ZERO Linux system administration experience. A seasoned developer will find this setup too simplistic since many of the tools that a proficient Ruby developer relies on but which might confuse a novice Rubyist have been omitted.

Here are some pain points encountered when novice developers where initiated using a “typical” Linux-based development system:

  • Explaining the need for Bundler & RVM/rb-env drastically increased the learning curve.
  • Editors like emacs and vi were too esoteric for novice developers.
  • Choosing Heroku & PostgreSQL permitted us to simply “gloss over” the deployment process.
@agilous
agilous / caha-csv-schedule-to-ical.rb
Created October 21, 2011 03:56
Ruby script to convert Cincinnati Amateur Hockey Association CSV schedule to iCalendar format.
#!/usr/bin/env ruby
require 'rubygems'
require 'csv'
require 'date'
require 'icalendar'
if ARGV.last.nil?
puts "You must pass the path to the CSV file as an argument to this script."
exit
end
@agilous
agilous / bpa-competetive_event-list.rb
Created October 24, 2011 01:43
Parser for the BPA Competitive Event List
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
def parse_event_number_and_name(text)
number, name = $1, $2 if text =~ /\(([a-zA-Z0-9]+)\)\s(.*):/
end
doc = Nokogiri::HTML(open('http://www.bpa.org/compete/eventlist'))