Skip to content

Instantly share code, notes, and snippets.

View gabrtv's full-sized avatar

Gabe Monroy gabrtv

View GitHub Profile
core@deis-1 ~ $ nse 3254
groups: cannot find name for group ID 11
root@b4ffc49bf4e0:/# tcpdump -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
20:03:54.109016 IP 10.1.42.1.33654 > 10.1.0.9.5000: Flags [S], seq 423731768, win 29200, options [mss 1460,sackOK,TS val 14774827 ecr 0,nop,wscale 7], length 0
20:03:55.118781 IP 10.1.42.1.33654 > 10.1.0.9.5000: Flags [S], seq 423731768, win 29200, options [mss 1460,sackOK,TS val 14775836 ecr 0,nop,wscale 7], length 0
20:03:57.122025 IP 10.1.42.1.33654 > 10.1.0.9.5000: Flags [S], seq 423731768, win 29200, options [mss 1460,sackOK,TS val 14777840 ecr 0,nop,wscale 7], length 0
20:03:59.122747 ARP, Request who-has 10.1.0.9 tell 10.1.42.1, length 28
20:04:00.124041 ARP, Request who-has 10.1.0.9 tell 10.1.42.1, length 28

Keybase proof

I hereby claim:

  • I am gabrtv on github.
  • I am gabrtv (https://keybase.io/gabrtv) on keybase.
  • I have a public key whose fingerprint is 11A8 FA16 E5F0 51B4 FC0A 066A A921 0D38 8728 A5A4

To claim this, I am signing this object:

@gabrtv
gabrtv / gist:26832b547819f917b118
Created January 16, 2015 19:25
Enable 512MB swap on CoreOS
fallocate -l 512m /512MiB.swap
chmod 600 /512MiB.swap
mkswap /512MiB.swap
losetup -f /512MiB.swap
/sbin/swapon /dev/loop0
@gabrtv
gabrtv / gist:cbe16bb9afded9f70129
Last active August 29, 2015 14:27
Ceph on Kubernetes
$ ceph -s
cluster d0b1c3ae-6e81-4501-b8f5-0c2c5eb020bf
health HEALTH_OK
monmap e3: 3 mons at {ceph-mon-4nee1=10.244.93.2:6789/0,ceph-mon-e819q=10.244.95.2:6789/0,ceph-mon-y7av3=10.244.97.2:6789/0}
election epoch 6, quorum 0,1,2 ceph-mon-4nee1,ceph-mon-e819q,ceph-mon-y7av3
mdsmap e6: 1/1/1 up {0=ceph-mds-6aw2n=up:active}, 2 up:standby
osdmap e13: 3 osds: 3 up, 3 in
pgmap v72: 192 pgs, 3 pools, 1962 bytes data, 20 objects
17330 MB used, 27974 MB / 47831 MB avail
192 active+clean
@gabrtv
gabrtv / CookieLibAgent
Created March 3, 2011 06:03
First pass at CookieLibAgent, extending t.w.c.Agent in branch #3420 (agent-persistent-connections)
class CookieLibAgent(Agent):
def __init__(self, cookieJar, *args, **kwargs):
Agent.__init__(self, reactor, *args, **kwargs)
self.jar = cookieJar
def request(self, method, uri, headers=None, bodyProducer=None):
"""
Issue a new request.
@gabrtv
gabrtv / gist:1299982
Created October 19, 2011 23:24
The GPU Instance Defense
commit f3ba9767192780a0dd5f575f52abae8661a2143d
Author: gabrtv <gabriel@opdemand.com>
Date: Wed Oct 19 17:01:28 2011 -0600
switch to sha-512 password hashing (aka the GPU instance defense)
diff --git a/c2core/crypto.py b/c2core/crypto.py
index 98c8711..fc9ad56 100644
--- a/c2core/crypto.py
+++ b/c2core/crypto.py
@gabrtv
gabrtv / gist:1342227
Created November 5, 2011 23:59
Node.js Upgrade Script
#!/bin/sh -e
# upgrade packages
sudo apt-get update && sudo apt-get dist-upgrade -y --force-yes
# upgrade node application
cat > /tmp/upgrade <<EOF
#!/bin/sh
cd app
git pull --rebase
@gabrtv
gabrtv / gist:1342246
Created November 6, 2011 00:22
Node.js Build Script
#!/bin/sh -e
# bootstrap application repository
cat > /tmp/bootstrap-app <<EOF
#!/bin/sh -e
git clone https://github.com/opdemand/c2-nodejs-helloworld.git app
cd app
npm install
EOF
chmod +x /tmp/bootstrap-app
@gabrtv
gabrtv / gist:1342256
Created November 6, 2011 00:36
Gabrtv's Node.js Build Script
#!/bin/sh -e
# bootstrap application repository
cat > /tmp/bootstrap-app <<EOF
#!/bin/sh -e
git clone https://github.com/gabrtv/nodejs-sandbox.git app
cd app
npm install
EOF
chmod +x /tmp/bootstrap-app
@gabrtv
gabrtv / gist:6107881
Last active December 20, 2015 09:29
Deis 0.0.4 Sneak Peek
$ deis register https://dev.deis.io/
username: gabrtv
password:
email: gabriel@opdemand.com
Registered gabrtv
Logged in as gabrtv
Found the following SSH public keys:
1) id_rsa.pub
2) deis_test.pub