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 | |
| CWD="$(dirname "$0")" | |
| CIDIR="$(mktemp -d)" | |
| cleanup() { | |
| cd / | |
| fusermount -uz "$CIDIR" | |
| if [ $? == 0 ]; then | |
| if [ -z "$(find "$CIDIR" -mindepth 1 -maxdepth 1 -print -quit)" ]; then |
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
| [xboxdrv] | |
| evdev = /dev/input/by-id/usb-Nintendo_Co.__Ltd._Pro_Controller_000000000001-event-joystick | |
| evdev-grab = true | |
| mimic-xpad = true | |
| [axismap] | |
| -Y1 = Y1 | |
| -Y2 = Y2 | |
| [evdev-absmap] |
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 | |
| # cd path/to/www | |
| find . -name *.rpgm* | while read x; do f=$(basename "$x" | rev | cut -d. -f2- | rev); e=$(echo "$x" | rev | cut -d. -f1 | rev); rg -i "\b$f\b" . | sed "s/^.*\($f\).*$/\1/i" | while read y; do test "$f" != "$y" && (cd $(dirname "$x"); ln -sfv "$f"."$e" "$y"."$e"); done done |
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 | |
| # save and restore backlight brightness | |
| # Source options | |
| if [ -r /etc/default/backlight ]; then | |
| . /etc/default/backlight | |
| fi | |
| backlight_start() { | |
| echo -n "Restore backlight brightness: " |