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
View blockstack
Verifying my Blockstack ID is secured with the address 1JQriFWjb94JT3PNWJTQmKjdC46c6MwCPy https://explorer.blockstack.org/address/1JQriFWjb94JT3PNWJTQmKjdC46c6MwCPy
View gist:e7de8de3cf3c1d76912ae755c156b2e5
0x173216D1fD08e76FD4f25710d2849091cE2fb026
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
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
end
desc "Symlink application.yml to the release path"
task :symlink do
run "ln -sf #{shared_path}/application.yml #{current_path}/config/application.yml"
end
View gist:8073818
require "bundler/capistrano"
server "192.111.111.11", :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.