Skip to content

Instantly share code, notes, and snippets.

View huned's full-sized avatar
💭
I may be slow to respond.

Huned Botee huned

💭
I may be slow to respond.
View GitHub Profile
set :rails_env, :production
set :unicorn_binary, "/usr/bin/unicorn"
set :unicorn_config, "#{current_path}/config/unicorn.rb"
set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid"
namespace :deploy do
task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D"
end
task :stop, :roles => :app, :except => { :no_release => true } do
=> meow!
/\___/\
__m_( . . )_m__
SELECT
j1.name AS parent_node_id ,
j2.name AS child_node_id ,
scenario_id ,
measure ,
value ,
revised_at ,
effective_at
FROM
edge_properties t1
@huned
huned / -
Created March 23, 2014 01:14
# <%= hostname %>
#
# Serves a Rails app via SSL. If nginx finds a rule to handle the request, use
# it; unhandled requests are proxied upstream to a puma server.
#
# Notes:
#
# * Assumes SSL. Non-SSL requests are redirected to their SSL equivalents.
# * Assumes SSL certificate and key at ...
# * Assumes that rails app is served via puma at ...
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Mailvelope v0.7.0
Comment: Email security by Mailvelope - http://www.mailvelope.com
xsFNBFKNNmEBEADoU75XSFpvTjOI9zCxHwmdUnaQCQlCqieGBPoMxioRvCk5
uH310GRvbXUC4S4QT/NYgd378g5HgBdHjWnHu5pjvl7IUyFvGxRtr1ti/VTC
1jA+5gpR2S539UGRWC140vWsJQmj7Ri0u7liB62YgPOXHpFYXnfkbnAsfYnj
lTElW9ZlvwC8OV9BB+W41TxM/+/o9lRQcoCRbvfvgTdl78h7j75X5BDThQZ1
qGPQio/mZHHD0m/DJePceG8lkpqEOcNiwffoJpvsJ5MwZ51W2tn7OzHDU9dr
zcKrvxwUwBglKQ32yAHJnYtSjSIzPZuK97SD9UVBep+Bzx5uPw3CxoSqO02p
@huned
huned / -
Last active December 28, 2015 09:09
cute
/\___/\
( . . )
[13:33:04] huned@sscarbbrmb52w7:upper-chord-server $ bundle install && bundle exec librarian-puppet install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.1.0)
Installing i18n (0.6.4)
Installing minitest (4.7.5)
Installing multi_json (1.7.7)
Installing atomic (1.1.10)
Installing thread_safe (0.1.1)
Installing tzinfo (0.3.37)
@huned
huned / god.log
Created September 16, 2013 22:33
[15:21:15] huned@omg:grove $ sudo god -c config/app.god -D
I [2013-09-16 15:21:25] INFO: Loading config/app.god
I [2013-09-16 15:21:25] INFO: Syslog enabled.
I [2013-09-16 15:21:25] INFO: Using pid file directory: /var/run/god
I [2013-09-16 15:21:25] INFO: Started on drbunix:///tmp/god.17165.sock
I [2013-09-16 15:21:25] INFO: replyd-0 move 'unmonitored' to 'init'
I [2013-09-16 15:21:25] INFO: replyd-0 moved 'unmonitored' to 'init'
I [2013-09-16 15:21:25] INFO: replyd-0 [trigger] process is not running (ProcessRunning)
I [2013-09-16 15:21:25] INFO: replyd-0 move 'init' to 'start'
I [2013-09-16 15:21:25] INFO: replyd-0 start: /Volumes/data/work/seq/grove/config/god/../../script/replyd
@huned
huned / -
Created August 10, 2013 22:44
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 152 | 110 | 4 | 8 | 2 | 11 |
| Helpers | 56 | 50 | 0 | 7 | 0 | 5 |
| Models | 806 | 610 | 12 | 31 | 2 | 17 |
| Mailers | 0 | 0 | 0 | 0 | 0 | 0 |
| Javascripts | 36 | 0 | 0 | 0 | 0 | 0 |
| Libraries | 0 | 0 | 0 | 0 | 0 | 0 |
| Controller tests | 0 | 0 | 0 | 0 | 0 | 0 |
*** LOCAL GEMS ***
bigdecimal (1.2.0)
bundler (1.3.4)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
psych (2.0.0)
rake (0.9.6)