Skip to content

Instantly share code, notes, and snippets.

@donotlb
donotlb / espanso-password-expander.me
Created May 12, 2025 15:06 — forked from lajlev/espanso-password-expander.me
Use Espanso as password expander
## Steps
1. Add password to keychain (Screenshot: https://u.lillefar.dk/q2BI5m)
2. Add snippet to espanso config file (default.yml) where some-password i identical to account name for your keychain.
```
- triggers: [":pass:"]
replace: "{{output}}"
vars:
- name: output
@donotlb
donotlb / simple-hash.js
Created March 20, 2025 11:11 — forked from jlevy/simple-hash.js
Fast and simple insecure string hash for JavaScript
// These hashes are for algorithmic use cases, such as bucketing in hashtables, where security isn't
// needed and 32 or 64 bits is enough (that is, rare collisions are acceptable). These are way simpler
// than sha1 (and all its deps) or similar, and with a short, clean (base 36 alphanumeric) result.
// A simple, *insecure* 32-bit hash that's short, fast, and has no dependencies.
// Output is always 7 characters.
// Loosely based on the Java version; see
// https://stackoverflow.com/questions/6122571/simple-non-secure-hash-function-for-javascript
const simpleHash = str => {
let hash = 0;
@donotlb
donotlb / BalsamiqForever.py
Created March 29, 2022 21:01 — forked from HoussemNasri/BalsamiqForever.py
Extend your trial period for Balsamiq Wireframes on Windows and macOS Forever!
import json
import os
import time
import webbrowser
import sys
import re
def handleWindows(extra_seconds):
print("OS : Windows")