Command Summary Bashβs default is to use these Emacs-style commands: Video Demo:
Category Archives: Uncategorized
Supercharge your bash prompt w/ git info
Here’s the source code for the bash function and PS1 variable: Full Demo:
How To Backup Your Git Repository To GitHub
Command Summary List of commands from video demo: Video Demo
Delegated Authentication
How do you know if an application is using Delegated Authentication (AuthN): Simple βοΈ Ask yourself this: WHO am I presenting my login credentials π to? The application itself OR an Identity Service Provider (IdP)? Examples of an IdP: Google, Facebook, Apple, Okta, etc. Another hint itβs Delegated AuthN: Your web browser (User Agent) getsContinue reading “Delegated Authentication”
Clear the Bash Screen FAST π¨π
Tired of typing clear all the time in bash?? Hitting ^L (Control+L) will immediately clear the screen: Even better, you can clear the screen WHILE mid-typing π: Also, here’s a demo I recorded a while ago on ^L:
What is Epoch Time?π€
Epoch time is an absolute Unix time β°scale. It’s the number of seconds since: Thu, Jan 1, 00:00:00 (Midnight), UTC, 1970 The Big Bang π for Unix time if you will π€ Here’s how to get: And now me nerding π€ out.. One – of many – places Epoch timestamps show up is in yourContinue reading “What is Epoch Time?π€”
Write Changes with SUDO Permission in Vim
Have you ever made this mistake… You open a config file with READ permissions, but needed to WRITE changes elevated (with “root” permissions)? Here’s the perfect solution: And here’s my full break down of the command:
What is An API Call
The HTTP Request-Response exchange is at the heart of API calls. Hereβs a quick way to see that in action with the command ‘http’: The http command is provided by the package π¦httpie.
Convert Any Man Page to PDF π
Here’s a quick way to convert any man page into a PDF document for easier viewing, searching, and sharing: After you create the PDF document, use your PDF viewer of choice. I’m using Windows Subsystem for Linux (WSL), so I call Adobe Acrobat directly to open the PDF: But I also created a symbolic linkContinue reading “Convert Any Man Page to PDF π”
Backup Your Git Repository: Lazy Man Method
Intro You don’t need to learn or use Github for “simple” Git repository backups π This method only backs up the repository itself, it is not a valid Disaster Recovery Strategy. If the folder you are backing up to is on the same disk and your original repo, and the disk itself fails…you’re still upContinue reading “Backup Your Git Repository: Lazy Man Method”
