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/env python3 | |
# | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <[email protected]> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return. | |
from ctypes import * | |
from ctypes.util import find_library | |
from sys import argv, stderr, exit |
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
- ftp.am.debian.org | |
- ftp.au.debian.org | |
- ftp.at.debian.org | |
- ftp.by.debian.org | |
- ftp.be.debian.org | |
- ftp.br.debian.org | |
- ftp.bg.debian.org | |
- ftp.ca.debian.org | |
- ftp.cl.debian.org | |
- ftp2.cn.debian.org |
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/env bash | |
NRZONES=$(rndc status | awk -F: '/number of zones/ { gsub(/ /, "", $2); print $2 }') | |
curl -s -XPOST 'http://10.0.1.1:8086/write?db=dns_stats' --data-binary "nrzones,type=master value=$NRZONES" |
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/env python | |
import requests | |
import sys | |
from timeit import default_timer as timer | |
def get_page(url): | |
r = requests.get(url) | |
return r.headers.get('X-Backend-Server', 'No backend returned') |
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
FROM debian:stable | |
RUN apt-get update && apt-get install -y git-core devscripts build-essential lintian python-setuptools python-all python3-all python3-setuptools python-ipaddr python-nose python-psutil python3-nose python3-psutil | |
COPY build.sh /root | |
RUN chmod +x /root/build.sh |
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/env perl | |
use strict; | |
use warnings; | |
use DBI; | |
use v5.10; | |
use Data::Dumper; | |
my $pagenum = 1; |
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
4564 123456 | |
4315 password | |
3543 admin | |
2964 1234 | |
2620 12345 | |
2090 ubnt | |
2038 root | |
1802 111111 | |
1392 000000 | |
1346 support |
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/env perl | |
use strict; | |
use warnings; | |
# https://fossies.org/dox/iproute2-4.7.0/if__vlan_8h_source.html | |
# struct vlan_ioctl_args { | |
# int cmd; /* Should be one of the vlan_ioctl_cmds enum above. */ |
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/env bash | |
if [ -e /var/run/reboot-required ]; then | |
echo "error: need reboot (kernel upgrade)" | |
exit 2 | |
fi | |
checkrestart &>/dev/null || { echo 'need checkrestart (apt-get install debian-goodies) to get the actual service list' ; exit 1; } |
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
mysql> select count(*) as c ,hostname from comment group by hostname having c > 20; | |
+------+----------------+ | |
| c | hostname | | |
+------+----------------+ | |
| 169 | 107.150.40.162 | | |
| 354 | 107.150.40.163 | | |
| 2199 | 142.54.172.154 | | |
| 722 | 142.54.172.155 | | |
| 26 | 142.54.172.156 | | |
| 385 | 142.54.172.157 | |
NewerOlder