Moved to: https://github.com/x-way/zsh-syntax-highlighting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
word | count | |
---|---|---|
Error | 18170 | |
Invalid | 9409 | |
Failed | 8514 | |
No | 8131 | |
Unable | 4962 | |
Not | 4935 | |
Could | 4422 | |
Cannot | 3888 | |
Unknown | 3409 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Written by Andreas Jaggi <[email protected]> in December 2015 | |
# | |
use strict; | |
use warnings; | |
use nflog; | |
use NetPacket::IP qw(IP_PROTO_UDP); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Written by Andreas Jaggi <[email protected]> in December 2015 | |
# | |
from socket import AF_INET, AF_INET6, inet_ntop | |
import nflog | |
from dpkt import ip, dns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$myip = null; | |
$hostname = null; | |
$type = null; | |
$user = null; | |
$password = null; | |
$myzone = 'example.com'; | |
$myserver = 'nameserver.example.com'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TGT=$1 | |
ROOT=${TGT##*.} | |
ROOT=${ROOT%.} | |
ROOT="${ROOT}." | |
RS=$(dig +short -t ns $ROOT|sed 1q) | |
dig +noall +additional +norec $TGT @$RS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -i -e "s/[0-9]\{10\}/$(date +%10s)/" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /etc/havp | |
OUTFILE=/etc/havp/blacklist | |
ADSERVERLIST=/etc/havp/adserverlist | |
PHISHTANK=/etc/havp/phishtank | |
MYBLACKLIST=/etc/havp/myblacklist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# | |
# punchcard.awk - ASCII 'punchcard' graph for git log | |
# | |
# Written in September 2011 by Andreas Jaggi <[email protected]> | |
# | |
# usage:$ git log | punchcard.awk | |
# +-------------------------------------------------------------------------------------------------+ | |
# Tue | . . o . . o O O 0 O | | |
# Wed | . . . . 0 O o | |