This file contains hidden or 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 bash | |
# Transfers VPN tunnel interface to a network namespace as its only | |
# non-localhost interface. | |
# | |
# Based on <https://github.com/slingamn/namespaced-openvpn>. | |
sudo ip netns add protected | |
sudo ip netns exec protected ip link set lo up | |
sudo openvpn "$@" --ifconfig-noexec --route-noexec --script-security 2\ |
This file contains hidden or 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 python3 | |
# -*- indent-tabs-mode: nil; tab-width: 4 -*- | |
"""Enable/disable tablet mode in a Crouton chroot based on lid angle.""" | |
import argparse | |
import logging | |
import logging.config | |
import math | |
import os |
NewerOlder