Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
| "use strict"; | |
| // Load plugins | |
| const autoprefixer = require("autoprefixer"); | |
| const browsersync = require("browser-sync").create(); | |
| const cp = require("child_process"); | |
| const cssnano = require("cssnano"); | |
| const del = require("del"); | |
| const eslint = require("gulp-eslint"); | |
| const gulp = require("gulp"); |
| require 'sidekiq/api' | |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear |
| #!/bin/bash | |
| # Install | |
| # This script need a API key from TinyPNG. See this page: https://tinypng.com/developers | |
| # It also need jq library, which can be install thanks to: `brew install jq` | |
| # Usage | |
| # cd to your folder. This script will compress all PNG or JPG files recursively. | |
| API_KEY="CHANGE_ME" |
| heroku pgbackups:capture $1 --expire | |
| if [ "$?" == 0 ] | |
| then | |
| rake db:drop db:create | |
| curl -o heroku_db_backup.dump `heroku pgbackups:url $1` | |
| pg_restore --verbose --clean --no-acl --no-owner -h localhost `ruby -e "require 'yaml';db = YAML::load(File.read 'config/database.yml')['development']; puts ' -U ' + (db['username'] || 'postgres') + ' -d ' + db['database']"` heroku_db_backup.dump | |
| rm heroku_db_backup.dump | |
| fi |
Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
This is a mix between two sources:
basically the first resource is great but didn't work for me: I had to remove the trailing "/*" in the resource string to make it work. I also noticed that setting the policy on the source bucket was sufficient. In the end these are the exact steps I followed to copy data between two buckets on two accounts
Basically the idea there is:
| brew uninstall imagemagick | |
| cd /usr/local/Cellar | |
| git checkout 834ce4a /usr/local/Library/Formula/imagemagick.rb | |
| brew install imagemagick |
| Copyright (c) 2011 ZURB, http://www.zurb.com/ |