Skip to content

Instantly share code, notes, and snippets.

Andreas Neukoetter AndreasOM

Block or report user

Report or block AndreasOM

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

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:

View iptables-with-logging.sh
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
View advent-day-1.sh
#!/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
View tmx_tilesort.rb
$:.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'
View keybase.md

Keybase proof

I hereby claim:

  • I am andreasom on github.
  • I am anti666 (https://keybase.io/anti666) on keybase.
  • I have a public key whose fingerprint is 2690 A66F D5AF 9196 514D 47D8 5281 3FDD B229 0C6F

To claim this, I am signing this object:

View pngencode.cpp
// 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
You can’t perform that action at this time.