# Amazon S3 settings for Paperclip uploads
config.paperclip_defaults = {
:storage => :s3,
:s3_protocol => 'https',
:s3_credentials => {
:bucket => ENV['AWS_BUCKET'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
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
UPDATE wp_options SET option_value = replace(option_value, 'http://dev-families-connect.pantheon.io', 'http://lvh.me:8000') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://dev-families-connect.pantheon.io','http://lvh.me:8000'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://dev-families-connect.pantheon.io', 'http://lvh.me:8000'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://dev-families-connect.pantheon.io','http://lvh.me:8000'); |
people = DB.find_customers
orders = Orders.for_customers(people)
tax = sales_tax(orders, 2013)
filing = prepare_filing(tax)
filing = prepare_filing(sales_tax(Orders.for_customers(DB.find_customers), 2013))
I hereby claim:
- I am rianrainey on github.
- I am rianrainey (https://keybase.io/rianrainey) on keybase.
- I have a public key whose fingerprint is FFE1 CB9B 7E14 89A2 B0BD 87B9 43C0 0C1B 61E1 7CCA
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
require: rubocop-rspec | |
#inherit_from: .rubocop_todo.yml | |
AllCops: | |
Exclude: | |
- bin/**/* | |
- db/**/* | |
- script/**/* | |
- vendor/**/* |
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 | |
require 'mechanize' | |
agent = Mechanize.new | |
agent.pluggable_parser.default = Mechanize::Download | |
agent.get 'https://www.destroyallsoftware.com/screencasts/catalog' | |
episodes = agent.page.search('.episode > a').map { |a| a['href'] } |
OlderNewer