Skip to content

Instantly share code, notes, and snippets.

## Install Choco
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
## Install latest Powershell version
winget install --id Microsoft.Powershell --source winget
# Install all packages from src file, one line = one package
$packages=(Get-Content .\packages.txt)
foreach ($pkg in $packages)
{
chocolateygui
vscode
bitwarden
git
keepassxc
discord
javaruntime
jre8
jdk11
nodejs
@AdamsGH
AdamsGH / deprecation_hammer.py
Created September 14, 2024 10:29
Replace deprecated vars for VTT modules
import os
import sys
deprecations = {
"ActionTemplate": "ActivitiesTemplate",
"ActivatedEffectTemplate": "ActivitiesTemplate",
"EnchantmentField": "EnchantActivity",
"EnchantmentData": "EnchantActivity",
"SummonsField": "SummonActivity",
"SummonsData": "SummonActivity",
@AdamsGH
AdamsGH / awg_config.sh
Created October 20, 2024 16:53
Automated installation and configuration of AmneziaWG for OpenWRT
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Function to print colored output