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
root@app-vbox-nj1-001:/var/lib/tomcat7/webapps$ service tomcat7 start
* Starting Tomcat servlet engine tomcat7 Oct 15, 2013 4:25:09 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 15, 2013 4:25:09 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1245 ms
Oct 15, 2013 4:25:09 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 15, 2013 4:25:09 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Oct 15, 2013 4:25:09 PM org.apache.catalina.startup.HostConfig deployDescriptor
@bobeckert
bobeckert / gist:6996525
Created October 15, 2013 18:40
Java Stack trace on deploying analyzer
root@analyzer-vbox-nj1-001:/var/lib/tomcat7/webapps$ Oct 15, 2013 2:37:56 PM org.apache.catalina.startup.HostConfig deployWARs
SEVERE: Error waiting for multi-thread deployment of WAR files to complete
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:751)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1453)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:295)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
stats realm HAProxyPortalStats
stats uri /stats
stats auth mimedia:stats
w1-ma1#show int gi5/1
GigabitEthernet5/1 is up, line protocol is up (connected)
Hardware is C6k 1000Mb 802.3, address is 000f.f7be.dea8 (bia 000f.f7be.dea8)
Description: "SDS1-MA1"
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, media type is LH
input flow-control is off, output flow-control is on
@bobeckert
bobeckert / gist:6611997
Created September 18, 2013 16:48
needs more cowbell^Wlogging
root@analyzer-aws-use-001:/var/log/mimedia$ cat indexer.log.2013-09-17-AM
2013-09-17 00:07:07,836 - INFO - com.jolbox.bonecp.BoneCP [Thread-1] - Shutting down connection pool...
2013-09-17 00:07:07,899 - INFO - com.jolbox.bonecp.BoneCP [Thread-1] - Connection pool has been shutdown.
root@analyzer-aws-use-001:/var/log/mimedia$
─ 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:~#