Skip to content

Instantly share code, notes, and snippets.

Avatar

Jakub Szewczyk kubasz

View GitHub Profile
@Anden
Anden / lh.py
Last active Jun 12, 2020 — forked from prefiks/lh.py
View lh.py
#!/usr/bin/python3
from bluepy import btle
import sys
class DiscoLH(btle.DefaultDelegate):
def __init__(self):
self.devices = []
btle.DefaultDelegate.__init__(self)
@dpino
dpino / ns-inet.sh
Last active May 7, 2021
Setup a network namespace with Internet access
View ns-inet.sh
#!/usr/bin/env bash
# set -x
if [[ $EUID -ne 0 ]]; then
echo "You must be root to run this script"
exit 1
fi
# Returns all available interfaces, except "lo" and "veth*".