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 | |
| # | |
| # Start mosh-server, but first create a port redirection in the NAT | |
| # router (with UPnP) and delete that redirection again just before | |
| # mosh-server exits. | |
| # die -- print error on stderr and exit | |
| function die { | |
| echo "$@" >&2 | |
| exit 1 |
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 | |
| unset TERM | |
| export LC_ALL=C | |
| if [ "$__KEXEC_REBOOT_NOHUP" != "1" ] | |
| then | |
| SCRIPTPATH=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) | |
| __KEXEC_REBOOT_NOHUP=1 nohup "$SCRIPTPATH/$(basename -- "$0")" "$@" > /dev/null 2>&1 </dev/null & | |
| exit "$?" |
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 | |
| # requires parted, losetup, and resize2fs | |
| BOOT="$(sed -n -e "\|\s/boot\s.*$|{s///p;q}" /etc/mtab)" | |
| DISK="${BOOT%%[0-9]*}" | |
| PART="$((${BOOT##*[^0-9]}+1))" | |
| printf "fix\n" | parted ---pretend-input-tty ${DISK} print | |
| parted ${DISK} resizepart ${PART} 100% |
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 | |
| set -uex | |
| install_path="${XDG_DATA_HOME:-$HOME/.local/share}/fonts/material-design-icons" | |
| url_prefix="https://raw.githubusercontent.com/google/material-design-icons/master/font" | |
| fonts="MaterialIcons-Regular.ttf MaterialIconsOutlined-Regular.otf MaterialIconsRound-Regular.otf" | |
| fonts="$fonts MaterialIconsSharp-Regular.otf MaterialIconsTwoTone-Regular.otf" | |
| for font in $fonts |
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 | |
| set -ef | |
| if [ -z "$1" ] | |
| then | |
| outdir="output" | |
| else | |
| outdir="$1" | |
| fi | |
| mkdir -p "$outdir" |
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 | |
| nmcli connection delete ipv6-cr-dummy1 | |
| nmcli connection add type dummy \ | |
| connection.id ipv6-cr-dummy1 \ | |
| connection.interface-name ipv6-cr-dummy1 \ | |
| ipv4.method disabled ipv6.method manual \ | |
| ipv6.addresses 100::2c93:c388:6f50:23c3/127 \ | |
| ipv6.routes '2001:4860:4860::8888 100::2c93:c388:6f50:23c2' \ | |
| ipv6.route-metric 4294967295 connection.autoconnect yes |
NewerOlder