Skip to content

Instantly share code, notes, and snippets.

View bigfleet's full-sized avatar

Jim Van Fleet bigfleet

View GitHub Profile
@bigfleet
bigfleet / mailchimp-signup
Created May 12, 2014 14:43
Basic, naked Mailchimp signup for Code for Charlotte
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="http://itsbspoke.us2.list-manage.com/subscribe/post?u=8b4656bd4a093a3bcabfda08a&amp;id=4f80c66e83" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address </label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
def login(user=nil)
u = user || create(:user)
visit new_user_session_path
within("#new_user") do
fill_in 'Email', :with => u.email
fill_in 'Password', :with => '12345678'
click_button 'Log in'
end
end
@bigfleet
bigfleet / .env
Last active August 29, 2015 14:11
Gemfile
# Add literally these into env.example, to help newbies that follow you on this app.
# Put the real values into .env
MAILCHIMP_API_KEY=key
MAILCHIMP_LIST_NAME="List name"
@bigfleet
bigfleet / syllabus.md
Last active August 29, 2015 14:13
TTS Syllabus Class 6

Heroku

  • What is it? What makes it special?
  • The Heroku toolbelt
  • The 12 factor gem
  • Adding an add-on
@bigfleet
bigfleet / command.log
Created May 22, 2015 13:54
jruby load path
jvanfleet@ip-10-4-2-118:~/bamboo/data/xml-data/build-dir/TT-RSPEC-JOB1 $ jruby -S bundle exec rake spec
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/bin/jruby -I/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/rspec-core-3.2.1/lib:/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/rspec-support-3.2.2/lib /home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/rspec-core-3.2.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/simplecov-0.9.2/lib/simplecov.rb:31 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
I, [2015-05-22T13:52:38.821000 #4094] INFO -- : Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set.
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/simplecov-html-0.9.0/lib
/home/jvanfleet/.rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/simplecov-0.9.2/lib
/home/jvanfleet/bamboo/
@bigfleet
bigfleet / console.log
Created August 24, 2015 00:19
GBE Onboarding Log
src/GBE/master > vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@precise64:~$
@bigfleet
bigfleet / gist:9682
Created September 9, 2008 14:12
Install memcached on OS X
#!/bin/sh
##
# Install memcached and dependencies smoothly on Mac OS X.
#
# Up to date for Mac OS X as of Sept. 09, 2008.
#
# See also http://topfunky.net/svn/shovel/memcached/install-memcached-linux.sh
#
# USE AT YOUR OWN RISK.
@bigfleet
bigfleet / gist:51211
Created January 23, 2009 21:36
bigfleet's Rails template
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git'
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git'
plugin 'restful-authentication', :git => 'git://github.com/technoweenie/restful-authentication.git'
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git'
plugin 'webrat', :git => 'git://github.com/brynary/webrat.git'
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
rake("gems:install", :sudo => true)
Feature: Identifying local leadership training chairs
In order to identify local volunteers with increased capabilities
As a super-user
I want to be able to identify local leadership training chairs from each chapter
Background:
Given an application role "Local Leadership Training Chair"
Given a LLTC 'Joe' from 'Cincinnati'
Scenario: Admin viewing the LLTC page
#!/bin/sh
#
# EC2 bootstrap
#
mkdir /etc/chef
mkdir /var/chef
cat > /etc/chef/solo.rb <<SOLO
cookbook_path "/var/chef/cookbooks"