tools
This is where I'll be moving the tools from tools.alanwsmith.com
Base64
To Base64
From Base64
Dedupe Lines
Encryption
These are the tools I use to obfuscate files on the site to make it harder for bots to slurp up my content. They are not designed for authentication/authorization. They are not secure.
Encryptor CLI
~/workshop/al9000.com/content/tools/encryption/apps/cli-encryptor/release/aarch64-apple-darwin/encryptorUsage:
encryptor INPUT_PATH OUTPUT_PATHWASM Decryptor
Text File
;
;Single Video File
;
;Split Video File
;
const videos = ;
;HTML Escaper
KSUID
Lines to Line Items
Post ID
Ratio Converter
Formula for Width:
STARTING_WIDTH * OUTPUT_HEIGHT / STARTING_HEIGHT
Formula for Height: STARTING_HEIGHT * OUTPUT_WIDTH / STARTING_WIDTH
sed
The latest sed command I'm using:
#!/bin/bash
DIR=/workshop/al9000.com/content/tools
|
# Reminder: -E is for extended RegEx
# Reminder: -i is for editing the file in place