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 |
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/bash | |
set -e | |
# ebal, Mon, 07 Nov 2022 08:49:37 +0200 | |
## 0 0 * * Fri /usr/local/bin/btrfsSnapshot.sh | |
# paths MUST end with '/' | |
btrfs_paths=("/" "/home/" "/opt/") | |
timestamp=$(date +%Y%m%d_%H%M%S) |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import cson | |
path = sys.argv[1] | |
i=0 | |
for x in os.listdir(path): |