Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kahnwong
kahnwong / windows-setup-jdk8.bat
Last active February 27, 2023 12:26
windows-setup-jdk8
@echo off
SET DIR=%~dp0%
::download install.ps1
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "((new-object net.webclient).DownloadFile('https://community.chocolatey.org/install.ps1','%DIR%install.ps1'))"
::run installer
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*"
choco install temurin8 -y
@kahnwong
kahnwong / aegis_to_tokenvault.py
Created November 26, 2021 07:38
aegis_to_tokenvault.py
import json
import os, glob
filename = glob.glob("*plain*.json")[0]
with open(filename, "r") as f:
d = json.loads(f.read())
data = d["db"]["entries"]
out = []