Skip to content

Instantly share code, notes, and snippets.

View gacallea's full-sized avatar

Andrea C from The App gacallea

View GitHub Profile
@gacallea
gacallea / 0 - chuck.log
Last active January 18, 2024 19:36
chuck-nvim shred idea
[chuck]: (VM) sporking incoming shred: 1 (test1.ck)...
[chuck]: (VM) sporking incoming shred: 2 (test2.ck)...
[chuck]: (VM) replacing shred 1 (test1.ck) with 1 (chant1.ck)...
mi0 97.998859
mi0 97.998859
mi0 97.998859
ut1 77.781746
ra1 82.406889
ut1 77.781746
ra1 82.406889
This is your life.
Do what you love, and do it often.
If you don't like something, change it.
If you don't like your job, quit.
If you don't have enough time, stop watching TV.
If you are looking for the love of your life, stop;
They will be waiting for you when you start doing things you love.
Stop over analyzing, life is simple.
All emotions are beautiful.
When you eat, appreciate every last bite.
#!/bin/bash
if ! which apg 2>&1>/dev/null; then
echo -e "\nYou need 'apg' for this script to do its job\n"
exit 127
fi
if [[ $# == 0 ]]; then
echo "You need to provide how many password(s) you want to generate (and optionally how long hte passwords should be).";
echo "E.g: ./${0##*/} 1 -- this will generate 1 password only with the default length of 16 characters.";
#!/bin/bash
## read the thread that inspired this.
## https://security.stackexchange.com/questions/46883/is-every-hash-format-that-nginx-accepts-for-http-basic-auth-weak-against-brute-f
if [ $# != 3 ]; then
echo -e "\nusage: ${0##*/} username password file\n"
exit 1
fi