"Byte-sized" 😏 snippets of things I learned 🤔
78 TILs 🤓 so far.
- IGW vs. NAT – Understanding Private to Public IP Mapping - 2025-02-28
- AWS reserves five IPs per subnet - 2023-02-12
- No self-signed certificates in Cloudfront's SSL connection - 2023-02-12
- ACM certificate should always be in us-east-1 for Cloudfront - 2023-02-12
- Bash trap with ERR and EXIT for Error Handling - 2025-09-18
apt-get distcleanfor complete package cleanup - 2025-09-12- Netcat (
nc) and Raw TCP Communication - 2025-03-01 - Unzip overwrite and place content in a directory - 2025-02-10
envsubstcommand for substituting values in config files - 2024-07-28- Pass Arguments From Previous Command - 2023-07-19
- Execute last command with sudo - 2023-02-13
- Select by attr in list of values - 2024-04-22
- Managing Schema-less Migrations in Django with
SeparateDatabaseAndState- 2025-05-16 - Speed Up Django Admin with
list_select_related- 2025-05-16 - Understanding Django ForeignKey Fields - 2025-05-16
- Isolate Redis cache for parallel tests - 2025-02-20
- Fixing Coverage for Django's
manage.py test --parallel- 2025-02-20 - Using
add_qin Django Queries - 2024-06-23 - Add Multiple Objects In Queryset In Many To Many Relationship - 2024-06-23
- Generate random secret key - 2024-06-03
- Empty database - 2023-07-08
- Use
defer()to limit fields fetched from models - 2023-02-12 - Redundant all chaining in queryset - 2023-02-12
- Print SQL on ORM queries - 2025-02-28
- Filter list of docker containers - 2025-02-28
- Target in Docker Compose File - 2024-07-28
- Get rid of persistent volumes in
docker compose down- 2024-06-23
- Stash Selective Changes in Git - 2025-02-20
- Finding Git Commits That Touched a Specific File or String - 2025-02-20
- Revert file(s) state to one in diff branch - 2024-07-28
git rev-parsefor parsing Git revision information - 2024-04-18git diff --name-onlyfor file names only - 2024-04-18git merge-basefor common-ancestor commit - 2024-04-18- Ignore commits in git-blame view - 2023-02-13
- See git-blame for a file - 2023-02-13
- Understanding Permissions in GitHub Actions - 2024-10-10
pathsandpaths-ignorefilter for optimized Workflow run - 2024-10-10- Enable automatic inline annotations in PR using Ruff - 2023-02-13
- Permissions for pushing to a repository - 2023-02-12
- Import package without using it via underscore (
_) - 2024-06-23 - Build tags in Golang - 2024-06-23
- Control
makeBehavior withMAKEFLAGS- 2025-02-20 - Improve
makeOutput Readability with--output-syncfor Parallel Jobs - 2025-02-20 - Speed Up Builds with
make -jand Auto-Detect CPU Cores - 2025-02-20
- Markdown Alerts - 2024-07-28
- Sending direct message on Mastodon - 2023-02-14
npm ci(clean install) for CI pipelines - 2025-02-28
- Reduce file size of PDF files - 2023-03-15
- Remove PDF Password - 2023-03-15
- Editable installation for a package - 2025-02-28
- Generate requirements without hashes - 2025-02-28
- Clear cache for resolving dependencies faster - 2023-02-16
- Restore database via template - 2024-06-23
- Dump and Restore database - 2023-07-08
- Understanding pytest pythonpath and import-mode configuration - 2025-09-18
caplogvssyslogin pytest – What’s the Difference? - 2025-05-16- Run only failed tests and stop at first failure in pytest - 2025-03-04
- Run tests that match substring in their name - 2025-02-28
- Autouse fixtures for common test dependencies - 2025-02-28
- Update dependencies in requirements.txt - 2025-02-28
- Handle CORS in a Simple HTTP Server - 2025-02-28
- Expand home directory paths in
pathlib.Path- 2024-06-23
- Not to use && for conditional rendering - 2023-02-12
- Setup SSH Tunneling - 2023-07-08
- Reading directly from environment variables - 2025-02-28
- Zip Lambda code - 2024-09-06
- Lifecycle Ignore changes - 2024-07-03
- Force unlock state file - 2024-09-06
- Open a file on a particular line - 2023-02-13
- Indent and De-indent lines in Vim. - 2023-02-13
- Open file on a particular pattern in file - 2023-02-13
- Use text objects to make efficient changes - 2023-02-13
- Remove lines matching a pattern - 2023-02-13
- Cast video to chromecast - 2023-02-13
- Lazily Refer Snippet in blocks - 2025-02-28
- Get blocks in StreamBlock using
blocks_by_name&first_block_by_name- 2024-04-25 - Many to Many relationship in Wagtail - 2024-04-25
- YAML Anchor Tags using
<<:and*Syntax - 2024-10-10
This repository is inspired from the following respositories: