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
def test_it(iter): | |
s = 0 | |
for i in xrange(0,iter): | |
p = sum([randint(0,10000000) for i in xrange(0,iter)]) | |
s += p | |
print s | |
### methodology: | |
""" | |
beltiras@BigWizard:~$ source pypyenv/bin/activate | |
(pypyenv)beltiras@BigWizard:~$ ipython |
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 random import random | |
from collections import Counter | |
def randbits(n, p): | |
i = 0 | |
while i<n: | |
yield random() < p | |
i += 1 | |
def mc_hothand(trials, p): |
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
[root@CentOS-71-64-minimal ~]# iptables-save | |
# Generated by iptables-save v1.4.21 on Thu Sep 24 14:31:51 2015 | |
*filter | |
:INPUT ACCEPT [4576:497904] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [4378:499230] | |
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT | |
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT | |
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT | |
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT |
NewerOlder