TIL
Today I Learned
Things I Learned today, found on Simon’s Blog, and repo can be found here: Repo
155 TILs so far.
Recently Added/Updated TILs
- Determine Which Process Is Using a File
- Test Regular Expression Against A String
- Ccze Scrolling Output
- Change Default Shell
- GPG Import Keys
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 If A Package Is Installed Or Not
- Check If A Port Is In Use
- Check If A User Exists
- Check Open Port
- 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
Back To Top
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
Back To Top
Apt
Back To Top
Arch Linux
Back To Top
BASH
- 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
- Shell Formatter
- Yes
Back To Top
Curl
Back To Top
GPG
- Fix “Inappropriate ioctl for device” Error
- GPG Import Keys
- GPG Test
- GPG Trust Key
- GPG Verify Signature
Back To Top
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
Back To Top
Networking
Back To Top
SSH
Back To Top
Systemd
Back To Top
Tcpdump
Back To Top
Ubuntu Linux
Back To Top
Wget
Back To Top
Ansible
Back To Top
Caddy Server
Back To Top
Cheatsheets
- Bash Cheatsheet
- Grep Cheatsheet
- Markdown Cheatsheet
- MongoDB Cheatsheet
- Networking Cheatsheet
- Python Cheatsheet
- ReactJS Cheatsheet
- Regex Cheatsheet
Back To Top
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
Back To Top
Git
Back To Top
GitHub
GitHub Actions
Back To Top
Go
- List All Possible GOOS And GOARCH
- Print Go Version
- Resolve Hostname To IP Address
- Trim Whitespaces From String
- Update Project Libraries To Latest
Back To Top
Learning Resources
Back To Top
Miscellaneous
Back To Top
Python
- Add An Item To Dictionary
- Check If A Key Exists In Dictionary
- Check If a String is Empty
- Check Image Size
- 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