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
Congestion Control | |
[E2ECONGESTION] Floyd, S., Fall, K., | |
"Promoting the Use of End-to-End Congestion Control in the Internet", | |
IEEE/ACM Transactions on Networking, May 1999, | |
<https://www.icir.org/floyd/papers/collapse.may99.pdf>. | |
[RFC896] Nagle, J., "Congestion Control in IP/TCP Internetworks", |
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
step 1: | |
get the latest stable python virtualenv and cryptographically verify it. | |
save it to: ~/Persistent/virtualenv-x.xx.x/ | |
step 2: | |
create a virtual env to run ansible: | |
Persistent/virtualenv-x.xx.x/virtualenv.py --system-site-packages Persistent/virtenv-ansible | |
New python executable in Persistent/virtenv-ansible/bin/python | |
Installing setuptools, pip...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
how to scan the tor network for partitions | |
------------------------------------------ | |
1. setup a machine running Tor and expose its control port as either a tcp port or unix domain socket | |
with no authentication | |
*edit* /etc/tor/torrc | |
blah blah easy rtfm |
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
# dot mixnet_graph.dot -Tpng -o rgb_mix.png -Tpng -o rgb_mix.png | |
digraph rgb_mixnet { | |
ratio = fill; | |
size="3,3"; | |
rank = min; | |
nodesep=1.4; | |
subgraph cluster0 { | |
#rankdir = RL; | |
node [shape = doublecircle, fillcolor=black, style="filled", width=1,height=1]; e; | |
node [shape = circle, fillcolor="black", width=1, height=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
extern crate crypto; | |
use std::error::Error; | |
use std::fmt; | |
use crypto::mac::Mac; | |
use crypto::blake2b::Blake2b; | |
const LIONESS_KEY_SIZE: u32 = 208; |
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
multi-party conflict detection | |
============================== | |
The current Magic-Folder remote conflict detection design does not properly detect remote conflicts | |
for groups of three or more parties. This design is specified in the "Fire Dragon" section of this document: | |
https://github.com/tahoe-lafs/tahoe-lafs/blob/2551.wip.2/docs/proposed/magic-folder/remote-to-local-sync.rst#fire-dragons-distinguishing-conflicts-from-overwrites | |
This Tahoe-LAFS trac ticket comment outlines a scenario with | |
three parties in which a remote conflict is falsely detected: |
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
Log notice stdout | |
SocksPort 8040 | |
#ORPort 8001 | |
DataDirectory ./client-data | |
UseBridges 1 | |
Bridge bananaphone 127.0.0.1:4703 modelName=markov corpus=/usr/share/dict/words encodingSpec=words,sha1,4 order=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
Log notice stdout | |
SocksPort 0 | |
ORPort 7001 | |
ExitPolicy reject *:* | |
DataDirectory ./bridge-data | |
BridgeRelay 1 | |
PublishServerDescriptor 0 |
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 | |
apt-get update | |
apt-get install xorg openbox wicd sysstat wireshark macchanger openvpn xlockmore emacs23 chromium-browser nmap netcat -y | |
# after install grsec kernel | |
paxctl -m -x -e /usr/lib/chromium-browser/chrome-sandbox -c | |
paxctl -P -m -x -e -R /usr/lib/chromium-browser/chromium-browser -c | |
# edit /etc/default/grub |
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 nacl.secret | |
import nacl.utils | |
key = nacl.utils.random(nacl.secret.SecretBox.KEY_SIZE) | |
box = nacl.secret.SecretBox(key) | |
message = b"secret message" | |
nonce = nacl.utils.random(nacl.secret.SecretBox.NONCE_SIZE) |