Skip to content

Instantly share code, notes, and snippets.

Andreas Jaggi x-way

Block or report user

Report or block x-way

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
@x-way
x-way / punchcard.awk
Last active Jul 7, 2017
ASCII 'punchcard' graph for git commits
View punchcard.awk
#!/usr/bin/awk -f
#
# punchcard.awk - ASCII 'punchcard' graph for git log
#
# Written in September 2011 by Andreas Jaggi <andreas.jaggi@waterwave.ch>
#
# usage:$ git log | punchcard.awk
# +-------------------------------------------------------------------------------------------------+
# Tue | . . o . . o O O 0 O |
# Wed | . . . . 0 O o |
@x-way
x-way / makeblacklist.sh
Created Feb 13, 2013
Create blacklist for HAVP from phishtank and adserver blacklists
View makeblacklist.sh
#!/bin/sh
cd /etc/havp
OUTFILE=/etc/havp/blacklist
ADSERVERLIST=/etc/havp/adserverlist
PHISHTANK=/etc/havp/phishtank
MYBLACKLIST=/etc/havp/myblacklist
@x-way
x-way / index.php
Last active Dec 17, 2015
dyndns server
View index.php
<?php
$myip = null;
$hostname = null;
$type = null;
$user = null;
$password = null;
$myzone = 'example.com';
$myserver = 'nameserver.example.com';
@x-way
x-way / glue_records.sh
Created May 28, 2013
Get the glue records for a domain
View glue_records.sh
#!/bin/bash
TGT=$1
ROOT=${TGT##*.}
ROOT=${ROOT%.}
ROOT="${ROOT}."
RS=$(dig +short -t ns $ROOT|sed 1q)
dig +noall +additional +norec $TGT @$RS
@x-way
x-way / update_serials.sh
Created May 26, 2013
Update the serial number in BIND zone files with the current unix timestamp
View update_serials.sh
#!/bin/bash
sed -i -e "s/[0-9]\{10\}/$(date +%10s)/" "$@"
View nflog_sniffer.pl
#!/usr/bin/perl
#
# Written by Andreas Jaggi <andreas.jaggi@waterwave.ch> in December 2015
#
use strict;
use warnings;
use nflog;
use NetPacket::IP qw(IP_PROTO_UDP);
View nflog_sniffer.py
#!/usr/bin/python
#
# Written by Andreas Jaggi <andreas.jaggi@waterwave.ch> in December 2015
#
from socket import AF_INET, AF_INET6, inet_ntop
import nflog
from dpkt import ip, dns
You can’t perform that action at this time.