I hereby claim:
- I am ryneq on github.
- I am ryneq (https://keybase.io/ryneq) on keybase.
- I have a public key ASAf43_KZ0K4-TGXuWrnv9SL0n4i-ljDi1KvQ9iOay5IVQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import fcntl | |
import os | |
import struct | |
import subprocess | |
# Some constants used to ioctl the device file. I got them by a simple C | |
# program. | |
TUNSETIFF = 0x400454ca | |
TUNSETOWNER = TUNSETIFF + 2 |
# Simple linux tun/tap device example tunnel over udp | |
# create tap device with ip tuntap add device0 tap | |
# set ip address on it and run tap-linux on that device and set desitation ip | |
# run same on another node, changing dst ip to first node | |
import fcntl | |
import struct | |
import os | |
import socket | |
import threading |
#!/bin/bash | |
me=`basename "$0"` | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $me src_dir dst_dir" | |
exit 1 | |
fi | |
src="$1" |
#!/bin/bash | |
me=`basename "$0"` | |
if [ "$#" -ne 2 ]; then | |
echo -e "${me} count_of_GBs filename\n\te.g. ${me} 1000 container.img" | |
exit 1 | |
fi | |
size=$1 | |
imagename=$2 |
fib = lambda n:reduce(lambda x,n:[x[1],x[0]+x[1]], range(n),[0,1])[0] |