Skip to content

Instantly share code, notes, and snippets.

@ilude
ilude / setup_kiosk.sh
Created August 7, 2022 22:57 — forked from anonymous/setup_kiosk.sh
create a kiosk user
#!/bin/bash
# This script
# - creates a user (named below)
# - sets up a union (aufs) filesystem on top of the users immutable home
# - creates a cleanup script (/usr/local/bin/cleanup.sh) that empties the aufs
# layer on login/logout/boot
# - replaces the lightdm config
# - replaces rc.local to run the script
#
@ilude
ilude / !Drone and Gitea Example
Created December 28, 2021 19:17
Drone and Gitea
based on https://dev.to/ruanbekker/self-hosted-cicd-with-gitea-and-drone-ci-200l
@ilude
ilude / !prometheus-01.setup.notes.md
Last active January 22, 2024 08:15
Prometheus/Grafana setup using Joyride and Traefik
@ilude
ilude / export_dashboards.sh
Created September 10, 2021 16:52
Export Grafana Dashboards using the API
#!/bin/bash
set -o errexit
set -o pipefail
# import .env variables
set -o allexport
source .env
set +o allexport
@ilude
ilude / wsl2_powershell_setup.ps1
Last active July 10, 2021 19:49
Windows Subsystem for Linux v2 setup script
# copy and run in an administrator powershell
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ilude/WindowsPowerShell/master/choco_install_development.ps1'))
bash -c "curl -sSL https://gist.githubusercontent.com/ilude/3354dfef63cdb9e24370d5074b7aa11e/raw/wsl_init.sh | bash -s"
@ilude
ilude / !proxmox_k3s_cluster.sh
Last active January 5, 2024 00:09
Proxmox k3s cluster creation scripts
#!/bin/bash
# curl -s https://gist.githubusercontent.com/ilude/457f2ef2e59d2bff8bb88b976464bb91/raw/cluster_create_setup.sh?$(date +%s) > ~/bin/setup_cluster.sh; chmod +x ~/bin/setup_cluster.sh; setup_cluster.sh
echo "begin cluster_create_setup.sh"
export CREATE_TEMPLATE=1 #false
while test $# -gt 0; do
case "$1" in
--template)
export CREATE_TEMPLATE=0 #true