Skip to content

Instantly share code, notes, and snippets.

@jaminmc
jaminmc / install_openwrt_proxmox.sh
Last active February 26, 2025 03:54
Install OpenWrt in a Container on Proxmox 8+!
#!/bin/bash
# Script to create an OpenWrt LXC container in Proxmox
# Downloads from openwrt.org with latest stable or snapshot version, detects bridges/devices, IDs, configures network, sets optional password
# Pre-configures WAN/LAN in UCI, includes summary and confirmation, optional LuCI install for snapshots with apk
# Default resource values
DEFAULT_MEMORY="256" # MB
DEFAULT_CORES="2" # CPU cores
DEFAULT_STORAGE="0.5" # GB
@jaminmc
jaminmc / install-chromedriver-for-brave.sh
Last active March 7, 2024 19:18
Install chromedriver that matches Brave-Browser on Linux!
#!/bin/bash
# Create a temporary directory for downloads
temp_dir=$(mktemp -d)
trap "rm -rf $temp_dir" EXIT
brave_path="$(command -v brave-browser)"
brave_path="$(readlink -f "$brave_path")"
brave_path="$(dirname "$brave_path")/brave"
@jaminmc
jaminmc / gist:2591d2c7a9aaa2ef82c70c9979ed5a33
Created August 4, 2023 19:04
Debian 12 with XFCE4 GUI on Proxmox Container xRDP with sound!
See Comment