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:
Author Archives: raylech1986it
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”
Optimize Your Vim Statusline
Intro Constantly asking Vim which file you are editing is disruptive to your workflow. Especially after the 20th time of asking..😵💫 Here’s a great way to have Vim always tell you which file you are in; instead of stopping to ask. Vim Options Here are the commands to change and reset the defaults for laststatusContinue reading “Optimize Your Vim Statusline”
Re-direct Output to A File AND the Terminal
How To Create SSH Keys For Authentication
Overview Creating and using SSH keys for authentication requires 3 minimum steps Commands To Run: Demonstration Here’s my YouTube short explaining this process: And here’s a long form video demonstrating this process: TBA Extra Information
How To Capture and Read Network Packets
Main commands from the video:
Relative and Absolutes Paths in Linux
Knowing what Relative and Absolutes Paths are will improve your experience with the Linux bash shell! Latest video explains what said concepts are and how to use them:
Git Range Notation “..”
Here’s how NOT to read the following: “Show me all commits from branch ‘master’ to branch ‘origin/master’ that are reachable” Here’s the CORRECT WAY to read it: “Show me all commits from branch ‘master’ to branch ‘origin/master’ that are UNREACHABLE” That command will tell you what – if any – commits you WOULD merge inContinue reading “Git Range Notation “..””
