I hereby claim:
- I am phone on github.
- I am elliotpennington (https://keybase.io/elliotpennington) on keybase.
- I have a public key ASBiB9VBTS1NONFzOPOZ3dR73LxsV0hGc0Ol6zBvjDxORAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
netcat -lk 4747 | { | |
while read addr; | |
do | |
echo -e "[$addr]\n address $addr\n" >> /etc/munin/munin.conf; | |
done | |
} |
#!/bin/bash | |
usage() { | |
cat <<-'END' >&2 | |
usage: install-munin-node.sh HOST | |
sets FQDN on HOST to that hosts $HOSTNAME, | |
installs munin-node, sets the configuration to allow | |
connections from all 4tcp hosts, registers itself | |
with the master at munin-master | |
END |
int main(int argc, char *argv[]) { | |
httpd_registry_init(); | |
httpd_register("/", "GET", handle_e404); | |
httpd_register("/ping", "GET", handle_ping); | |
httpd_register("/recommend", "GET", handle_recommend); | |
httpd_err_register(HTTP_BAD_REQUEST, handle_e400); | |
httpd_err_register(HTTP_NOT_FOUND, handle_e404); | |
httpd_err_register(HTTP_INTERNAL_SERVER_ERROR, handle_e500); |
#!/bin/sh | |
wifistats() { | |
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I |\ | |
awk 'BEGIN {top = ""; row = ""} {top = top $1 "\t"; row = row $2 "\t"} END { print top "\n" row}' |\ | |
column -t; | |
} | |
case $# in | |
0) | |
;; |