Skip to content

Instantly share code, notes, and snippets.

View bobeckert's full-sized avatar
🚂

Bob Eckert bobeckert

🚂
View GitHub Profile
@bobeckert
bobeckert / config
Created February 18, 2014 17:40
ssh config options
Host *
ServerAliveInterval 300
# /etc/init/workers.conf - manage a set of Sidekiqs
# This example config should work with Ubuntu 12.04+. It
# allows you to manage multiple Sidekiq instances with
# Upstart, Ubuntu's native service management tool.
#
# See sidekiq.conf for how to manage a single Sidekiq instance.
#
# Use "stop workers" to stop all Sidekiq instances.
# Use "start workers" to start all instances.
# /etc/init/sidekiq.conf - Sidekiq config
# This example config should work with Ubuntu 12.04+. It
# allows you to manage multiple Sidekiq instances with
# Upstart, Ubuntu's native service management tool.
#
# See workers.conf for how to manage all Sidekiq instances at once.
#
# Save this config as /etc/init/sidekiq.conf then mange sidekiq with:
# sudo start sidekiq index=0
deploy@sk-backoffice-production-worker-ip-10-8-22-68:~$ which ruby
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby
deploy@sk-backoffice-production-worker-ip-10-8-22-68:~$ env
XDG_SESSION_ID=40
rvm_bin_path=/usr/local/rvm/bin
GEM_HOME=/usr/local/rvm/gems/ruby-2.1.2
TERM=xterm-256color
SHELL=/bin/bash
IRBRC=/usr/local/rvm/rubies/ruby-2.1.2/.irbrc
SSH_CLIENT=10.8.2.191 65026 22
Delivered-To: bob@shopkeep.com
Received: by 10.220.18.131 with SMTP id w3csp763167vca;
Thu, 25 Sep 2014 08:58:07 -0700 (PDT)
X-Received: by 10.42.43.7 with SMTP id v7mr3670747ice.88.1411660687228;
Thu, 25 Sep 2014 08:58:07 -0700 (PDT)
Return-Path: <bounce+2455e9.07a9-bob=shopkeep.com@mail.intercom.io>
Received: from m69-142.mailgun.net (m69-142.mailgun.net. [166.78.69.142])
by mx.google.com with ESMTPS id j3si3729854igx.12.2014.09.25.08.58.06
for <bob@shopkeep.com>
### Keybase proof
I hereby claim:
* I am bobeckert on github.
* I am bobeckert (https://keybase.io/bobeckert) on keybase.
* I have a public key whose fingerprint is A7D3 C50D 99F1 AC1E 9101 664B 7A1D 7F12 AA3B 5C65
To claim this, I am signing this object:
File.dirname(__FILE__)
user = ENV['OPSCODE_USER'] || ENV['USER']
node_name user
client_key "#{ENV['HOME']}/.chef/#{user}.pem"
validation_client_name "#{ENV['ORGNAME']}-validator"
validation_key "#{ENV['HOME']}/.chef/#{ENV['ORGNAME']}-validator.pem"
chef_server_url "https://api.opscode.com/organizations/#{ENV['ORGNAME']}"
syntax_check_cache_path "#{ENV['HOME']}/.chef/syntax_check_cache"
cookbook_path ["#{current_dir}/../cookbooks"]
/* body: #f7f7f7 #676767 #1682B9
c1: #fff #858585 #FFFFFF
c2: #f7f7f7 #DDDDDD #66bc29
*/
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
form { margin: 0; }
label { cursor: pointer; }
button, input { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; line-height: normal; *overflow: visible; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
@bobeckert
bobeckert / gist:2a1fb4900c63c6d5faf9
Created February 26, 2015 16:48
Before and after restart
ubuntu@sk-backoffice-production-webserver-ip-10-8-13-208:~$ ls -all /srv/backoffice/shared/backoffice.sock
srwxrwxrwx 1 deploy deploy 0 Feb 25 20:41 /srv/backoffice/shared/backoffice.sock
ubuntu@sk-backoffice-production-webserver-ip-10-8-13-208:~$ ls -all /srv/backoffice/shared/backoffice.sock
srwxrwxrwx 1 deploy deploy 0 Feb 26 16:42 /srv/backoffice/shared/backoffice.sock
ubuntu@sk-backoffice-production-webserver-ip-10-8-13-208:~$
ubuntu@sk-backoffice-production-webserver-ip-10-8-13-208:~$ ps auxfww |grep puma
ubuntu 5036 0.0 0.0 10464 924 pts/2 S+ 16:41 0:00 \_ grep --color=auto puma
deploy 25862 1.6 10.3 1185508 399032 ? Sl 16:21 0:19 puma: cluster worker 2: 25837 [20150226110954]
ubuntu@sk-backoffice-production-webserver-ip-10-8-13-208:~$ date