Skip to content

Instantly share code, notes, and snippets.

@csev1755
csev1755 / wyzecamv2_openipc_notes.md
Last active March 21, 2024 14:52
Notes on Wyze Cam v2 for OpenIPC

Installation

SoC: Ingenic T20 - OpenIPC (NOR 16M, Ultimate, Wireless only, SD card slot)

After installation, run:

fw_setenv wlandev rtl8189ftv-t20-wyze-v2

Auto nightmode

@csev1755
csev1755 / get-win10licensekey.ps1
Last active January 24, 2022 16:17
Get Windows 10 license key and output info to a file
$servicetag = Read-Host "Enter Service Tag"
$filename = "$servicetag-KEY.txt"
Get-Date | Out-File -FilePath $filename -append
(Get-WmiObject -class Win32_OperatingSystem).Caption | Out-File -FilePath $filename -append
wmic path SoftwareLicensingService get OA3xOriginalProductKey | Out-File -FilePath $filename -append
@csev1755
csev1755 / confirm-userinput.ps1
Last active December 19, 2023 23:21
Let user confirm input in PowerShell script
function Confirm-UserInput {
param ($prompt)
# Get input
$answer = Read-Host $prompt
while ($True) {
# Prompt for confirmation
$choice = Read-Host "Entered: $answer`nContinue? (y/n)"
@csev1755
csev1755 / get-choice.ps1
Created November 29, 2021 15:30
Let user skip certain parts of script in PowerShell
function Get-Choice {
param ($question)
while ($True) {
$choice = Read-Host ($question + " (y/n)")
if ($choice.ToLower() -eq "y") {return $True}
elseif ($choice.ToLower() -eq "n") {break}
else {continue}
}
}
@csev1755
csev1755 / quickargparse.py
Last active December 1, 2021 19:26
Quick and basic argument parsing in Python
import argparse
parser = argparse.ArgumentParser()
# List of desired argument names
argnames = [
'argument1',
'argument2',
'argument3'
]