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
get_latest_release(){ | |
curl -s https://api.github.com/repos/$GH_USER/$GH_REPO/releases/latest | jq '.assets[]|.browser_download_url' | |
} |
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
# https://help.nextcloud.com/t/howto-nextcloud-as-a-rootless-container-using-podman-play-kube-with-centos8-stream/110377 | |
PODNAME=nxcl | |
DDIR=/var/lib/nextcloud | |
mkdir -p ${DDIR}/{nginx,html} | |
set -x | |
if (podman pod exists ${PODNAME}); then | |
podman rm -f ${PODNAME}-app | |
podman rm -f ${PODNAME}-cron | |
podman rm -f ${PODNAME}-redis | |
podman rm -f ${PODNAME}-nginx |
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
Types: deb | |
Architectures: amd64 | |
URIs: https://baltocdn.com/helm/stable/debian/ | |
Suites: all | |
Components: main | |
Signed-By: | |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBF6yP7IBEADWk4aijQ7Vhj7wn2oz+8asnfzsD0+257qjWy1m+cN4RP6T2NBG | |
S2M5+vzbsKNmGAja8jOpo46pHo/SCdc8Bwv+QHH+JbuBbDNEHwIBGV5p+ZRETiHq |
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 | |
# Function to extract the latest version number from the Terraform website | |
get_latest_version() { | |
curl -s https://releases.hashicorp.com/terraform/index.json | jq -r '.versions[].version' | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n1 | |
} | |
# Function to download and install Terraform | |
install_terraform() { | |
version=$1 |
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
[Match] | |
Name=br0 | |
[Network] | |
Address=10.0.0.7/24 | |
#Gateway=10.0.0.1 | |
DNS=10.0.1.5 | |
Domains=domain example.com | |
#LinkLocalAddressing=ipv6 | |
ConfigureWithoutCarrier=yes |
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
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do sudo snap remove "$snapname" --revision="$revision"; done |
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=Cloud-Hypervisor for %i | |
After=network.target | |
After=local-fs.target | |
After=remote-fs.target | |
After=systemd-logind.service | |
After=systemd-machined.service | |
Wants=network.target | |
[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
<domain type='kvm'> | |
<name>cloudhypervisor</name> | |
<uuid>4dea22b3-1d52-d8f3-2516-782e98ab3fa0</uuid> | |
<os> | |
<type>hvm</type> | |
<kernel>hypervisor-fw</kernel> | |
</os> | |
<memory unit='G'>2</memory> | |
<devices> | |
<disk type='file'> |
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
[Interface] | |
PrivateKey = [local private key] | |
Address = [local IP matching what may be assigned on remote peer]/32 | |
#DNS = [IP of remote DNS service if needed] | |
#PostUp = ip r add 172.12.0.0/22 dev wg0 | |
#PostDown = ip r del 172.12.0.0/22 | |
[Peer] | |
PublicKey = [remote peer public key] | |
AllowedIPs = [remote CIDR block] |
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
sudo dd if=debian-live-11.3.0-amd64-gnome.iso of=/dev/sda bs=4M oflag=direct status=progress && sync |
NewerOlder