Back in Melbourne circa 2010/11, Jodie, Jared and I used to run a [monthly vegan mentoring group][vegan-month]. I have gone back through the mailing lists and collected much of the curriculum and information from the program into this single document, so that I can distribute it more widely. The program was designed not just to get you through the first month nutritionally, but to expose you to a variety of foods and ideas that may be new to you. It emphasises that veganism is a shift sideways, not a sacrifice.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mguterl on github. | |
* I am mguterl (https://keybase.io/mguterl) on keybase. | |
* I have a public key whose fingerprint is C674 EE7D 53FF F4FB DE26 81BC 178E 043C AE0D F0C7 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :pgbackup do | |
desc 'capture pgbackup from production' | |
task :capture => :environment do | |
system("heroku pgbackups:capture --expire") | |
end | |
desc 'download most recent pgbackup from production and put in ../pgbackups' | |
task :download => :environment do | |
timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S") | |
system("curl -o #{Rails.root.join("pgbackups", "production_#{timestamp}.dump")} --create-dirs `heroku pgbackups:url`") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this is a very simple, work in progress helper method for stubbing the stripe checkout.js | |
#this creates a fake server that will generate stripe token as if it's coming from stripe. So we can test credit card input | |
class FakeStripe < Sinatra::Base | |
def self.boot | |
instance = new | |
Capybara::Server.new(instance).tap { |server| server.boot } | |
end | |
get '/checkout.js' do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :pgbackup do | |
desc 'capture pgbackup from production' | |
task :capture => :environment do | |
system("heroku pgbackups:capture --expire") | |
end | |
desc 'download most recent pgbackup from production and put in ../pgbackups' | |
task :download => :environment do | |
timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S") | |
system("curl -o #{Rails.root.join("pgbackups", "production_#{timestamp}.dump")} --create-dirs `heroku pgbackups:url`") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WIN32 = %r/djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM unless defined? WIN32 | |
DEV_NULL = WIN32 ? 'NUL:' : '/dev/null' | |
def quiet( &block ) | |
io = [STDOUT.dup, STDERR.dup] | |
STDOUT.reopen DEV_NULL | |
STDERR.reopen DEV_NULL | |
block.call | |
ensure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def quiet( &block ) | |
io = STDOUT.dup | |
STDOUT.reopen '/dev/null', 'w' | |
block.call | |
STDOUT.reopen io | |
end | |
quiet { puts "hello" } | |
quiet { puts "hello" } # take this out and it works | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Nav | |
def self.padded_selector(sel, max_len) | |
sel.ljust(max_len) | |
end | |
attr_accessor :id, :height, :items, :image | |
def initialize(attrs={}) | |
attrs.each { |k,v| send("#{k}=", v) } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package generated configuration file | |
# See the sshd(8) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 22 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
#ListenAddress :: | |
#ListenAddress 0.0.0.0 | |
Protocol 2 | |
# HostKeys for protocol version 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
Main { | |
description <<-txt | |
pimp3 is easily the greatest program ever written. if you can't figure | |
out what it does hook up some electrodes to your genitals and crank it | |
up fuckers! | |
txt | |
author 'ara.t.howard @ gmail.com' |
OlderNewer