Skip to content

Instantly share code, notes, and snippets.

@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",
chocolateygui
vscode
bitwarden
git
keepassxc
discord
javaruntime
jre8
jdk11
nodejs
## 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)
{