Month: December 2020

Random Strings and Password Generator

Python 3: secrets module string module secrets module See: Random Strings for Bash For macOS, add env LC_ALL=C to avoid error: tr: Illegal byte sequence Example Strong Password with tr and /dev/urandom For macOS, add env LC_ALL=C to avoid error: tr: Illegal byte sequence Also see:

WordPress Backup Scripts Assume wordpress directory set up in /var/www/<domain>/wordpress format Assume wordpress directory is under /home/$USER/<domain> for shared hosting like DreamHost.

Git Cheat Sheet & Visual

git diff –  changes in working directory. git diff –cached – changes in staging area. git diff HEAD – changes in working directory and staging area. Also See

Kernel Coding Style

The following sections from kernel coding style can be applied to almost all programming languages. 6) Functions Functions should be short and sweet, and do just one thing. They shouldfit on one or two screenfuls of text (the ISO/ANSI screen size is 80×24,as we all know), and do one thing and do that well. The …

Kernel Coding Style Read More »

Windows 10: Dev Tools

Windows Subsystem for Linux (WSL) Visual Studio Code with WSL winget – discover, install, upgrade, remove and configure applications on Windows 10 Windows Terminal PowerShell Oh my Posh – theme engine for PowerShell PowerToys See:

Perl: Generate Random Value

Using perl -e Using debugger as REPL with perl -de x (x can be anything) See: Also see

Perl Programming Language: Intro

Perl Intro Basic syntax overview Perl variable types Variable scoping Conditional and looping constructs Builtin operators and functions Files and I/O Regular expressions Writing subroutines OO Perl and Using Perl modules