This file contains 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 -eEuo pipefail | |
CONF_FILE="$HOME/.config/starship.toml" | |
CONF_D="$HOME/.config/starship.d" | |
TEMPFILE="$(mktemp)" | |
starship preset -o "$CONF_D/99-nerd-font-symbols.toml" nerd-font-symbols |
This file contains 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 -eEuo pipefail | |
# docker run -d -t --name paperless-test -v $(pwd):/paperless ubuntu:focal /bin/bash | |
# docker exec -it paperless-test /bin/bash | |
apt update | |
apt install --no-install-recommends --assume-yes python3 python3-pip python3-dev fonts-liberation gnupg libpq-dev libmagic-dev mime-support unpaper tesseract-ocr imagemagick ghostscript optipng |
This file contains 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
substitutions: | |
device_name: your_device_name | |
friendly_name: "Your Device Name" | |
api_password: !secret api_password | |
ota_password: !secret ota_password | |
esphome: | |
name: ${device_name} | |
platform: ESP8266 | |
board: esp01_1m |
This file contains 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
substitutions: | |
device_name: your_device_name | |
friendly_name: "Your Device Name" | |
api_password: "pass1" | |
ota_password: "pass2" | |
esphome: | |
name: ${device_name} | |
platform: ESP8266 | |
board: esp01_1m |
This file contains 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 | |
# This is a workaround for Virtualbox drawing white text on light background | |
# when using dark mode, see https://www.virtualbox.org/ticket/18258 | |
exec "$(which -a VirtualBox | grep -v "$(readlink -e "$0")" | head -n1)" -style Fusion "$@" |
This file contains 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 | |
# Clone a git repository, but make sure that it has a valid signature | |
# before actually checking it out. | |
# | |
# Note that this will always clone the master branch and probably doesn't | |
# exactly behave like "git clone" in other ways. | |
set -e | |
fail() { | |
echo "$*" >&2 |
This file contains 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 -e | |
info() { | |
echo "$*" >&2 | |
} | |
warn() { | |
info "WARNING: $*" | |
} |
This file contains 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 | |
MYNAME="$(readlink -f "$0")" | |
BASEDIR="$(dirname "$MYNAME")" | |
AUTHFILE="$HOME/private/owncloud" | |
CURL="curl --netrc-file $AUTHFILE --fail --silent --show-error" | |
CONTACTSPATH="$BASEDIR/contacts" | |
CALENDARSPATH="$BASEDIR/calendars" |
This file contains 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 | |
# also see http://marc.merlins.org/perso/btrfs/post_2014-03-19_Btrfs-Tips_-Btrfs-Scrub-and-Btrfs-Filesystem-Repair.html | |
for fs in $(grep ' btrfs ' /proc/mounts | cut -d' ' -f1 | sort -u) | |
do | |
starttime="$(date "+%Y-%m-%d %H:%M:%S")" | |
logger "Starting btrfs scrub on $fs" | |
btrfs scrub start -Bd "$fs" | |
journalctl -q -k --since "$starttime" | grep BTRFS |
This file contains 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 -e | |
repourl="$1" | |
reponame="$(echo "$repourl" | sed -r 's#.*/([^.]+).git#\1#')" | |
status() { | |
echo "[vcsh-new] $@" >&2 | |
} |
NewerOlder