### Assumptions:
# - Registry: You have a private registry (ex: harbor.air-gap.dev) pre-seeded with required images
# - File Dependencies:
# - SELinuxRPM: k3s requires an selinux rpm. You can grab it ahead of time from here: https://github.com/k3s-io/k3s-selinux/releases
# - k3s binary: (example) https://github.com/k3s-io/k3s/releases/download/v1.24.4%2Bk3s1/k3s
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 | |
## https://forum.proxmox.com/threads/console-failed-to-connect-to-server-host-key-verification-failed.78957/ | |
# Usage: ./proxmox_webvnc_fix.sh <shorthostname> | |
# Notes: may need to run twice for the fix to take. | |
set -e | |
DOMAIN="lark.lol" | |
if [ $# -eq 0 ]; then | |
echo "No hostname provided. Exiting..." |
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
prep: | |
helm repo add nvidia https://helm.ngc.nvidia.com/nvidia \ | |
&& helm repo update | |
install: | |
helm install --wait nvidiagpu \ | |
-n gpu-operator --create-namespace \ | |
--set toolkit.env[0].name=CONTAINERD_CONFIG \ | |
--set toolkit.env[0].value=/var/lib/rancher/k3s/agent/etc/containerd/config.toml \ | |
--set toolkit.env[1].name=CONTAINERD_SOCKET \ |
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
## | |
## shoutout to https://github.com/webosbrew | |
## I lifted these instructions from the #OpenLGTV discord (under pinned msgs). The instructions are for Windows but just replace Putty with a terminal and you're good to go. | |
1. Enable Developer Mode: https://webostv.developer.lge.com/develop/getting-started/developer-mode-app | |
2. Download Software: | |
a. WebOS-Dev-Manager - https://github.com/webosbrew/dev-manager-desktop/releases | |
b. PuTTY - https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html | |
c. Homebrew Channel 0.5.1 ipk - https://github.com/webosbrew/webos-homebrew-channel/releases | |
3. In WebOS-Dev-Manager perform these steps: |
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
--- | |
- hosts: all | |
tasks: | |
# ansible all -i closet.lark.lol -u root coral-playbook.yaml | |
# deb https://packages.cloud.google.com/apt coral-edgetpu-stable main | |
# https://packages.cloud.google.com/apt/doc/apt-key.gpg | |
- name: Add an Apt signing key, uses whichever key is at the URL | |
ansible.builtin.apt_key: | |
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg |
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 | |
mkdir -p /opt/docker/{data,config,dockerfiles} | |
CONTAINER_NAME="changedetectionio" | |
DATA_DIR=/opt/docker/data/${CONTAINER_NAME} | |
docker rm --force selenium changedetectionio playwright-chrome | |
docker run -d \ | |
--name selenium \ | |
--restart unless-stopped \ |
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/sh | |
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
sudo apt-get update -y | |
sudo apt-get install libedgetpu1-max python3-pycoral -y |
rm fio-tempfile.dat; fio --name TEST --eta-newline=5s --filename=fio-tempfile.dat --rw=write --size=500m --io_size=10g --blocksize=1024k --ioengine=libaio --fsync=10000 --iodepth=32 --direct=1 --numjobs=1 --runtime=60 --group_reporting
# Note: if you dont delete an existing fio-template.dat, it will reuse the file and report corrupted speed tests (1150 vs 635)
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 | |
## helper script to more easily personalize cloned virtual-machines. add to your bashrc. | |
## on login, it will test the hostname and if localhost is determined to be a part of the hostname, | |
## this script will offer to fix that for you. | |
if [[ $(hostname -s) = localhost* ]]; then | |
read -p "[!!!] it seems you are still using localhost, would you like to set the hostname? (y/n) " choice | |
if [[ "${choice}" -eq "y" ]]; then | |
read -p " new hostname: " newhostname | |
# set new hostname |
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
apiVersion: management.cattle.io/v3 | |
customized: false | |
default: '{}' | |
kind: Setting | |
metadata: | |
name: ui-banners | |
value: |- | |
{ | |
"banner": { | |
"text": "CLOUD-GOV" |
NewerOlder