Skip to content

Instantly share code, notes, and snippets.

View gabrtv's full-sized avatar

Gabe Monroy gabrtv

View GitHub Profile
ruby_block "stop-services-in-parallel" do
block do
threads = []
targets.each { |s, f|
threads << Thread.new { |t|
s.run_action(:stop)
f.run_action(:delete)
}
}
threads.each { |t| t.join }
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
$ kubectl help
kubectl controls the Kubernetes cluster manager.
Find more information at https://github.com/kubernetes/kubernetes.
Basic Commands (Beginner):
create Create a resource by filename or stdin
expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service
run Run a particular image on the cluster
set Set specific features on objects