"Byte-sized" 😏 snippets of things I learned 🤔
60 TILs 🤓 so far.
- 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
envsubst
command 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
- Using
add_q
in 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 - 2023-02-16
- Target in Docker Compose File - 2024-07-28
- Get rid of persistent volumes in
docker compose down
- 2024-06-23 - Filter list of docker containers - 2023-11-20
- Revert file(s) state to one in diff branch - 2024-07-28
git rev-parse
for parsing Git revision information - 2024-04-18git diff --name-only
for file names only - 2024-04-18git merge-base
for 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
paths
andpaths-ignore
filter 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
- Markdown Alerts - 2024-07-28
- Sending direct message on Mastodon - 2023-02-14
npm ci
(clean install) for CI pipelines - 2024-04-03
- Remove PDF Password - 2023-03-15
- Reduce file size of PDF files - 2023-03-15
- Editable installation for a package - 2024-04-03
- Generate requirements without hashes - 2024-04-03
- Clear cache for resolving dependencies faster - 2023-02-16
- Restore database via template - 2024-06-23
- Dump and Restore database - 2023-07-08
- Run tests that match substring in their name - 2024-04-03
- Autouse fixtures for common test dependencies - 2024-03-28
- Expand home directory paths in
pathlib.Path
- 2024-06-23 - Handle CORS in a Simple HTTP Server - 2024-04-19
- Update dependencies in requirements.txt - 2023-11-18
- Not to use && for conditional rendering - 2023-02-12
- Setup SSH Tunneling - 2023-07-08
- Reading directly from environment variables - 2024-09-20
- 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
- Get blocks in StreamBlock using
blocks_by_name
&first_block_by_name
- 2024-04-25 - Many to Many relationship in Wagtail - 2024-04-25
- Lazily Refer Snippet in blocks - 2024-03-30
- YAML Anchor Tags using
<<:
and*
Syntax - 2024-10-10
This repository is inspired from the following respositories: