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
uci set network.wifi_open=interface | |
uci set network.wifi_open.type=bridge | |
uci set network.wifi_open.proto=static | |
uci set network.wifi_open.ipaddr=10.0.0.1 | |
uci set network.wifi_open.netmask=255.255.255.0 | |
uci add wireless wifi-iface | |
uci set wireless.@wifi-iface[-1].device=radio0 | |
uci set wireless.@wifi-iface[-1].mode=ap | |
uci set wireless.@wifi-iface[-1].ssid=Open-WiFi |
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 -w | |
# copyright 2005-2008 Tomasz Pala <[email protected]> | |
# Contributions by Jan-willem De Bleser, 2013 | |
# license: GPL | |
# usage: | |
# watch -d -n1 'tc -s c ls dev imq1 | tccs -f 10 2>/dev/null' | |
# tccs.rc file format: |
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
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
/** | |
* "Safer" String.toLowerCase() | |
*/ | |
function lowerCase(str){ | |
return str.toLowerCase(); |
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
max="$1" | |
date | |
echo "url: $2 | |
rate: $max calls / second" | |
START=$(date +%s); | |
get () { | |
nice curl -s -insecure -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log | |
} |