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 | |
| # -*- indent-tabs-mode: nil; tab-width: 4 -*- | |
| # | |
| # An ugly way to bind extra mouse buttons under GNOME/Wayland or otherwise. | |
| # | |
| # Prerequisites: | |
| # | |
| # Effectively unbind extra mouse buttons by modifying udev/hwdb rules: | |
| # 1. Identify scancodes: | |
| # sudo evemu-record /dev/input/by-path/*event-mouse \ |
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>. | |
| ip netns add protected | |
| ip netns exec protected ip link set lo up | |
| 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