I hereby claim:
- I am andreasom on github.
- I am andreasom (https://keybase.io/andreasom) on keybase.
- I have a public key ASC7I_pKX2-UDyxjGMcK3xgK0KLsLHKP3yybYZZecK_JEAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
iptables -F | |
iptables -N LOGALL | |
iptables -N INPUT_LOGGED | |
iptables -A LOGALL -m state --state NEW -j LOG --log-level 7 --log-prefix "IPTABLES NEW: " | |
## iptables -A LOGALL -j LOG --log-level 7 --log-prefix "IPTABLES ALL: " | |
iptables -A LOGALL -j INPUT_LOGGED | |
iptables -A INPUT -p tcp --dport 22 -j ACCEPT |
#!/bin/bash | |
# expects data as first parameter | |
# http://adventofcode.com/ | |
# day 1 (1 & 2) | |
# a bit slow, but I wanted to to this in bash ;) | |
up=0 |
$:.unshift File.dirname(__FILE__) | |
## small ruby :HACK: that sorts tiles by size (height, width) | |
## only tested with a few files | |
## only tested on single tileset projects | |
## only works with object layers | |
## feel free to enhance, break, hack | |
## used for @omFiiish https://twitter.com/omFiiish ;) | |
require 'rubygems' |
I hereby claim:
To claim this, I am signing this object:
// by alex evans, 2011. released into the public domain. | |
// based on a first ever reading of the png spec, it occurs to me that a minimal png encoder should be quite simple. | |
// this is a first stab - may be buggy! the only external dependency is zlib and some basic typedefs (u32, u8) | |
// | |
// more context at http://altdevblogaday.org/2011/04/06/a-smaller-jpg-encoder/. | |
// | |
// follow me on twitter @mmalex http://twitter.com/mmalex | |
// | |
// fixed a buffer overrun |