Skip to content

Instantly share code, notes, and snippets.

🍕

Bob Eckert bobeckert

🍕
Block or report user

Report or block bobeckert

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
@bobeckert
bobeckert / mdopen.fish
Last active Aug 12, 2016
fish function to open a markdown file as a new chrome tab
View mdopen.fish
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 Aug 1, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Jul 20, 2016
Hey Baby... Wanna clone all the repos?
View gist:b454c24bf0b2f0f4ef00f83e40cff5e8
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
View gist:cfeffe20b10ed93f715a
─ 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
View gist:fb4502aa6912fae722ed
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:~#
View gist:0e0489fff4f2ba945d0a
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
View gist:2a1fb4900c63c6d5faf9
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:~$
View gist:8cfd232d72a986b7495e
/* 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; }
View gist:dd8a8a8439dd6e2146e4
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"]
View gist:f3a525363406edc3b3a2
### 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:
You can’t perform that action at this time.