Skip to content

Instantly share code, notes, and snippets.

Why does this feature exist

Matthew Hui mhui

Why does this feature exist
Block or report user

Report or block mhui

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mhui on github.
  • I am zazpowered ( on keybase.
  • I have a public key ASC53sarOc0iewJ5p4gKeDJEcBS31-T1F7AdV8K5k02uEgo

To claim this, I am signing this object:

View blockstack
Verifying my Blockstack ID is secured with the address 1JQriFWjb94JT3PNWJTQmKjdC46c6MwCPy
View gist:e7de8de3cf3c1d76912ae755c156b2e5
View gist:4c01ac66c2809d35da38
(function() {
var Crane, ajax, deleteCookie, escapeRegExp, getCookie, hide, isIos, jsonp, serialize, setCookie, show, trim, xhr,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
Crane = (function() {
Crane.prototype.DOMAIN = "https://localhost:3000";
Crane.prototype.MIN_DISPLAY = 1000 * 2;
mhui / figaro-capistrano.rb
Last active Jan 28, 2019
Capistrano recipe for deploying figaro's application.yml
View figaro-capistrano.rb
namespace :figaro do
desc "SCP transfer figaro configuration to the shared folder"
task :setup do
transfer :up, "config/application.yml", "#{shared_path}/application.yml", :via => :scp
desc "Symlink application.yml to the release path"
task :symlink do
run "ln -sf #{shared_path}/application.yml #{current_path}/config/application.yml"
View gist:8073818
require "bundler/capistrano"
server "", :web, :app, :db, primary: true
set :application, "appname"
set :user, "deployer"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :scm, "git"
You can’t perform that action at this time.