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
while true; do | |
avahi-publish -s test@b _http._tcp 7778 & | |
sleep 3s | |
killall avahi-publish | |
sleep 1s | |
killall avahi-publish | |
done |
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/env python | |
import hashlib | |
for i in xrange(1, 1000000): | |
m = hashlib.sha1() | |
m.update("test") | |
m.digest() |
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/env python | |
import hashlib | |
for i in xrange(1, 1000000): | |
m = hashlib.sha1() | |
m.update("test") | |
m.digest() |
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
-module(matrix). | |
-compile(export_all). | |
random(Size, MaxValue) -> | |
random(0, 0, Size, MaxValue, [], []). | |
-define(VALUE(X, Y), value(X, Y, MaxValue)). | |
value(X, X, _MaxValue) -> |
NewerOlder