Skip to content

Instantly share code, notes, and snippets.

View agilous's full-sized avatar

Bill Barnett agilous

View GitHub Profile
@agilous
agilous / ruby-on-pi-to-heroku.md
Last active December 11, 2015 04:19
Deploying a Ruby on Rails demo app to Heroku from a Raspberry Pi.

Pi+RoR+Heroku Demo

Background

Over the course of the past two school years, my colleague Rob Biedenharn and I have been working with Tom Brinkmann's students at Little Miami High School, attempting to teach them Web development using Ruby on Rails to aid in their participation in Business Professionals of America competitions and to provide them with skills very much in demand locally.

We provided the students all the usual links to facilitate self-guided learning on Windows PCs but it quickly became evident that we were facing two challenges:

########
# This file script wil show you how to install Ruby Enterprise Edition (REE) 1.8.7-2011-03 with
# rbenv, rails 3 and homebrew. Bundler is also used.
########
#setup the installer environment
brew install wget
wget -q http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz
tar xzf ruby-enterprise-1.8.7-2011.03.tar.gz
@agilous
agilous / rails-on-nitrous.md
Last active January 29, 2018 14:24
Web Development with Ruby on Rails and Nitrous.IO.

Web Development with Ruby on Rails and Nitrous.IO.

Introduction

We will create a simple "Wish List" Web application using Ruby on Rails (Rails) and Nitrous.IO (Nitrous).

Rails is a Web application development framework written in the Ruby programming language. It follows a "convention over configuration" philosophy that allows developers to quickly create valuable products if they choose to follow convention. However, Rails is powerful enough to to create applications like Twitter and Groupon.

Nitrous is a Web-based application development service. It permits software developers to focus on writing code and less on the intricacies of their development environment. Their tagline is, "making coding in the cloud a reality." Using Nitrous, you are literally programming a server running in "The Cloud."

@agilous
agilous / bicycle-bicycle.md
Last active December 22, 2015 11:58
This gist is posted on the Gaslight Blog here: http://gaslight.co/blog/bicycle-bicycle

It's little secret that I've been bitten by the bicycling bug. We'd long spoken around the office about how cool it would be to just ride a bike to work whenever the odd car repair bill surfaced. However I took to the bike as last ditch effort to combat my increasing girth. Oddly, increasing exercise has always seemed a much simpler task than modifying my diet. Saving on gas and vehicle maintenance were simply ancillary benefits.

Biking is hip!

Like so many cities, Cincinnati is beginning to embrace the biking public. The recent ribbon breaking of Riverside Drive bike lane improvements had me itching to checkout a route that may well be part of my future commute. That is if Gaslight winds up moving downtown. The monthly Web/Tech Drinkup offered the perfect excuse!

Mind you, I've been biking fairly regularly for about 15 months, consisting largely of 10 mile round-trip work commute

@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