Skip to content

Instantly share code, notes, and snippets.

View mhui's full-sized avatar
💭
Why does this feature exist

Matthew Hui mhui

💭
Why does this feature exist
View GitHub Profile
@mhui
mhui / gist:8073818
Created December 21, 2013 19:31
deploy.rb
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"
@mhui
mhui / figaro-capistrano.rb
Last active January 28, 2019 08:31
Capistrano recipe for deploying figaro's application.yml
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
(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;
0x173216D1fD08e76FD4f25710d2849091cE2fb026
Verifying my Blockstack ID is secured with the address 1JQriFWjb94JT3PNWJTQmKjdC46c6MwCPy https://explorer.blockstack.org/address/1JQriFWjb94JT3PNWJTQmKjdC46c6MwCPy

Keybase proof

I hereby claim:

  • I am mhui on github.
  • I am zazpowered (https://keybase.io/zazpowered) on keybase.
  • I have a public key ASC53sarOc0iewJ5p4gKeDJEcBS31-T1F7AdV8K5k02uEgo

To claim this, I am signing this object: