This file contains hidden or 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
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout somewhen, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
This file contains hidden or 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
| # disabling raspbmc firewall the dirty way: | |
| # from http://raspberrypi.stackexchange.com/questions/5334/how-can-i-disable-raspbmcs-firewall-via-ssh | |
| # in /etc/network/if-up.d/secure-rmc replace: | |
| iptables -A INPUT -s $NETMASK -i $IFACE -j ACCEPT | |
| iptables -A INPUT -i $IFACE -j DROP | |
| # with | |
| iptables -A INPUT -i $IFACE -j ACCEPT | |
| # fixing a broken sd card |
This file contains hidden or 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 | |
| speed=4000 | |
| if [ $# -gt 0 ]; then | |
| speed=$1 | |
| fi | |
| printf "setting speed to $speed\n" | |
| uci set wshaper.settings.downlink=$speed | |
| uci commit | |
| /etc/init.d/wshaper restart |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
| </head> | |
| <body> | |
| <img id="viewer" src="" width="800px"/> | |
| <div id="info"> </div> | |
| <script> | |
| $(function() { |
This file contains hidden or 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 multiprocessing import Process, Queue | |
| from Queue import Empty | |
| MAX_MSG = 200000 | |
| NUM_PROC = 10 | |
| def startProducer(queue, out, max): | |
| import time, random | |
| time.sleep(2) | |
| for i in range(max): |
This file contains hidden or 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 node | |
| // to run install: nodejs and the module "websocket" | |
| // npm install websocket | |
| // then execute | |
| // node tester.js _NUMBER_OF_CLIENTS_ | |
| var WebSocketClient = require('websocket').client; | |
| var HOST = 'ws://localhost:8449/ws/endpoint'; | |
| var PING_TIME_MS = 20000; |
NewerOlder