paskvilwiki

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
  • webmultiple submit buttons, stacking floats, file upload forms, IE width fix, filling the remaining space

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
  • waveletsinteger Haar wavelets in Python, 1D and 2D, with lists and numpy

databases & search

  • Elasticsearchsetup, indexing, getting, updating, deleting, indices and mappings management, diagnostics
  • Elasticsearch query DSLthe queries and filters i use the most - match, bool, query_string, range, term, exists…
  • Elasticsearch searchrequest body and URI search, filters vs facets, pagination, sorting, fields, facets
  • 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
  • macOSasync execution in Objective-C, updating and cleaning up MacPorts
  • 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