Skip to content

Instantly share code, notes, and snippets.

Deniz Adrian zined

Block or report user

Report or block zined

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 zined on github.
  • I am zined (https://keybase.io/zined) on keybase.
  • I have a public key whose fingerprint is 54F3 3D56 ED68 B567 68CE C45F 0452 F202 4D6B E444

To claim this, I am signing this object:

View gist:dd479c93c4492fe5ea07
[hekad]
base_dir = "/tmp"
[TestTcpInput]
type = "TcpInput"
address = ":12345"
parser_type = "token"
delimiter = "\n"
decoder = "TestDecoder"
View gist:4baed1ca60bc5375f01a
[WebPoolJupiterElbLogsInput]
type = "LogstreamerInput"
log_directory = "/logs/jupiter"
file_match = '(?P<Year>\d+)/(?P<Month>\d+)/(?P<Day>\d+)[^_]+_[^_]+_[^_]+_[^_]+_\d+T(?P<Hour>\d{2})(?P<Minute>\d{2})Z_(?P<ElbIP>[^_]+)_[^\.]+\.log'
priority = ["Year", "Month", "Day", "Hour", "Minute"]
decoder = "ElbLogDecoder"
[ElbLogDecoder]
type = "PayloadRegexDecoder"
match_regex = '^(?P<TheWholeFuckingLine>.*)$'
View gist:3238689420ed804171b8
~/s/h/b/h/s/g/m/h/c/hekad git:dev ❯❯❯ pwd && strace -f go build 2>&1 | grep 'liblua\.'
/home/zined/src/heka/build/heka/src/github.com/mozilla-services/heka/cmd/hekad
[pid 9298] open("/opt/local/lib/liblua.so", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 9298] open("/opt/local/lib/liblua.a", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 9298] open("/usr/local/lib/liblua.so", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 9298] open("/usr/local/lib/liblua.a", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 9298] open("/usr/lib/liblua.so", O_RDONLY) = 17
[pid 9298] open("/usr/lib/liblua.so", O_RDONLY) = 18
~/s/h/b/h/s/g/m/h/c/hekad git:dev ❯❯❯
View yummy
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
@zined
zined / gist:8162295
Last active Jan 1, 2016
from 2011: "PoC: Call of PROTECTED functions from unsecure LUA execution path"
View gist:8162295
-----------------------------------------------------------------------------------------
-- small proof of concept which hooks into MAIL_SUCCESS, and sends the total amount of
-- money on the char to some other char.
--
-- with a little social engineering in some big guilds and some "not so aggressive" style
-- of "how much money do we want to send" algorithm :) like "always send 1% of the
-- char's total money, with a cap of 100g or something like that" this could be heavily
-- abused...
--
-- functions used:
View gist:8062654
root@cashcow ~/src/bitcrack # jruby -S gem install bitcoin
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
from DefaultResolver.java:111:in `makeTime'
from DefaultResolver.java:277:in `create'
from DefaultResolver.java:317:in `handleScalar'
from DefaultResolver.java:435:in `orgHandler'
from DefaultResolver.java:455:in `node_import'
from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER$node_import.gen:65535:in `call'
@zined
zined / gist:7155664
Last active Dec 26, 2015
puppetmaster hiera lookup debug log
View gist:7155664
Oct 25 15:52:59 puppet01 puppet-master[11205]: Automatically imported nagios::cloudwatch::params from nagios/cloudwatch/params into production
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Hiera YAML backend starting
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Looking up nagios_cloudwatchplugin_aws_secret_access_key in YAML backend
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Looking for data source common
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Cannot find datafile /var/lib/hiera/common.yaml, skipping
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Looking up nagios_cloudwatchplugin_aws_access_key_id in YAML backend
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Looking for data source common
Oct 25 15:52:59 puppet01 puppet-master[11205]: hiera(): Cannot find datafile /var/lib/hiera/common.yaml, skipping
@zined
zined / gist:7155543
Created Oct 25, 2013
puppet / hiera env
View gist:7155543
# dpkg -l | grep puppet
ii hiera 1.2.1-1puppetlabs1 A simple pluggable Hierarchical Database.
ii hiera-puppet 1.0.0-1puppetlabs1 A simple pluggable Hierarchical Database.
ii puppet 2.7.19-1puppetlabs2.1 Centralized configuration management - agent startup and compatibility scripts
ii puppet-common 2.7.19-1puppetlabs2.1 Centralized configuration management
ii puppetdb-terminus 0.9.0-1puppetlabs1 Connect Puppet to PuppetDB by setting up a terminus for PuppetDB.
ii puppetmaster-common 2.7.19-1puppetlabs2.1 Puppet master common scripts
ii puppetmaster-passenger 2.7.19-1puppetlabs2.1 Centralised configuration management - master setup to run under mod passenger
View gist:6807740
[zined@wurstbrot testing]$ mkdir -p 0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16
[zined@wurstbrot testing]$ touch 0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/foo
[zined@wurstbrot testing]$ strace php -r 'file_exists("./0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/foo");' 2>&1 | grep lstat
lstat("/home/zined/go/bin/php", 0x7fff987cc6c0) = -1 ENOENT (No such file or directory)
lstat("/home/zined/go/bin/php", 0x7fff987cc6c0) = -1 ENOENT (No such file or directory)
lstat("/usr/local/sbin/php", 0x7fff987cc6c0) = -1 ENOENT (No such file or directory)
lstat("/usr/local/bin/php", 0x7fff987cc6c0) = -1 ENOENT (No such file or directory)
lstat("/usr/bin/php", {st_mode=S_IFREG|0755, st_size=8419512, ...}) = 0
You can’t perform that action at this time.