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
| #!/bin/bash | |
| # Consumer Wacom devices (i.e. most Bamboo devices like the Bamboo Pen & Touch, | |
| # Bamboo Fun, Bamboo Connect; and the newer non-pro Intuos devices like the | |
| # Intuos Draw and Intuos Art) have a hardware button mapping that is incompatible | |
| # with GNOME. This incompatibility prevents the GNOME Control Center's Wacom panel | |
| # from working properly, and often also prevents at least one button from working | |
| # entirely. | |
| # | |
| # This script can be used to discover a software mapping that can be applied by |
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
| #!/bin/sh | |
| # https://martin.elwin.com/blog/2008/05/backups-with-squashfs-and-luks/ | |
| set -e | |
| SQUASHFS_IMG="$1" | |
| LUKS_IMG="$2" | |
| CRYPTNAME=mkcrypt-$RANDOM | |
| CRYPTDEV="/dev/mapper/$CRYPTNAME" |
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/python3 | |
| # dump_bos_descriptors.py | |
| # | |
| # Scan the USB bus and print out the BOS descriptors for each device, if | |
| # they exist. Alternatively, decode and print out the BOS descriptor that | |
| # is passed in via stdin. | |
| # | |
| # Usage: `./dump_bos_descriptors.py [< binary]` | |
| # |
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
| #!/bin/bash | |
| # wacom_app_config.sh | |
| # | |
| # BASH script to automatically run change Wacom driver config | |
| # based on the focused application. | |
| # | |
| # Limited support for use under GNOME and its forks due to the | |
| # way it does its own device/took configuration, but should work | |
| # fine elsewhere. It may be possible to use the power of dconf |
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
| #!/bin/bash | |
| # Set the SSID / password on C4000BG DSL modems | |
| # | |
| # WARNING: This script does no sanity checking! It does not check | |
| # that the SSID is available, or that it is even well-formed (i.e. | |
| # 32 octets or less in length). Be careful! | |
| set -e |
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
| # AWK script to annotate output from usbmon | |
| # | |
| # Usage: `awk -f usbmon-annotate.awk < usbmon.log` | |
| # | |
| # Output: If possible, each line of usbmon output will have a human- | |
| # readable description of what it is printed out immediately before | |
| # the usbmon line itself. | |
| # | |
| # For example, the following INPUT: | |
| # |
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
| #!/bin/bash | |
| # compare-commit-upstream.sh | |
| # | |
| # Given a commit ID in the current repository, find the corresponding | |
| # upstream commit and print out the difference, if any. If no upstream | |
| # commit can be found, print a message and exit with code 0. | |
| # | |
| # Usage: ./compare-commit-upstream.sh <local-git-commit-id> |
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
| #!/bin/bash | |
| # Perform a distributed kernel build using icecream and a specific compiler | |
| # version. | |
| # | |
| # For example, you might set SUFFIX=-12 to build with the "gcc-12" compiler. | |
| SUFFIX= | |
| export PATH=/usr/lib/icecream/bin:$PATH |
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
| #!/bin/sh | |
| # Force a reset of the Bluetooth interface if it freezes up. | |
| # | |
| # https://github.com/raspberrypi/linux/issues/2832#issuecomment-597001597 | |
| if test $(id -u) -ne 0; then | |
| echo "This script must be run as root." | |
| exit 1 | |
| fi |
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
| #!/bin/bash | |
| if [[ $# -ne 2 ]]; then | |
| echo "GPX to CSV converter for MyFlightBook" | |
| echo | |
| echo "Converts a GPX file (e.g. from a handheld GPS unit) into a CSV file that" | |
| echo "can be imported into MyFlightBook. Performs basic data filtering, event" | |
| echo "detection, etc." | |
| echo | |
| echo "Usage: $0 <start> <stop>" |
NewerOlder