This script checks a password is registered or not in Pwned Password. To keep secret on http request, the password will be encrypted with SHA1 hash.
haveibeenpwned.bat| PS C:\WINDOWS\system32> powercfg /QA | |
| 電源設定の GUID: 9897998c-92de-4669-853f-b7cd3ecb2790 (AMD Ryzen™ Balanced) | |
| サブグループの GUID: 0012ee47-9041-4b5d-9b77-535fba8b1442 (ハード ディスク) | |
| GUID エイリアス: SUB_DISK | |
| 電源設定の GUID: 6738e2c4-e8a5-4a42-b16a-e040e769756e (次の時間が経過後ハード ディスクの電源を切る) | |
| GUID エイリアス: DISKIDLE | |
| 利用可能な設定の最小値: 0x00000000 | |
| 利用可能な設定の最大値: 0xffffffff | |
| 利用可能な設定の増分: 0x00000001 | |
| 利用可能な設定の単位: 秒 |
| # Get-RecycleBinFiles | |
| # Copyright (c) 2025 Koichi OKADA. All right reserved. | |
| # This script is distributed under the MIT license. | |
| $ssfBITBUCKET = 10 | |
| $Shell = New-Object -ComObject Shell.Application | |
| $RecycleBinFolder = $Shell.NameSpace($ssfBITBUCKET) | |
| if ($RecycleBinFolder -eq $null) { | |
| Write-Host "Failed to open RecycleBin." |
| # FootSwitch.py for Raspberry Pi Pico with CircuitPython | |
| # Copyright 2024 (c) Koichi OKADA. All right reserved. | |
| # This script is distributed under the MIT license. | |
| import usb_hid | |
| from adafruit_hid.keyboard import Keyboard | |
| from adafruit_hid.keycode import Keycode | |
| import time | |
| import board | |
| import digitalio |
| #!/usr/bin/gawk -f | |
| BEGIN { | |
| bad_sector = non_split = non_trimmed = finished = non_tried = 0; | |
| } | |
| $3 == "-" {bad_sector += strtonum($2);} | |
| $3 == "/" {non_split += strtonum($2);} | |
| $3 == "*" {non_trimmed += strtonum($2);} | |
| $3 == "+" {finished += strtonum($2);} | |
| $3 == "?" {non_tried += strtonum($2);} |
| @ECHO OFF | |
| SETLOCAL | |
| REM Check the permission | |
| openfiles >NUL 2>&1 | |
| IF %ERRORLEVEL% == 0 GOTO ;MAIN | |
| REM Elevate with UAC | |
| powershell -C start-process %0 -verb runas | |
| GOTO :EOF |
| #!/usr/bin/env bash | |
| function usage () | |
| { | |
| cat <<-EOD | |
| Usage: ${0##*/} [options] <pdffile>... | |
| Drop password from PDF file. | |
| Output: | |
| \${@%.*}_nopw.pdf | |
| Environment variables: |