Skip to content

Instantly share code, notes, and snippets.

View bobeckert's full-sized avatar
🚂

Bob Eckert bobeckert

🚂
View GitHub Profile
@bobeckert
bobeckert / mdopen.fish
Last active August 12, 2016 16:52
fish function to open a markdown file as a new chrome tab
function mdopen
set tempfile "/tmp/temp_"(date +%s)".html"
pandoc $argv > $tempfile
open -a 'Google Chrome' $tempfile
sleep 2s
rm $tempfile
end
@bobeckert
bobeckert / 0_reuse_code.js
Created August 1, 2016 21:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@bobeckert
bobeckert / gist:b454c24bf0b2f0f4ef00f83e40cff5e8
Created July 20, 2016 17:05
Hey Baby... Wanna clone all the repos?
curl -s https://api.github.com/orgs/twitter/repos\?per_page\=200 | perl -ne 'print "$1\n" if (/"ssh_url": "([^"]+)/)' | xargs -n 1 git clone
─ bob@kurapika [~] [ruby-2.2.0]
└─ $ curl -iv https://looker.production.posrip.com
* Rebuilt URL to: https://looker.production.posrip.com/
* Hostname was NOT found in DNS cache
* Trying 54.88.117.162...
* Connected to looker.production.posrip.com (54.88.117.162) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.posrip.com
* Server certificate: Trustwave Organization Validation SHA256 CA, Level 1
* Server certificate: SecureTrust CA
root@sk-backoffice-production-webserver-ip-10-8-13-208:~# lsof -p 8299 |grep sock
ruby 8299 deploy mem REG 202,1 927642 661948 /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/x86_64-linux/socket.so
ruby 8299 deploy 10u sock 0,7 0t0 134080826 can't identify protocol
ruby 8299 deploy 14u unix 0xffff88003712f380 0t0 81730661 /srv/backoffice/shared/backoffice.sock
root@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
@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:~$
/* 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; }
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"]
### 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: