til
Things I’ve learned, collected in
fabge/til
.
aws
Assume a role across AWS accounts
AWS SigV4 using
curl
CloudFormation default values
CloudTrail
Access AWS resources from Azure without credentials
DynamoDB Global Secondary Indexes
DynamoDB table scan
Display EC2 instance costs per month
Lambda logging
Pagination using AWS boto3
Reference AWS account
Have pretty URLs when using S3 and CloudFront
Search CloudWatch logs
Step Function Monitoring
azure
Azure functions
az login
Azure portal tenant url
Find Azure Tenant Id by Subscription Id
Set up Databricks via Bicep
Databricks authentication with Azure
Enterprise application
Find permissions in RBAC roles easily
Entra ID
Invoke the Azure API via HTTP endpoints
azure-devops
Change workingDirectory for AWSShellScript
Contribute from a pipeline
Remove Azure DevOps Retention Leases
bash
Modern PATH environment variable
Bash snippets
Run bash script in specific directory
Do some action when changing directory (cd)
Escaping strings in Bash using
!:q
nvim
Replace variables
set -euo pipefail
Tmux
Vim
browser
Make a website fully editable with document.designMode
Take screenshots right from the browser
cloudflare
ERR_TOO_MANY_REDIRECTS
css
Border around every element using CSS selector
How to center
django
Django admin
Django apps
Django forms
Django general
Django models
Django queries
Safely Pass Data to JavaScript in a Django Template
Django tests
Django urls
Django User
git
Write proper commit messages
Using Multiple SSH Keys
safer alternative to git push –force
fatal: Need to specify how to reconcile divergent branches
Reference commits using the commit message
Rename branch
Revert commit
Squash/rebase commits
github
Commit a file if it changed
Debug GitHub Actions
Download latest release
Skip CI
html
full height
Non-breaking space
htmx
Loading button
img
Shrink/reduce/compress image sizes
javascript
Run async function on top level
Deno Jupyter
Subsetting/slicing lists
Print current year
Pythonic Javascript
json
Pretty-print JSON blobs
linux
Get sizes of folder in current directory
llm
Pipe code and let explain
Prompt engineering
Summarize websites
macos
MacOS shortcuts
misc
Comments
Database Fields
Exceptions
Greppability
Idempotence
loops and variable names
XY Problem
pytest
How to cheat at unit tests
python
Align string output with f-strings
async
Datetime formats
Python debugger
defaultdict
Functions
Generators
Jupyter notebook commands
Using
lambda
Python miscellanea
Modules and Packages
Monkey Patching
nbdev
Pandas
Parallel HTTP requests in Python
pdb interact command
pip install while developing
Useful regex patterns
Using
repr
uv - single file scripts
Scope of variables
Virtual environment setup
Walrus Operator
sqlite
Setup
ssh
Setup SSH keys via ssh-copy-id
terraform
Loop files
ubuntu
Linux file system
vscode
VS Code shortcuts
VS Code workspace settings
zsh
zsh goodies