Skip to content

Instantly share code, notes, and snippets.

$ curl -v -I https://dashboard.dotcloud.com
* About to connect() to dashboard.dotcloud.com port 443 (#0)
* Trying 184.73.159.228... connected
* Connected to dashboard.dotcloud.com (184.73.159.228) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
@metalivedev
metalivedev / gist:ce45d4278410807a91e3
Last active August 29, 2015 14:01 — forked from samalba/gist:5400413
Clean up hung kworkers, usually caused by some container
echo workqueue:workqueue_queue_work > /sys/kernel/debug/tracing/set_event
cat /sys/kernel/debug/tracing/trace_pipe > out.txt
# (Leave it running a couple of seconds, then Ctrl+C; this is just to flush the buffer)
# Do it again to get fresh info
cat /sys/kernel/debug/tracing/trace_pipe > out.txt
(Leave it running a couple of seconds, then Ctrl+C; this is to recover the data)
cut -d- -f2 out.txt | awk '{print $1}' | sort | uniq -c | sort -n
# Take a look at who's got the most instructions queued (first column) and kill them and their children
# Sam dumped something out of the cgroup to get the process list and ran xargs kill -9
@metalivedev
metalivedev / rmvol.py
Last active August 29, 2015 14:26
Tool to remove unused volumes
#!/usr/bin/env python
"""
Check all existing Docker containers for their mapped paths, and then purge any
zombie directories in docker's volumes directory which don't correspond to an
existing container.
FROM https://github.com/docker/docker/issues/6354#issuecomment-114688663
Modified by metalivedev to work with Docker 1.6.x
"""
import logging
import os
@metalivedev
metalivedev / keybase.md
Last active November 12, 2015 00:43
Proof of my identity. Here I am metalivedev. On keybase.io I am rufus.

Keybase proof

I hereby claim:

  • I am metalivedev on github.
  • I am rufus (https://keybase.io/rufus) on keybase.
  • I have a public key whose fingerprint is E398 6BAC 410D 21B7 CC46 9155 66B0 2926 00B1 B9FE

To claim this, I am signing this object: