TIL
Today I Learned
Things I Learned today, found on Simon’s Blog, and repo can be found here: Repo
178 TILs so far.
Recently Added/Updated TILs
- View Git Commit Changes
- Check Python Version Programmatically
- CMake Parallel Build with All Cores
- Ansible Disable Python Interpreter Warnings
- Linux
Categories
- Linux
- Ansible
- Caddy
- Cheatsheets
- Docker
- Git
- Github
- Go
- Learning Resources
- Miscellaneous
- Python
- ReactJS
- Vagrant
- VSCode
- WSL
Linux
- Add Swap Space To System
- Add User To System
- Beautify Logs
- Benchmark System
- Ccze Scrolling Output
- Change Default Shell
- Change Hostname Of A system
- Changing User Password In Shell Script
- Check Group Of A User
- Check If A Package Is Installed Or Not
- Check If A Port Is In Use
- Check If A User Exists
- Check Open Port
- CMake Parallel Build with All Cores
- Create Symbolic Links
- Determine Which Process Is Using a File
- Enable SSH Server
- Fix Permission For Newly Created Partitions
- Fix Windows And Linux Different Time Issue
- Get Arch Of System
- Increase Limit of Inotify Watchers
- Install Latest NodeJS In Linux
- Install Pavucontrol
- Install Postman
- Kill A Process In Linux
- Mount Partition On System Startup
- OpenVPN Server
- Ping over TCP
- Pipe Password to Sudo
- Remove PPA From System
- Remove User Password
- Root Check in Scripts
- Run Go Binaries Without Installing Go
- Set Different Time Zone
- Show Disk Usage By Directories
- Show Public IP
- Show Size of Current Directory
- System Ugprade
- Tar Exclude Directories
- Tar Retain File Permissions
Alpine Linux
- Adding User On Alpine
- Chaning Timezone On Alpine
- Installing Ansible On Alpine
- Installing Dig On Alpine
- Installing Pip On Alpine
- Installing Python2 On Alpine
Apt
Arch Linux
Bash
- Bash List Only Directories
- BashTOP Resource Monitor
- Case Statements
- Concatenate Strings
- Custom Shell Prompt
- Length of String in Variable
- Test Regular Expression Against A String
- Pass Arguments while Piping
- Read Command Output In Reverse Order
- “set -e” In Scripts
- Set MacOS Like Terminal Font
- Set Unlimited Bash History
- Shell Formatter
- Yes
Curl
Fedora
GPG
- Fix “Inappropriate ioctl for device” Error
- GPG Import Keys
- GPG Test
- GPG Trust Key
- GPG Verify Signature
Grep
- Grep Case Insensitive Search
- Grep Count Occurance
- Grep Exact Match
- Grep Invert Search
- Grep On Continous Stream
- Grep Quiet Mode
- Grep Search For Multiple Strings
- Remove Empty Lines
Journalctl
Networking
Raspberry Pi
SSH
Systemd
Tcpdump
Ubuntu Linux
- Get Clipboard History
- Install HMAC256 On Ubuntu
- Obtaining a List of Ubuntu Repository Mirror Servers
Wget
Ansible
- Add Authorized SSH Key to User using Ansible
- Ansible Add User to System
- Ansible Configure Default Inventory File
- Ansible Disable Python Interpreter Warnings
- Ansible Pause Playbook Execution
- Ansible Test Connection
- Run Ansible Playbook Locally
- Setting a Password in Ansible Inventory File
Caddy Server
Cheatsheets
- Bash Cheatsheet
- Grep Cheatsheet
- Markdown Cheatsheet
- MongoDB Cheatsheet
- Networking Cheatsheet
- Python Cheatsheet
- ReactJS Cheatsheet
- Regex Cheatsheet
Docker
- Docker Build Multiple Tags At Once
- Docker Exec
- Docker Publish Port
- Docker Run Without Cache
- Docker Run
- Install Docker
- Install Ping in Docker
- Pass Build Time Arguments To Docker Build
- Remove Container When It Exits
- Remove Unused Data
- Run Docker without root
- Setup Docker Buildx For Multi Arch Builds
Git
- Change Last Commit Message
- Delete Tag
- Get Tag Names in Git
- Show Commit Only From One Author
- View Git Commit Changes
GitHub
GitHub Actions
Go
- List All Possible GOOS And GOARCH
- Print Go Version
- Resolve Hostname To IP Address
- Trim Whitespaces From String
- Update Project Libraries To Latest
Learning Resources
Miscellaneous
Python
- Add An Item To Dictionary
- Check If A Key Exists In Dictionary
- Check If a String is Empty
- Check Image Size
- Check Python Version Programmatically
- Convert List To Tuple
- Execute Python Code in Command Shell
- Formatted Strings
- Get IP Address From Hostname
- Limit Floating Point To Two Decimal Places
- Measure Latency Using TCP
- Pass List as Argument to a Function
- Print Tabular Data
- Python Padding Strings
- Read A File Line By Line
- Remove A File
- Remove Trailing Spaces And New Lines From A String
- Run Python Script in Background
- Split String with Delimiter
- Validate IP Address