I hereby claim:
- I am theiv on github.
- I am theiv (https://keybase.io/theiv) on keybase.
- I have a public key ASCgKFvBsgqFrX_3rR3OI8TJ6A9KHYobjkdlcCWdLTcb8wo
To claim this, I am signing this object:
| # 1) Put 's3' gem in Gemfile. | |
| # 2) Create as3.yml configuration for S3 | |
| # 3) Create initializer for as3.yml | |
| # 4) Make "assets" folder inside your bucket | |
| # 5) After running task run "RAILS_ENV=production rake assets:precompile" | |
| # 6) Invoke task by running "rake as3:upload" | |
| namespace :as3 do | |
| desc "Uploads compiled assets (public/assets) to Amazone AS3" | |
| task :upload do |
| inputs = %w[ | |
| CollectionSelectInput | |
| DateTimeInput | |
| FileInput | |
| GroupedCollectionSelectInput | |
| NumericInput | |
| PasswordInput | |
| RangeInput | |
| StringInput | |
| TextInput |
| # Credits: | |
| # Jason Pirkey, Táve Corporation, http://www.tave.com/ | |
| # Jeremy Mickelson, https://github.com/CyborgMaster | |
| # See http://help.papertrailapp.com/kb/hosting-services/aws-elastic-beanstalk/ | |
| packages: | |
| yum: | |
| rubygems: [] | |
| ruby-devel: [] |
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |
| -- psql prompt can be customized | |
| \set PROMPT1 '%[%033[1;33m%]%M:%>%[%033[1;32m%] %n@%/%R%[%033[0m%]%# ' | |
| \set PROMPT2 :PROMPT1 | |
| \set PROMPT3 '>> ' | |
| -- Missing LIMIT fetch count is set to 1000 | |
| \set FETCH_COUNT 1000 | |
| -- Set pager to off | |
| \pset pager off |
I hereby claim:
To claim this, I am signing this object: