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
| var ridList = ["16b2d19e863218615007b009f9a104e42e2daf78","000a34f62b7a22d053b492eaad9bae921f034198","ff5606bcc1b311f893105107720ef0f273af071c","69b6899bb57ae4ceea4546fca9ae2bdc7870ea02","9ab2807b97ba11d79c4f36ca50e09c1f9f489fc5","b638939016874e00a5dbaf81e1ce905a8cc5710e","90b6434b023c78a701dc192aa9f3a901c7073343","4eb06515fefa45b1b2313d7f984ba92e46766283","bc4814915b3e18b32711ae410a7ecbc1776f15a6","cb3db7cd85137e38af9f252467ceab74bbd21fbb","f2e20b39d881ebdd8244789f17c9339409962eeb","2e77867a51691af9c690b87d31325c5b42a489c7","bb163ab53288857996a3b679aaf572c84435e530","97a2cca048f6170e6e6dfd02ad57ecabe1ccf77f","e0e87f21a25651b230cc1d4acd2c98bcfa24f7fa","d0eabe36e806f4fcb8906234b41a72a19a1721e3","06ea166ecd4870b9df75f5273e8938034a24e807","80d98adb5fed9384b9e71de861efd6ab5c7df78c","9abe475e024c88e571276a9f6650900865d6e87d","d7a829e51f91fc506f9467814b939a74e929112f","80420d6d6884be529ee038fdc3fee32f715b0c2f","7d9c3c639073feb1f47dad9c22e9887f901c13f4","ee8cd20b7d7a3f194cb5063e238ae356616752fe","1bb4499515f3088b991 |
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
| sudo python ~/Documents/dnsproxy.py -s 8.8.8.8 |
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
| mongod --config /usr/local/etc/mongod.conf |
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
| git clone git://anongit.kde.org/kcachegrind | |
| cd kcachegrind/qcachegrind | |
| qmake -spec 'macx-g++'; make |
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
| time rsync -aOvz sandbox-02:/var/benchmark/ ~/benchmark |
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
| echo 'flush_all' | nc localhost 11211 |
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
| function parseLink(link) { | |
| var links = {} | |
| link.split(/\s*,\s*(?=<)/).forEach(function(l, i) { | |
| var parts = l.match(/(?:<(\S+)>; rel="(\S*)",?)/) | |
| if(parts.length == 3) { | |
| links[parts[2]] = parts[1] | |
| } | |
| }) | |
| return links; | |
| } |
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
| (Math.random().toString(16) + '000000').slice(2, 8) |
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
| // | |
| // [1].dim() == 1 | |
| // [1,2].dim() == 1 | |
| // [[1]].dim() == 2 | |
| // [[1,2,3],4,[5,6,7],[8,9,0]].dim() == 2 | |
| // [[1,[2]],3,[[4,5],6,[7,8]]].dim() == 3 | |
| // | |
| Array.prototype.dim = function dim() { | |
| return this.reduce(function(a,b) { |
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
| /* For a given date, get the ISO week number | |
| * | |
| * Based on information at: | |
| * | |
| * http://www.merlyn.demon.co.uk/weekcalc.htm#WNR | |
| * | |
| * Algorithm is to find nearest thursday, it's year | |
| * is the year of the week number. Then get weeks | |
| * between that date and the first day of that year. | |
| * |