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 | |
# | |
# Backup script that tries to utilize all available disc spindles and cores. | |
# For every target archive ("sink") create a file "sink.list" | |
# which contains what to backup ("sources") linewise. | |
# (Prefer plzip to xz if you have the former at hand.) | |
# | |
# wrapper to: tar sort xargs xz | |
# | |
# run: ./backup.sh run *.list |
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
[Unit] | |
Description=newrelic-sysmond | |
After=docker.service | |
[Service] | |
ProtectHome=true | |
ProtectSystem=full | |
PIDFile=/run/newrelic-sysmond.pid | |
ExecStartPre=-/bin/bash -c "[[ -x /opt/sbin/nrsysmond ]] || (mkdir -p /opt/sbin; docker pull newrelic/nrsysmond:latest && rsync -au $(docker inspect newrelic/nrsysmond:latest | jq -r '.[0].GraphDriver.Data.UpperDir // .[0].GraphDriver.Data.RootDir')/usr/sbin/nrsysmond /opt/sbin/)" |
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
[Unit] | |
Description=updates Golang's documentation index | |
ConditionFileNotEmpty=!/usr/share/go-1.6/godoc_index.db | |
ConditionACPower=true | |
AssertDirectoryNotEmpty=/usr/share/go-1.6 | |
[Service] | |
Restart=on-failure | |
ExecStart=/usr/bin/godoc \ |
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
[Unit] | |
Description=netboot server | |
Wants=network-online.target | |
After=network-online.target sys-subsystem-net-devices-ext0.device | |
AssertPathExists=/srv/ftp/tftproot | |
[Service] | |
Slice=machine.slice | |
KillMode=mixed | |
Restart=on-abort |
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
[Unit] | |
Description=GITLAB Runner for Docker | |
Documentation=https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/docker.md | |
ConditionArchitecture=x86-64 | |
ConditionACPower=true | |
AssertFileNotEmpty=/var/gitlab-runner/config/config.toml | |
After=docker.service docker-gitlab.service update-gitlab-runner.service | |
Requires=docker.service | |
Wants=update-gitlab-runner.service |
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 -eu | |
# The idea is to create a large file that will be written to disk and not into the filesystem tree. | |
# reflinks work if a copy shares disk space. | |
# Do not use 'fallocate' or the like, because some filesystems will compress it and store the result in their tree. | |
if ! command -v filefrag &>/dev/null; then | |
>&2 printf "command not found: filefrag\n" |
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
[Unit] | |
Description=Docker garbage collection | |
ConditionACPower=true | |
ConditionDirectoryNotEmpty=/var/lib/docker | |
Requisite=docker.service | |
PartOf=docker.service | |
After=docker.service | |
[Service] | |
Environment=GRACE_PERIOD=1h |
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 | |
# Will update your Golang. | |
# Needs: curl tar jq procps-ng/pgrep | |
set -eupo pipefail | |
if [[ -t 1 ]] && type -p 'tput' &>/dev/null && tput colors >&/dev/null; then | |
V_BOLD_RED=$(tput bold; tput setaf 1) | |
V_BOLD_GREEN=$(tput bold; tput setaf 2) | |
V_VIDOFF=$(tput sgr0) | |
else |
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 | |
# Merges a set of repositories, the “sources”, formerly hosted on “from” | |
# into subdirectories of one repository | |
# meant to be moved to a new repository hosting provider. | |
# | |
# git version: 2.24.0 | |
# Mark Kubacki, 2020-01-08 | |
if (( $# < 1 )); then | |
>&2 printf "Usage: $0 [repo | repo…]\n" |
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
--- /usr/share/X11/xkb/symbols/de.orig 2020-03-08 18:18:54.650875969 +0100 | |
+++ /usr/share/X11/xkb/symbols/de 2020-03-08 18:29:08.506129310 +0100 | |
@@ -37,6 +37,9 @@ | |
key <AB10> { [ minus, underscore, endash, emdash ] }; | |
key <LSGT> { [ less, greater, bar, dead_belowmacron ] }; | |
+ // space, nobreakspace, thin non-break space, thin space | |
+ key <SPCE> { [ space, nobreakspace, U202F, thinspace ] }; | |
+ | |
include "kpdl(comma)" |