Skip to content

Instantly share code, notes, and snippets.

View vschiavoni's full-sized avatar
😑
^-v-^

Valerio Schiavoni vschiavoni

😑
^-v-^
View GitHub Profile
anonymous
anonymous / fabfile-local.py
Created April 23, 2015 15:38
from fabric.api import *
import time
import subprocess
import os
# IMPORTANT: Set the following variables to the correct path
# ----------------------------------
FSDIR=os.path.expanduser('~/usr/sinergiafs')
UPAXOSDIR=os.path.expanduser('~/usr/Paxos-trunk')
ZKHOST='localhost:2181'
@arr2036
arr2036 / delay.sh
Last active June 30, 2023 19:13
Simple script to introduce delay on outbound packets to one or more (run multiple times) ip addresses
#!/bin/bash
# root qdisc handle
r_handle=1
# netem qdisc handle
n_handle=2
interface=
delay=
dstip=
qdpresent=