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 | |
# | |
# run concurrent curls which download from URL to /dev/null. output total | |
# and average counts to results directory. | |
# | |
# url to request from | |
URL="$1" | |
# max concurrent curls to kick off | |
conn="$2" |
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
### router/350_exim4-config_system_group_aliases | |
# Allows to use local unix group as local part in /etc/aliases. Eg: | |
# root: adm | |
system_group_aliases: | |
debug_print = "R: system_group_aliases for $local_part@$domain" | |
driver = redirect | |
domains = +local_domains | |
data = ${sg{${lookup{$local_part}lsearch{/etc/group}}}{^x:[0-9]+:(.*)}{\$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
dir=/rom; a=$(find $dir -name \*.sh -exec cat '{}' \; | egrep -cv '^[[:space:]]*#'); b=$(find $dir -name \*.sh -exec cat '{}' \; | egrep -c '^[[:space:]]*#'); echo "$((a+b)) lines = ${a} sloc [$((a*100/(a+b)))%] + ${b} comments [$((b*100/(a+b)))%]" | |
# 7882 lines = 7576 sloc [96%] + 306 comments [3%] |
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 | |
# myvirt-facts - get networking facts from bridged libvirt guests | |
# https://gist.github.com/koniu/837a574e7af377e37d67 | |
# author <[email protected]> | |
# | |
# usage: | |
# myvirt-facts <domain> [ip|arp|hostname] | |
# | |
# for convenience symlink to: |
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 lua | |
require("iwinfo") | |
require("socket") | |
-- config | |
IFACES = { 'wlan0', 'wlan1' } | |
SCANS = 5 -- number of iterations for every scan method | |
PRESCANS = 0 -- number of unaccounted scans to fill up buffers | |
WAIT_METHOD = 0 -- seconds of sleep before each method |