https://github.com/curiouslearner/til
Collection of my daily learning
https://github.com/curiouslearner/til
Last synced: 2 months ago
JSON representation
Collection of my daily learning
- Host: GitHub
- URL: https://github.com/curiouslearner/til
- Owner: CuriousLearner
- Created: 2023-02-09T20:52:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T03:23:45.000Z (about 2 years ago)
- Last Synced: 2024-04-13T21:57:48.230Z (about 2 years ago)
- Language: Python
- Size: 54.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TIL (Today I Learned)
"Byte-sized" π snippets of things I learned π€
**97** TILs π€ so far.
## AWS
* [IGW vs. NAT β Understanding Private to Public IP Mapping](https://github.com/CuriousLearner/til/blob/main/aws/igw-vs-nat-gateway.md) - 2025-02-28
* [AWS reserves five IPs per subnet](https://github.com/CuriousLearner/til/blob/main/aws/reserving-five-ips-per-subnet.md) - 2023-02-12
* [No self-signed certificates in Cloudfront's SSL connection](https://github.com/CuriousLearner/til/blob/main/aws/no-self-signed-certificate-cloudfront.md) - 2023-02-12
* [ACM certificate should always be in us-east-1 for Cloudfront](https://github.com/CuriousLearner/til/blob/main/aws/acm-cloudfront.md) - 2023-02-12
## Bash
* [Bash trap with ERR and EXIT for Error Handling](https://github.com/CuriousLearner/til/blob/main/bash/trap-err-exit-status.md) - 2025-09-18
## CLI
* [Creating user accounts with expiration dates](https://github.com/CuriousLearner/til/blob/main/cli/useradd-with-expiration.md) - 2026-01-25
* [Using `getent passwd` to query user accounts](https://github.com/CuriousLearner/til/blob/main/cli/getent-passwd.md) - 2026-01-25
* [Using pkill with -f flag for full command line matching](https://github.com/CuriousLearner/til/blob/main/cli/pkill-with-full-pattern-matching.md) - 2025-09-22
* [`apt-get distclean` for complete package cleanup](https://github.com/CuriousLearner/til/blob/main/cli/apt-get-distclean.md) - 2025-09-12
* [Netcat (`nc`) and Raw TCP Communication](https://github.com/CuriousLearner/til/blob/main/cli/netcat-and-raw-tcp-connection.md) - 2025-03-01
* [Unzip overwrite and place content in a directory](https://github.com/CuriousLearner/til/blob/main/cli/unzip-overwrite-specify-directory.md) - 2025-02-10
* [`envsubst` command for substituting values in config files](https://github.com/CuriousLearner/til/blob/main/cli/envsubst-command-for-config-files.md) - 2024-07-28
* [Pass Arguments From Previous Command](https://github.com/CuriousLearner/til/blob/main/cli/pass-arguments-from-previous-command.md) - 2023-07-19
* [Execute last command with sudo](https://github.com/CuriousLearner/til/blob/main/cli/execute-previous-command-with-sudo.md) - 2023-02-13
## CSS
* [Select by attr in list of values](https://github.com/CuriousLearner/til/blob/main/css/select-by-attr-in-list-of-values.md) - 2024-04-22
## Django
* [Dynamic related_name in Abstract Models](https://github.com/CuriousLearner/til/blob/main/django/dynamic-related-name-abstract-models.md) - 2026-01-07
* [Override Migration Locations with MIGRATION_MODULES in Django](https://github.com/CuriousLearner/til/blob/main/django/migration-modules-setting.md) - 2025-10-08
* [Using EXPLAIN and EXPLAIN ANALYZE for Django QuerySets](https://github.com/CuriousLearner/til/blob/main/django/queryset-explain-analyze.md) - 2025-10-03
* [Random ordering with order_by("?") in Django](https://github.com/CuriousLearner/til/blob/main/django/order-by-random.md) - 2025-10-02
* [Using `_refresh_after_create` in model_bakery](https://github.com/CuriousLearner/til/blob/main/django/model-bakery-refresh-after-create.md) - 2025-09-23
* [Understanding Django ForeignKey Fields](https://github.com/CuriousLearner/til/blob/main/django/foreign-key-attrs.md) - 2025-05-16
* [Managing Schema-less Migrations in Django with `SeparateDatabaseAndState`](https://github.com/CuriousLearner/til/blob/main/django/separate-db-and-state-migration.md) - 2025-05-16
* [Speed Up Django Admin with `list_select_related`](https://github.com/CuriousLearner/til/blob/main/django/admin-list-select-related.md) - 2025-05-16
* [Isolate Redis cache for parallel tests](https://github.com/CuriousLearner/til/blob/main/django/isolate-redis-cache-for-parallel-tests.md) - 2025-02-20
* [Fixing Coverage for Django's `manage.py test --parallel`](https://github.com/CuriousLearner/til/blob/main/django/coverage-on-parallel-tests.md) - 2025-02-20
* [Using `add_q` in Django Queries](https://github.com/CuriousLearner/til/blob/main/django/add-q-in-django-queryset.md) - 2024-06-23
* [Add Multiple Objects In Queryset In Many To Many Relationship](https://github.com/CuriousLearner/til/blob/main/django/set-whole-queryset-in-m2m-relationship.md) - 2024-06-23
* [Generate random secret key](https://github.com/CuriousLearner/til/blob/main/django/generate-random-secrety-key.md) - 2024-06-03
* [Empty database](https://github.com/CuriousLearner/til/blob/main/django/empty-database.md) - 2023-07-08
* [Use `defer()` to limit fields fetched from models](https://github.com/CuriousLearner/til/blob/main/django/defer-fields-for-performance.md) - 2023-02-12
* [Redundant all chaining in queryset](https://github.com/CuriousLearner/til/blob/main/django/redundant-all-in-queryset.md) - 2023-02-12
## Django Extensions
* [Print SQL on ORM queries](https://github.com/CuriousLearner/til/blob/main/django-extensions/print-sql-on-orm-queries.md) - 2025-02-28
## Docker
* [Filter list of docker containers](https://github.com/CuriousLearner/til/blob/main/docker/filter-list-of-containers.md) - 2025-02-28
* [Target in Docker Compose File](https://github.com/CuriousLearner/til/blob/main/docker/target-in-docker-compose.md) - 2024-07-28
* [Get rid of persistent volumes in `docker compose down`](https://github.com/CuriousLearner/til/blob/main/docker/get-rid-of-persistent-volume-docker-compose.md) - 2024-06-23
## Git
* [Show file contents from a specific branch](https://github.com/CuriousLearner/til/blob/main/git/show-file-from-branch.md) - 2025-12-13
* [Remove Files from Git History](https://github.com/CuriousLearner/til/blob/main/git/remove-files-from-git-history.md) - 2025-12-08
* [Git Garbage Collection](https://github.com/CuriousLearner/til/blob/main/git/git-garbage-collection.md) - 2025-12-08
* [Rewrite Git Commit Metadata](https://github.com/CuriousLearner/til/blob/main/git/rewrite-git-commit-metadata.md) - 2025-12-08
* [Stash Selective Changes in Git](https://github.com/CuriousLearner/til/blob/main/git/stash-selective-changes.md) - 2025-02-20
* [Finding Git Commits That Touched a Specific File or String](https://github.com/CuriousLearner/til/blob/main/git/finding-commits-changing-a-file.md) - 2025-02-20
* [Revert file(s) state to one in diff branch](https://github.com/CuriousLearner/til/blob/main/git/revert-files-to-state-in-diff-branch.md) - 2024-07-28
* [`git rev-parse` for parsing Git revision information](https://github.com/CuriousLearner/til/blob/main/git/rev-parse-for-revision-information.md) - 2024-04-18
* [`git diff --name-only` for file names only](https://github.com/CuriousLearner/til/blob/main/git/diff-name-only.md) - 2024-04-18
* [`git merge-base` for common-ancestor commit](https://github.com/CuriousLearner/til/blob/main/git/merge-base-for-common-ancestor-commit.md) - 2024-04-18
* [Ignore commits in git-blame view](https://github.com/CuriousLearner/til/blob/main/git/ignore-commits-in-git-blame.md) - 2023-02-13
## Github
* [Add Funding Information to GitHub Projects](https://github.com/CuriousLearner/til/blob/main/github/add-funding-info.md) - 2025-10-21
* [See git-blame for a file](https://github.com/CuriousLearner/til/blob/main/github/show-git-blame-for-a-file.md) - 2023-02-13
## Github Actions
* [Understanding Permissions in GitHub Actions](https://github.com/CuriousLearner/til/blob/main/github-actions/permissions.md) - 2024-10-10
* [`paths` and `paths-ignore` filter for optimized Workflow run](https://github.com/CuriousLearner/til/blob/main/github-actions/path-filter.md) - 2024-10-10
* [Enable automatic inline annotations in PR using Ruff](https://github.com/CuriousLearner/til/blob/main/github-actions/ruff-github-comments.md) - 2023-02-13
* [Permissions for pushing to a repository](https://github.com/CuriousLearner/til/blob/main/github-actions/push-to-repo.md) - 2023-02-12
## Go
* [Using `go doc` to Read Package Documentation](https://github.com/CuriousLearner/til/blob/main/go/go-doc-command.md) - 2025-11-26
* [Import package without using it via underscore (`_`)](https://github.com/CuriousLearner/til/blob/main/go/import-unused-package.md) - 2024-06-23
* [Build tags in Golang](https://github.com/CuriousLearner/til/blob/main/go/build-tags.md) - 2024-06-23
## Html
* [Server-Sent Events (SSE)](https://github.com/CuriousLearner/til/blob/main/html/server-sent-events.md) - 2026-02-26
* [Subresource Integrity (SRI) Hashes](https://github.com/CuriousLearner/til/blob/main/html/sri-hashes.md) - 2026-01-07
## Make
* [Control `make` Behavior with `MAKEFLAGS`](https://github.com/CuriousLearner/til/blob/main/make/default-options-as-makeflags.md) - 2025-02-20
* [Improve `make` Output Readability with `--output-sync` for Parallel Jobs](https://github.com/CuriousLearner/til/blob/main/make/sync-output-for-parallel-jobs.md) - 2025-02-20
* [Speed Up Builds with `make -j` and Auto-Detect CPU Cores](https://github.com/CuriousLearner/til/blob/main/make/parallel-jobs.md) - 2025-02-20
## Markdown
* [Markdown Alerts](https://github.com/CuriousLearner/til/blob/main/markdown/markdown-alerts.md) - 2024-07-28
## Mastodon
* [Sending direct message on Mastodon](https://github.com/CuriousLearner/til/blob/main/mastodon/send-direct-message.md) - 2023-02-14
## NPM
* [`npm ci` (clean install) for CI pipelines](https://github.com/CuriousLearner/til/blob/main/npm/clean-install-for-ci-pipelines.md) - 2025-02-28
## PDF
* [Reduce file size of PDF files](https://github.com/CuriousLearner/til/blob/main/pdf/compress-pdf.md) - 2023-03-15
* [Remove PDF Password](https://github.com/CuriousLearner/til/blob/main/pdf/remove-pdf-password.md) - 2023-03-15
## Poetry
* [Editable installation for a package](https://github.com/CuriousLearner/til/blob/main/poetry/editable-installation-for-package.md) - 2025-02-28
* [Generate requirements without hashes](https://github.com/CuriousLearner/til/blob/main/poetry/generate-requirements-without-hashes.md) - 2025-02-28
* [Clear cache for resolving dependencies faster](https://github.com/CuriousLearner/til/blob/main/poetry/clear-cache-for-resolving-dependencies-faster.md) - 2023-02-16
## PSQL
* [Partial Index](https://github.com/CuriousLearner/til/blob/main/psql/partial-index.md) - 2026-02-26
* [VACUUM ANALYZE in PostgreSQL](https://github.com/CuriousLearner/til/blob/main/psql/vacuum-analyze.md) - 2025-10-03
* [Restore database via template](https://github.com/CuriousLearner/til/blob/main/psql/restore-via-template.md) - 2024-06-23
* [Dump and Restore database](https://github.com/CuriousLearner/til/blob/main/psql/dump-and-restore.md) - 2023-07-08
## Pytest
* [Understanding pytest pythonpath and import-mode configuration](https://github.com/CuriousLearner/til/blob/main/pytest/pythonpath-import-mode-configuration.md) - 2025-09-18
* [`caplog` vs `syslog` in pytest β Whatβs the Difference?](https://github.com/CuriousLearner/til/blob/main/pytest/caplog-vs-syslog.md) - 2025-05-16
* [Run only failed tests and stop at first failure in pytest](https://github.com/CuriousLearner/til/blob/main/pytest/run-failed-test-and-exit-at-first-failure.md) - 2025-03-04
* [Autouse fixtures for common test dependencies](https://github.com/CuriousLearner/til/blob/main/pytest/fixture-autouse.md) - 2025-02-28
* [Run tests that match substring in their name](https://github.com/CuriousLearner/til/blob/main/pytest/run-filtered-tests-by-substring.md) - 2025-02-28
## Python
* [`timedelta.total_seconds()` vs `timedelta.seconds` β A Critical Difference](https://github.com/CuriousLearner/til/blob/main/python/timedelta-total-seconds-vs-seconds.md) - 2025-11-26
* [Handle CORS in a Simple HTTP Server](https://github.com/CuriousLearner/til/blob/main/python/handle-cors-simple-http-server.md) - 2025-02-28
* [Update dependencies in requirements.txt](https://github.com/CuriousLearner/til/blob/main/python/update-dependencies-in-requirements.md) - 2025-02-28
* [Expand home directory paths in `pathlib.Path`](https://github.com/CuriousLearner/til/blob/main/python/pathlib-path-expand-user.md) - 2024-06-23
## React
* [Not to use && for conditional rendering](https://github.com/CuriousLearner/til/blob/main/react/conditional-rendering.md) - 2023-02-12
## SSH
* [Setup SSH Tunneling](https://github.com/CuriousLearner/til/blob/main/ssh/setup-ssh-tunneling.md) - 2023-07-08
## Terraform
* [Reading directly from environment variables](https://github.com/CuriousLearner/til/blob/main/terraform/get-environment-variables.md) - 2025-02-28
* [Zip Lambda code](https://github.com/CuriousLearner/til/blob/main/terraform/zip-lambda-code.md) - 2024-09-06
* [Lifecycle Ignore changes](https://github.com/CuriousLearner/til/blob/main/terraform/lifecycle-ignore-changes.md) - 2024-07-03
## Terragrunt
* [Force unlock state file](https://github.com/CuriousLearner/til/blob/main/terragrunt/force-unlock-state.md) - 2024-09-06
## VIM
* [Open a file on a particular line](https://github.com/CuriousLearner/til/blob/main/vim/open-file-on-line.md) - 2023-02-13
* [Indent and De-indent lines in Vim.](https://github.com/CuriousLearner/til/blob/main/vim/indent-deindent-line.md) - 2023-02-13
* [Open file on a particular pattern in file](https://github.com/CuriousLearner/til/blob/main/vim/open-file-on-pattern.md) - 2023-02-13
* [Use text objects to make efficient changes](https://github.com/CuriousLearner/til/blob/main/vim/text-objects-to-make-efficient-changes.md) - 2023-02-13
* [Remove lines matching a pattern](https://github.com/CuriousLearner/til/blob/main/vim/remove-lines-matching-pattern.md) - 2023-02-13
## VLC
* [Cast video to chromecast](https://github.com/CuriousLearner/til/blob/main/vlc/cast-video-to-chromecast.md) - 2023-02-13
## Wagtail
* [Lazily Refer Snippet in blocks](https://github.com/CuriousLearner/til/blob/main/wagtail/lazily-refer-snippet.md) - 2025-02-28
* [Get blocks in StreamBlock using `blocks_by_name` & `first_block_by_name`](https://github.com/CuriousLearner/til/blob/main/wagtail/get-blocks-in-streamblock.md) - 2024-04-25
* [Many to Many relationship in Wagtail](https://github.com/CuriousLearner/til/blob/main/wagtail/many-to-many-relationship.md) - 2024-04-25
## Yml
* [YAML Anchor Tags using `<<:` and `*` Syntax](https://github.com/CuriousLearner/til/blob/main/yml/anchor-tags.md) - 2024-10-10
* * * * *
### Resources
This repository is inspired from the following respositories:
- [Lacey Williams Henschel's TIL](https://github.com/williln/til)
- [Simon Willison's TIL](https://github.com/simonw/til)