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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Cheesy Parrot Demo</title> | |
<script type="text/javascript" src="parrot.js"></script> | |
</head> | |
<body> | |
<input id="main-input" type="text" maxlength="20" autocomplete="off" /input> | |
<div id="parrot">Type something and the parrot will repeat it!</div> | |
</body> |
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
var NaClWrapper = {}; | |
NaClWrapper.World = function() { | |
// Initialize… | |
}; | |
NaClWrapper.World.prototype.addCar = function( position, rotation ) { | |
// Set up some shit… | |
return new NaClWrapper.Car(); | |
}; |
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
$ sudo ipfw list | |
65535 1136838 609191629 allow ip from any to any |
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
$ sudo ipfw pipe 1 config delay 100ms | |
$ sudo ipfw add 100 pipe 1 ip from any to xkcd.com | |
00100 pipe 1 ip from any to any dst-ip 107.6.106.82 |
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
$ sudo ipfw list | |
00100 pipe 1 ip from any to 107.6.106.82 | |
65535 allow ip from any to any |
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
$ ping xkcd.com | |
PING xkcd.com (107.6.106.82): 56 data bytes | |
64 bytes from 107.6.106.82: icmp_seq=0 ttl=55 time=117.092 ms | |
64 bytes from 107.6.106.82: icmp_seq=1 ttl=55 time=124.583 ms | |
64 bytes from 107.6.106.82: icmp_seq=2 ttl=55 time=117.916 ms | |
64 bytes from 107.6.106.82: icmp_seq=3 ttl=55 time=121.067 ms |
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
$ sudo ipfw delete 100 | |
$ sudo ipfw pipe 1 delete |
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
$ sudo ipfw pipe 1 config delay 100ms | |
$ sudo ipfw add 100 pipe 1 ip from 127.0.0.1 to 127.0.0.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
$ sudo ipfw add 100 pipe 1 ip from 127.0.0.1 to 127.0.0.1 in | |
$ sudo ipfw add 100 allow ip from 127.0.0.1 to 127.0.0.1 out |
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 | |
MIN_LAG=25 | |
MAX_LAG=50 | |
(( LAG_RANGE = MAX_LAG - MIN_LAG )) | |
TIME=600 # total test time (in seconds) | |
INTERVAL=0.1 # time in between changes in latency (in seconds) | |
STEPS=6000 # TIME / INTERVAL |
OlderNewer