Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blead on github.
  • I am blead (https://keybase.io/blead) on keybase.
  • I have a public key ASCzv4ArQNORs065pKeFpgSzumuudS5CGzqwOPJuV-0FEgo

To claim this, I am signing this object:

@blead
blead / ns-inet-mysql.sh
Last active March 7, 2019 16:49 — forked from kheminw/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="mysql"
VETH="vethmysql"
VPEER="vpeermysql"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"
// Array.apply(null,{length:1024}).map(Number.call,Number).map(x => Math.floor(Math.sqrt(x)).toString(2)).join('\n');
0
1
1
1
10
10
10
10
10