Skip to content

Instantly share code, notes, and snippets.

@Workster
Workster / pw.sh
Created May 25, 2024 20:57 — forked from Jach/pw.sh
Random password generator, remember a passphrase + unique key (such as sitename)
#!/bin/sh
# Prints out (highly likely at least) 64 random characters, along with some truncations for common password length limits.
# Shows random characters in the printable set as well as just alpha-numeric.
# get rid of -s flag if you want to see what you type
# (possible enhancement for people who typo a lot: read into $p2 as well and only proceed if the entries are equal.)
read -s p
hash=`echo -n $p | sha256sum | sed -e 's/-//' | sed -e 's/ //'`
hash=`python -c "import random, sys, struct; random.seed(0x$hash); bits=[random.getrandbits(64) for i in range(200)]; sys.stdout.write(struct.pack('Q'*len(bits), *bits)); print"`
hash2=`echo $hash | tr -cd "[:graph:]" | head -c ${1:-64}`
@Workster
Workster / output.json
Created June 17, 2022 18:39 — forked from jeffgca/output.json
Get 10k extensions from the chrome web store.
[
"https://chrome.google.com/webstore/detail/ballloon-for-chrome/kbmligehjhghebleanjcmenomghmcohn",
"https://chrome.google.com/webstore/detail/shine-for-reddit/acoiihnnfofnpbnofdcgcapbjlcopifa",
"https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk",
"https://chrome.google.com/webstore/detail/highly-highlighter/hjpahjhcglfdopbholajmhpamgblhjhg",
"https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn",
"https://chrome.google.com/webstore/detail/sms-from-gmail-facebook-m/iffdacemhfpnchinokehhnppllonacfj",
"https://chrome.google.com/webstore/detail/wot-web-of-trust-website/bhmmomiinigofkjcapegjjndpbikblnp",
"https://chrome.google.com/webstore/detail/mega/bigefpfhnfcobdlfbedofhhaibnlghod",
"https://chrome.google.com/webstore/detail/time-is-money/ooppbnomdcjmoepangldchpmjhkeendl",
Hashtag helper does not store user credentials.
We may analyse the app usage anonymously to improve the user experience and add better features.