Skip to content

Instantly share code, notes, and snippets.

@hyperreal64
hyperreal64 / installFedoraWSL.ps1
Created April 25, 2022 02:33
PowerShell script that installs a Fedora WSL instance
Param (
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$wslName,
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$fedoraRelVer,
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$installationPath,
[Parameter(Mandatory = $True)][ValidateNotNull()][string]$username
)
# Check if required commands/programs are installed
if (-Not (Get-Command 7z.exe 2>$null)) {
Write-Output "💥 Cannot find 7z.exe. Please install 7zip first."
@hyperreal64
hyperreal64 / proton2bw.py
Last active August 25, 2023 22:07
The Python script I used to import my ProtonPass data into Bitwarden
#!/usr/bin/env python3
import json
import subprocess
PROTON_DATA_FILE = "/path/to/Proton Pass/data.json"
bw_get_template_item = subprocess.run(
["bw", "get", "template", "item"], text=True, capture_output=True
).stdout

aspe:keyoxide.org:CSF5TMKF3BDAX4A25H3MV2QKKQ