Skip to content

Instantly share code, notes, and snippets.

Verifying myself: My Bitcoin username is +gak. https://onename.io/gak
@gak
gak / fig.yml
Last active August 29, 2015 14:05
bitcoin:
build: bitcoin
command: /run.sh
volumes:
- "/z/services/data/bitcoin:/.bitcoin"
ports:
- "8333:8333"
nginx:
build: docker-nginx
--- dnsmasq.old 2014-09-03 04:39:53.119771520 +0000
+++ dnsmasq 2014-09-03 05:21:11.718863850 +0000
@@ -143,9 +143,15 @@
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
- start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile /var/run/dnsmasq/$NAME.pid --name $NAME
- RETVAL="$?"
- [ "$RETVAL" = 2 ] && return 2
+
@gak
gak / gist:835f6684383b31a0338b
Created November 9, 2014 04:20
Accidentally left Python's SimpleHTTPServer running for a day...
108.216.50.68 - - [08/Nov/2014 10:17:28] code 400, message Bad request syntax ('P\x98\xc2')
108.216.50.68 - - [08/Nov/2014 10:17:28] "PÂ" 400 -
131.100.45.37 - - [08/Nov/2014 10:42:44] "HEAD / HTTP/1.0" 200 -
124.176.60.84 - - [08/Nov/2014 12:18:29] code 400, message Bad request syntax ('p~\xbfE\x17\x9f\x03\x16\xf8\xbf\xd5Bm\xce\x81.s7&\x89\xa9\xff\xa7\xf2')
124.176.60.84 - - [08/Nov/2014 12:18:29] "p~¿Eø¿ÕBm΁.s7&©ÿ§ò" 400 -
24.161.2.11 - - [08/Nov/2014 14:12:35] code 404, message File not found
24.161.2.11 - - [08/Nov/2014 14:12:35] "GET /tmUnblock.cgi HTTP/1.1" 404 -
175.182.128.92 - - [08/Nov/2014 14:18:28] code 400, message Bad request version ('\x86P\xeeQ@\x95\xe9\x94\xd2\x02\xad\x95\xb1\xd9^\xb7\xf8\xbc\x91\x0e1\\\xd3]\x87\xa4\x1e\xb5\xea\xf36\xc2\xfe?\x05\xc1\xf4\xa8R\xac')
175.182.128.92 - - [08/Nov/2014 14:18:28] "¢ÏøT[2?ާ«%] °¸£°ù
PîQ@éÒ­±Ù^·ø¼1\Ó]¤µêó6Âþ?Áô¨R¬" 400 -
@gak
gak / keybase.md
Created January 5, 2015 22:26
Keybase proof

Keybase proof

I hereby claim:

  • I am gak on github.
  • I am gak (https://keybase.io/gak) on keybase.
  • I have a public key whose fingerprint is 0197 8227 F2D2 3612 8428 63CB 9B7E 7646 DCC1 7878

To claim this, I am signing this object:

We couldn’t find that file to show.
@gak
gak / gist:657276
Created October 31, 2010 22:48
homebrew cmake 2.8.2 compilation failure
brew install -vd cmake
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -w -pipe
CXXFLAGS: -O3 -w -pipe
MAKEFLAGS: -j4
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
File already downloaded and cached to /Users/gak/Library/Caches/Homebrew
@gak
gak / gist:657282
Created October 31, 2010 22:52
cmake-2.8.2/Bootstrap.cmk/cmake_bootstrap.log
Try: /usr/bin/cc
Line: /usr/bin/cc -O3 -w -pipe cmake_bootstrap_18264_test.c -o cmake_bootstrap_18264_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#!/bin/bash
cd `dirname $0`
tcpdump -n -i eth0 -G 86400 -w 'dumps/capture-%Y-%m-%dT%H:%M:%S.cap'