notes
reference cards, cheat sheets and how-tos i wrote over the years
programming
- C/C++pthread cleanup, non-blocking sockets, shared libraries, singletons, move semantics
- claude basicsturn your new colleague into your best colleague
- prompting claudea few tips to get the best results, faster
- claude accountswork on the company account, side projects on your own
- Emacs and SLIMEkey bindings for Emacs, SLIME and SLDB, plus swank setup and remote connecting
- giteveryday commands, a typical branch flow, conflicts, meld as diff and merge tool
- PHPtransliteration, cURL upload, POST without cURL, disconnecting the client and carrying on
- Pythondatetime and strftime, merging dicts, uWSGI + nginx + Flask, decorators, virtualenv, SQLAlchemy
- RESTful APIswhat REST is, my take on API design - methods, URLs, parameters, versioning
math & phy
- geometric productone product of vectors instead of two, and the bivector
- multivectorseverything you get by multiplying vectors - and where the cross product, complex numbers and quaternions sit
- rotationstwo mirrors make a rotation, and rotors are quaternions without the mystery
- vector derivativedivergence and curl as the two parts of one product
- without coordinatesderivatives straight from the algebra, and the field of a point charge
- Maxwell's equationsthe four equations as one, and each grade gives one of them back
- spacetime algebratime as a fourth direction, Maxwell's equation as ∇F = J, and Lorentz boosts as rotors
- waveletslifting, four wavelet families, the 2D pyramid and keeping the top N% - a walk through a small TypeScript compression demo
databases & search
- Elasticsearch / OpenSearchdocker setup, indexing, getting, updating, deleting, indices and mappings management, diagnostics
- Elasticsearch / OpenSearch query DSLthe queries i use the most - match, bool, query_string, range, term, exists, filter context…
- Elasticsearch / OpenSearch searchrequest body and URI search, post_filter vs filter, pagination, sorting, source filtering, aggregations
- Kyoto Cabinetbuilding Kyoto Cabinet and Kyoto Tycoon, Kyoto Tycoon's RPC API calls
- MongoDBinstall on Ubuntu with the PHP driver, desktop troubles, using it from PHP
- MySQLerror 1045, the on duplicate key update pitfall, shrinking ibdata1, indexing JSON columns
- PostgreSQLdump and restore, deleting duplicates, resetting sequences, killing stuck queries
- SPARQL, RDQLquery optimization, loading vs insertion, Turtle groupings
servers & admin
- Apachelocal files gotcha, self-signed SSL, HTTPS vhost, .htaccess and mod_rewrite tricks
- AWSEC2 connection checklist, Elastic Beanstalk auth header, Lambda, boto3, Chalice, Python layers
- Bashfile name parts, file test operators, one-liners and shortcuts, lsof, cURL
- Dockerinstall, an nginx + php-fpm + MySQL stack with docker-compose, data volumes, non-root use
- Linuxsendmail, bad blocks, TLP, Ubuntu/GNOME bits, newer Python and node.js on Ubuntu
- securitypassword generators, SSH login with public keys, rsync over SSH
- VimVim basics - modes, commands and configuration
video & PDF
- ffmpegrip DVDs, still image + audio, concatenating, one-liners
- PDFmerge, cut and convert PDFs with GhostScript
- rip an unfinalized DVDlist the tracks with dvd+rw-mediainfo, rip them with dd