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 python | |
| import os | |
| import sys | |
| import cson | |
| path = sys.argv[1] | |
| i=0 | |
| for x in os.listdir(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/bash | |
| # This will be the directory to save our artifacts | |
| TEMPDIR=$(mktemp -p . -d) | |
| # You can choose to run a different job | |
| [[ -z "$1" ]] && JOB="run-build" || JOB="$1" | |
| # GitLab Runner - docker | |
| gitlab-runner exec docker \ |
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 -e # Exit immediately if a command fails | |
| set -u # Treat unset variables as an error | |
| set -o pipefail # Catch pipeline errors | |
| ## ebal, Mon, 07 Nov 2022 08:49:37 +0200 | |
| ## ebal, Fri, 28 Nov 2025 23:41:22 +0200 | |
| ## @daily /usr/local/bin/btrfs_subvolume_snapshot.sh |
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 | |
| if [ "$EUID" -ne 0 ]; then | |
| echo -e "\nPlease run as root\neg. sudo $0 \n" | |
| exit | |
| fi | |
| GITHUB_USERNAME="ebal" | |
| cd `mktemp -d` |
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 | |
| ip link add br0 type bridge | |
| ip link set br0 up | |
| ip link set eth0 up | |
| ip link set eth0 master br0 | |
| ip addr add 10.10.10.10/24 dev br0 | |
| ip route add default via 10.10.10.1 dev br0 |