Instantly share code, notes, and snippets.
Discover gists
peter-b /PasswordDemo.livecodescript
Last activeJuly 18, 2025 17:28
HMAC-SHA-1 password storage using LiveCode This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
/* Compute a hash-based message authentication code | |
using the SHA-1 hash. This is broken; it should correctly | |
follow RFC 2104. */ | |
private function hmacSha1 pKey, pMessage | |
return sha1digest(pKey & sha1digest(pKey & pMessage)) | |
end hmacSha1 | |
/* Constant time string comparison algorithm. This | |
prevents against timing attacks on the hashed password | |
comparison. */ |
evgenyneu /setup_cursor_ubuntu.md
Last activeJuly 18, 2025 17:19
Install Cursor AI code editor on Ubuntu 24.04 LTS This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
https://duckduckgo.com/?q=tmux+cheat+sheet&atb=v47-1_x&ia=cheatsheet&iax=1 |
dcts /workbench.colorCustomizations.json
CreatedApril 14, 2020 16:51 — forked fromjacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
"workbench.colorCustomizations": { | |
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
"contrastActiveBorder":"", | |
"contrastBorder":"", | |
// Base Colors | |
"focusBorder":"", | |
"foreground":"", | |
"widget.shadow":"", | |
"selection.background":"", | |
"descriptionForeground":"", |
grisha765 /camera_ntfy.py
CreatedJuly 18, 2025 15:03
A script for automatically sending photos from a camera via FTP, created for cameras that send photos to an FTP server. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/usr/bin/env -S uv run --script | |
# /// script | |
# dependencies = ["httpx", "pyftpdlib"] | |
# /// | |
importos | |
importmimetypes | |
importtempfile | |
importlogging | |
logging.basicConfig( |
NewerOlder