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 | |
# makes a cloud-init template vm from URL | |
# call like ./make-debian-template.sh 9000 | |
# Check for root priviliges | |
if [[ $EUID -ne 0 ]]; then | |
printf "Please run as root:\nsudo %s\n" "${0}" | |
exit 1 | |
fi |
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
import glob | |
import os | |
import pwd | |
import re | |
import subprocess | |
import unicodedata | |
from flask import Flask, jsonify, request | |
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 | |
# usage: skript.sh eno2 ./gluon-ffac-7520-sysupgrade.img | |
ip a a 192.168.178.2/24 dev $dev | |
set -e | |
image="$2" | |
dev="$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/bash | |
# makes a template vm from URL | |
# call like ./make-ff-proxmox-template.sh 9000 http://firmware-server/factory/gluon-v2022.1.2-x86-64.img.gz | |
ID=$1 | |
URL=$2 | |
FS=lvm | |
wget $URL -O firmware.img.gz | |
gzip -df firmware.img.gz |
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 | |
# Check for root priviliges | |
if [[ $EUID -ne 0 ]]; then | |
printf "Please run as root:\nsudo %s\n" "${0}" | |
exit 1 | |
fi | |
apt-get update | |
apt-get install ca-certificates curl gnupg lsb-release -y |
NewerOlder