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