Programming and reading.

  • 0 Posts
  • 6 Comments
Joined 3 years ago
cake
Cake day: June 26th, 2023

help-circle
  • For 2FA: Find a good password manager. They can also handle TOTP (the algorithm most 2FA implementations use), so you just autofill user & password, then autofill the TOTP, done. I use KeePassXC + sync the DB, but there are plenty of other trustworthy password managers. Plus, if you get in the habit of generating secure passwords using the password manager, one leaked login doesn’t cost you all of them.




  • If the filename has a space, a good solution without adjusting the files is to use quotes: "$FILENAME-synced.mkv"

    Edit: generally, as a good practice, quote all variables. If you had FILENAME="my file"and tried to use it asffprobe $FILENAMEit wouldn't work, because variables are evaluated *before* interpreting the command, so effectively it evaluates toffprobe my file(two arguments).ffprobe "$FILENAME"on the other hand evaluates toffprobe “my file”` (onr argument) and works properly no matter the file name.