"Byte-sized" 😏 snippets of things I learned 🤔
41 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
- 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
- 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
- Filter list of docker containers - 2023-11-20
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
- Enable automatic inline annotations in PR using Ruff - 2023-02-13
- Permissions for pushing to a repository - 2023-02-12
- 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
- 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
- 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
- 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
This repository is inspired from the following respositories: