home / tils

Menu
  • GraphQL API

tils

Custom SQL query returning 1 row (hide)

Query parameters

This data as json, CSV

json_object('pre', group_concat('* [' || title || '](' || url || ')', ' '))
* [Creating a dynamic line chart with SVG](https://github.com/simonw/til/blob/main/svg/dynamic-line-chart.md)
* [Search across all loaded resources in Firefox](https://github.com/simonw/til/blob/main/firefox/search-across-all-resources.md)
* [Writing tests for the ASGI lifespan protocol with HTTPX](https://github.com/simonw/til/blob/main/asgi/lifespan-test-httpx.md)
* [Adding project links to PyPI](https://github.com/simonw/til/blob/main/pypi/project-links.md)
* [Attaching a bash shell to a running Docker container](https://github.com/simonw/til/blob/main/docker/attach-bash-to-running-container.md)
* [Fixing "compinit: insecure directories" error](https://github.com/simonw/til/blob/main/macos/fixing-compinit-insecure-directories.md)
* [Finding the largest SQLite files on a Mac](https://github.com/simonw/til/blob/main/macos/find-largest-sqlite.md)
* [Using heroku pg:pull to restore a backup to a macOS laptop](https://github.com/simonw/til/blob/main/heroku/pg-pull.md)
* [Programatically accessing Heroku PostgreSQL from GitHub Actions](https://github.com/simonw/til/blob/main/heroku/programatic-access-postgresql.md)
* [Upgrading a Heroku PostgreSQL database with pg:copy](https://github.com/simonw/til/blob/main/heroku/pg-upgrade.md)
* [How to mock httpx using pytest-mock](https://github.com/simonw/til/blob/main/pytest/mock-httpx.md)
* [Registering temporary pluggy plugins inside tests](https://github.com/simonw/til/blob/main/pytest/registering-plugins-in-tests.md)
* [Asserting a dictionary is a subset of another dictionary](https://github.com/simonw/til/blob/main/pytest/assert-dictionary-subset.md)
* [Code coverage using pytest and codecov.io](https://github.com/simonw/til/blob/main/pytest/pytest-code-coverage.md)
* [Start a server in a subprocess during a pytest session](https://github.com/simonw/til/blob/main/pytest/subprocess-server.md)
* [Session-scoped temporary directories in pytest](https://github.com/simonw/til/blob/main/pytest/session-scoped-tmp.md)
* [How to call pip programatically from Python](https://github.com/simonw/til/blob/main/python/call-pip-programatically.md)
* [Outputting JSON with reduced floating point precision](https://github.com/simonw/til/blob/main/python/json-floating-point.md)
* [Build the official Python documentation locally](https://github.com/simonw/til/blob/main/python/build-official-docs.md)
* [Introspecting Python function parameters](https://github.com/simonw/til/blob/main/python/introspect-function-parameters.md)
* [Password hashing in Python with pbkdf2](https://github.com/simonw/til/blob/main/python/password-hashing-with-pbkdf2.md)
* [Installing and upgrading Datasette plugins with pipx](https://github.com/simonw/til/blob/main/python/installing-upgrading-plugins-with-pipx.md)
* [Use setup.py to install platform-specific dependencies](https://github.com/simonw/til/blob/main/python/platform-specific-dependencies.md)
* [Generated a summary of nested JSON data](https://github.com/simonw/til/blob/main/python/generate-nested-json-summary.md)
* [Rendering Markdown with the GitHub Markdown API](https://github.com/simonw/til/blob/main/markdown/github-markdown-api.md)
* [Converting HTML and rich-text to Markdown](https://github.com/simonw/til/blob/main/markdown/converting-to-markdown.md)
* [Packaging a Python CLI tool for Homebrew](https://github.com/simonw/til/blob/main/homebrew/packaging-python-cli-for-homebrew.md)
* [Browsing your local git checkout of homebrew-core](https://github.com/simonw/til/blob/main/homebrew/homebrew-core-local-git-checkout.md)
* [SQLite BLOB literals](https://github.com/simonw/til/blob/main/sqlite/blob-literals.md)
* [Using LD_PRELOAD to run any version of SQLite with Python](https://github.com/simonw/til/blob/main/sqlite/ld-preload.md)
* [Compile a new sqlite3 binary on Ubuntu](https://github.com/simonw/til/blob/main/sqlite/compile-sqlite3-ubuntu.md)
* [Enabling WAL mode for SQLite database files](https://github.com/simonw/til/blob/main/sqlite/enabling-wal-mode.md)
* [List all columns in a SQLite database](https://github.com/simonw/til/blob/main/sqlite/list-all-columns-in-a-database.md)
* [How to deploy a folder with a Dockerfile to Cloud Run](https://github.com/simonw/til/blob/main/cloudrun/ship-dockerfile-to-cloud-run.md)
* [Read the Docs Search API](https://github.com/simonw/til/blob/main/readthedocs/readthedocs-search-api.md)
* [Pointing a custom subdomain at Read the Docs](https://github.com/simonw/til/blob/main/readthedocs/custom-subdomain.md)
* [Paginating through the GitHub GraphQL API with Python](https://github.com/simonw/til/blob/main/github/graphql-pagination-python.md)
* [Accessing repository dependencies in the GitHub GraphQL API](https://github.com/simonw/til/blob/main/github/dependencies-graphql-api.md)
* [Piping echo to a file owned by root using sudo and tee](https://github.com/simonw/til/blob/main/linux/echo-pipe-to-file-su.md)
* [Restricting SSH connections to devices within a Tailscale network](https://github.com/simonw/til/blob/main/tailscale/lock-down-sshd.md)
* [Implementing a "copy to clipboard" button](https://github.com/simonw/til/blob/main/javascript/copy-button.md)
* [Working around the size limit for nodeValue in the DOM](https://github.com/simonw/til/blob/main/javascript/working-around-nodevalue-size-limit.md)
* [Minifying JavaScript with npx uglify-js](https://github.com/simonw/til/blob/main/javascript/minifying-uglify-npx.md)
* [Dynamically loading multiple assets with a callback](https://github.com/simonw/til/blob/main/javascript/dynamically-loading-assets.md)
* [Constant-time comparison of strings in Node](https://github.com/simonw/til/blob/main/node/constant-time-compare-strings.md)
* [Customizing my zsh prompt](https://github.com/simonw/til/blob/main/zsh/custom-zsh-prompt.md)
* [Converting Airtable JSON for use with sqlite-utils using jq](https://github.com/simonw/til/blob/main/jq/reformatting-airtable-json.md)
* [PostgreSQL full-text search in the Django Admin](https://github.com/simonw/til/blob/main/django/postgresql-full-text-search-admin.md)
* [Providing a "subscribe in Google Calendar" link for an ics feed](https://github.com/simonw/til/blob/main/ics/google-calendar-ics-subscribe-link.md)
* [Updating a Markdown table of contents with a GitHub Action](https://github.com/simonw/til/blob/main/github-actions/markdown-table-of-contents.md)
* [Skipping a GitHub Actions step without failing](https://github.com/simonw/til/blob/main/github-actions/continue-on-error.md)
* [Using grep to write tests in CI](https://github.com/simonw/til/blob/main/github-actions/grep-tests.md)
* [Looping over comma-separated values in Bash](https://github.com/simonw/til/blob/main/bash/loop-over-csv.md)
* [Using the gcloud run services list command](https://github.com/simonw/til/blob/main/cloudrun/gcloud-run-services-list.md)
* [Debugging a Click application using pdb](https://github.com/simonw/til/blob/main/python/debug-click-with-pdb.md)
* [Very basic tsc usage](https://github.com/simonw/til/blob/main/typescript/basic-tsc.md)
* [Display EC2 instance costs per month](https://github.com/simonw/til/blob/main/aws/instance-costs-per-month.md)
* [Basic strace to see what a process is doing](https://github.com/simonw/til/blob/main/linux/basic-strace.md)
* [Open a debugging shell in GitHub Actions with tmate](https://github.com/simonw/til/blob/main/github-actions/debug-tmate.md)
* [Talking to a PostgreSQL service container from inside a Docker container](https://github.com/simonw/til/blob/main/github-actions/service-containers-docker.md)
* [Turning on Jinja autoescaping when using Template() directly](https://github.com/simonw/til/blob/main/jinja/autoescape-template.md)
* [Compiling the SQLite spellfix.c module on macOS](https://github.com/simonw/til/blob/main/sqlite/compile-spellfix-osx.md)
* [Understanding option names in Click](https://github.com/simonw/til/blob/main/python/click-option-names.md)
* [Figuring out if a text value in SQLite is a valid integer or float](https://github.com/simonw/til/blob/main/sqlite/text-value-is-integer-or-float.md)
* [Escaping strings in Bash using !:q](https://github.com/simonw/til/blob/main/bash/escaping-a-string.md)
* [Installing Selenium for Python on macOS with ChromeDriver](https://github.com/simonw/til/blob/main/selenium/selenium-python-macos.md)
* [Using async/await in JavaScript in Selenium](https://github.com/simonw/til/blob/main/selenium/async-javascript-in-selenium.md)
* [Manipulating query strings with URLSearchParams](https://github.com/simonw/til/blob/main/javascript/manipulating-query-params.md)
* [Running Datasette on DigitalOcean App Platform](https://github.com/simonw/til/blob/main/digitalocean/datasette-on-digitalocean-app-platform.md)
* [Searching for repositories by topic using the GitHub GraphQL API](https://github.com/simonw/til/blob/main/github/graphql-search-topics.md)
* [Upgrading Python Homebrew packages using pip](https://github.com/simonw/til/blob/main/homebrew/upgrading-python-homebrew-packages.md)
* [Explicit file encodings using click.File](https://github.com/simonw/til/blob/main/python/click-file-encoding.md)
* [Writing JavaScript that responds to media queries](https://github.com/simonw/til/blob/main/javascript/javascript-that-responds-to-media-queries.md)
* [Decorators with optional arguments](https://github.com/simonw/til/blob/main/python/decorators-with-optional-arguments.md)
* [Dropdown menu with details summary](https://github.com/simonw/til/blob/main/javascript/dropdown-menu-with-details-summary.md)
* [Redirects for Datasette](https://github.com/simonw/til/blob/main/datasette/redirects-for-datasette.md)
* [Running Python code in a subprocess with a time limit](https://github.com/simonw/til/blob/main/python/subprocess-time-limit.md)
* [Using custom Sphinx templates on Read the Docs](https://github.com/simonw/til/blob/main/readthedocs/custom-sphinx-templates.md)
* [Controlling the style of dumped YAML using PyYAML](https://github.com/simonw/til/blob/main/python/style-yaml-dump.md)
* [Escaping a SQL query to use with curl and Datasette](https://github.com/simonw/til/blob/main/bash/escaping-sql-for-curl-to-datasette.md)
* [Skipping CSV rows with odd numbers of quotes using ripgrep](https://github.com/simonw/til/blob/main/bash/skip-csv-rows-with-odd-numbers.md)
* [Replicating SQLite with rqlite](https://github.com/simonw/til/blob/main/sqlite/replicating-rqlite.md)
* [Relinquishing control in Python asyncio](https://github.com/simonw/til/blob/main/python/yielding-in-asyncio.md)
* [Using Jest without a package.json](https://github.com/simonw/til/blob/main/javascript/jest-without-package-json.md)
* [Using Prettier to check JavaScript code style in GitHub Actions](https://github.com/simonw/til/blob/main/github-actions/prettier-github-actions.md)
* [Packaging a Python app as a standalone binary with PyInstaller](https://github.com/simonw/til/blob/main/python/packaging-pyinstaller.md)
* [Identifying column combination patterns in a SQLite table](https://github.com/simonw/til/blob/main/sqlite/column-combinations.md)
* [Recovering data from AWS Lightsail using EC2](https://github.com/simonw/til/blob/main/aws/recovering-lightsail-data.md)
* [Bulk fetching repository details with the GitHub GraphQL API](https://github.com/simonw/til/blob/main/github/bulk-repo-github-graphql.md)
* [Fixing broken text encodings with sqlite-transform and ftfy](https://github.com/simonw/til/blob/main/sqlite/fixing-column-encoding-with-ftfy-and-sqlite-transform.md)
* [Syntax highlighting Python console examples with GFM](https://github.com/simonw/til/blob/main/github/syntax-highlighting-python-console.md)
* [Embedding JavaScript in a Jupyter notebook](https://github.com/simonw/til/blob/main/jupyter/javascript-in-a-jupyter-notebook.md)
* [Testing cookiecutter templates with pytest](https://github.com/simonw/til/blob/main/cookiecutter/pytest-for-cookiecutter.md)
* [Conditionally creating directories in cookiecutter](https://github.com/simonw/til/blob/main/cookiecutter/conditionally-creating-directories.md)
* [Splitting on commas in SQLite](https://github.com/simonw/til/blob/main/sqlite/splitting-commas-sqlite.md)
* [Serving MBTiles with datasette-media](https://github.com/simonw/til/blob/main/datasette/serving-mbtiles.md)
* [Downloading MapZen elevation tiles](https://github.com/simonw/til/blob/main/gis/mapzen-elevation-tiles.md)
* [Shrinking PNG files with pngquant and oxipng](https://github.com/simonw/til/blob/main/macos/shrinking-pngs-with-pngquant-and-oxipng.md)
* [Handling CSV files with wide columns in Python](https://github.com/simonw/til/blob/main/python/csv-error-column-too-large.md)
* [Using io.BufferedReader to peek against a non-peekable stream](https://github.com/simonw/til/blob/main/python/io-bufferedreader.md)
* [Loading radio.garden into SQLite using jq](https://github.com/simonw/til/blob/main/jq/radio-garden-jq.md)
* [Using sphinx.ext.extlinks for issue links](https://github.com/simonw/til/blob/main/sphinx/sphinx-ext-extlinks.md)
* [Show the SQL schema for a PostgreSQL database](https://github.com/simonw/til/blob/main/postgresql/show-schema.md)
* [Running tests against PostgreSQL in a service container](https://github.com/simonw/til/blob/main/github-actions/postgresq-service-container.md)
* [Adding extra read-only information to a Django admin change page](https://github.com/simonw/til/blob/main/django/extra-read-only-admin-information.md)
* [Granting a PostgreSQL user read-only access to some tables](https://github.com/simonw/til/blob/main/postgresql/read-only-postgresql-user.md)
* [Writing tests for the Django admin with pytest-django](https://github.com/simonw/til/blob/main/django/testing-django-admin-with-pytest.md)
* [Show the timezone for datetimes in the Django admin](https://github.com/simonw/til/blob/main/django/show-timezone-in-django-admin.md)
* [How to run MediaWiki with SQLite on a macOS laptop](https://github.com/simonw/til/blob/main/mediawiki/mediawiki-sqlite-macos.md)
* [Pretty-printing all read-only JSON in the Django admin](https://github.com/simonw/til/blob/main/django/pretty-print-json-admin.md)
* [Flattening nested JSON objects with jq](https://github.com/simonw/til/blob/main/jq/flatten-nested-json-objects-jq.md)
* [Converting no-decimal-point latitudes and longitudes using jq](https://github.com/simonw/til/blob/main/jq/convert-no-decimal-point-latitude-jq.md)
* [How to almost get facet counts in the Django admin](https://github.com/simonw/til/blob/main/django/almost-facet-counts-django-admin.md)
* [Querying for GitHub issues open for less than 60 seconds](https://github.com/simonw/til/blob/main/datasette/issues-open-for-less-than-x-seconds.md)
* [Querying for items stored in UTC that were created on a Thursday in PST](https://github.com/simonw/til/blob/main/sqlite/utc-items-on-thursday-in-pst.md)
* [Running gdb against a Python process in a running Docker container](https://github.com/simonw/til/blob/main/docker/gdb-python-docker.md)
* [Tracing every executed Python statement](https://github.com/simonw/til/blob/main/python/tracing-every-statement.md)
* [Installing packages from Debian unstable in a Docker image based on stable](https://github.com/simonw/til/blob/main/docker/debian-unstable-packages.md)
* [Closest locations to a point](https://github.com/simonw/til/blob/main/postgresql/closest-locations-to-a-point.md)
* [Redirecting all paths on a Vercel instance](https://github.com/simonw/til/blob/main/zeit-now/redirecting-all-paths-on-vercel.md)
* [Writing an Azure Function that serves all traffic to a subdomain](https://github.com/simonw/til/blob/main/azure/all-traffic-to-subdomain.md)
* [Useful Markdown extensions in Python](https://github.com/simonw/til/blob/main/markdown/markdown-extensions-python.md)
* [Language-specific indentation settings in VS Code](https://github.com/simonw/til/blob/main/vscode/language-specific-indentation-settings.md)
* [Efficient bulk deletions in Django](https://github.com/simonw/til/blob/main/django/efficient-bulk-deletions-in-django.md)
* [Using unnest() to use a comma-separated string as the input to an IN query](https://github.com/simonw/til/blob/main/postgresql/unnest-csv.md)
* [Using json_extract_path in PostgreSQL](https://github.com/simonw/til/blob/main/postgresql/json-extract-path.md)
* [Listing files uploaded to Cloud Build](https://github.com/simonw/til/blob/main/cloudrun/listing-cloudbuild-files.md)
* [Enabling the fuzzystrmatch extension in PostgreSQL with a Django migration](https://github.com/simonw/til/blob/main/django/migration-postgresql-fuzzystrmatch.md)
* [Usable horizontal scrollbars in the Django admin for mouse users](https://github.com/simonw/til/blob/main/django/django-admin-horizontal-scroll.md)
* [Filter by comma-separated values in the Django admin](https://github.com/simonw/til/blob/main/django/filter-by-comma-separated-values.md)
* [Constructing GeoJSON in PostgreSQL](https://github.com/simonw/til/blob/main/postgresql/constructing-geojson-in-postgresql.md)
* [Django Admin action for exporting selected rows as CSV](https://github.com/simonw/til/blob/main/django/export-csv-from-django-admin.md)
* [migrations.RunSQL.noop for reversible SQL migrations](https://github.com/simonw/til/blob/main/django/migrations-runsql-noop.md)
* [Running Datasette on Replit](https://github.com/simonw/til/blob/main/datasette/datasette-on-replit.md)
* [Scroll page to form if there are errors](https://github.com/simonw/til/blob/main/javascript/scroll-to-form-if-errors.md)
* [The Wikipedia page stats API](https://github.com/simonw/til/blob/main/wikipedia/page-stats-api.md)
* [Vega-Lite bar charts in the same order as the data](https://github.com/simonw/til/blob/main/vega/bar-chart-ordering.md)
* [Enabling a gin index for faster LIKE queries](https://github.com/simonw/til/blob/main/django/enabling-gin-index.md)
* [KNN queries with SpatiaLite](https://github.com/simonw/til/blob/main/spatialite/knn.md)
* [Django data migration using a PostgreSQL CTE](https://github.com/simonw/til/blob/main/django/migration-using-cte.md)
* [Switching between gcloud accounts](https://github.com/simonw/til/blob/main/cloudrun/multiple-gcloud-accounts.md)
* [Finding duplicate records by matching name and nearby distance](https://github.com/simonw/til/blob/main/sql/finding-dupes-by-name-and-distance.md)
* [Docker Compose for Django development](https://github.com/simonw/til/blob/main/docker/docker-compose-for-django-development.md)
* [Turning an array of arrays into objects with jq](https://github.com/simonw/til/blob/main/jq/array-of-array-to-objects.md)
* [Running Docker on an M1 Mac](https://github.com/simonw/til/blob/main/macos/running-docker-on-remote-m1.md)
* [Finding CSV files that start with a BOM using ripgrep](https://github.com/simonw/til/blob/main/bash/finding-bom-csv-files-with-ripgrep.md)
* [Building a Markdown summary of Django group permissions](https://github.com/simonw/til/blob/main/sql/django-group-permissions-markdown.md)
* [Exporting Amplitude events to SQLite](https://github.com/simonw/til/blob/main/amplitude/export-events-to-datasette.md)
* [Running a MySQL server using Homebrew](https://github.com/simonw/til/blob/main/homebrew/mysql-homebrew.md)
* [Mouse support in vim](https://github.com/simonw/til/blob/main/vim/mouse-support-in-vim.md)
* [Scraping Reddit via their JSON API](https://github.com/simonw/til/blob/main/reddit/scraping-reddit-json.md)
* [Installing different PostgreSQL server versions in GitHub Actions](https://github.com/simonw/til/blob/main/github-actions/different-postgresql-versions.md)
* [Preventing double form submissions with JavaScript](https://github.com/simonw/til/blob/main/javascript/preventing-double-form-submission.md)
* [Increasing the time limit for a Google Cloud Scheduler task](https://github.com/simonw/til/blob/main/cloudrun/increase-cloud-scheduler-time-limit.md)
* [Using pysqlite3 on macOS](https://github.com/simonw/til/blob/main/sqlite/pysqlite3-on-macos.md)
* [Using nginx to proxy to a Unix domain socket](https://github.com/simonw/til/blob/main/nginx/proxy-domain-sockets.md)
* [Importing CSV data into SQLite with .import](https://github.com/simonw/til/blob/main/sqlite/import-csv.md)
* [Using the tesseract CLI tool](https://github.com/simonw/til/blob/main/tesseract/tesseract-cli.md)
* [Extracting objects recursively with jq](https://github.com/simonw/til/blob/main/jq/extracting-objects-recursively.md)
* [Search and replace with regular expressions in VS Code](https://github.com/simonw/til/blob/main/vscode/vs-code-regular-expressions.md)
* [Check spelling using codespell](https://github.com/simonw/til/blob/main/python/codespell.md)
* [Set a GIF to loop using ImageMagick](https://github.com/simonw/til/blob/main/imagemagick/set-a-gif-to-loop.md)
* [SQLite aggregate filter clauses](https://github.com/simonw/til/blob/main/sqlite/sqlite-aggregate-filter-clauses.md)
* [Compressing an animated GIF with gifsicle or ImageMagick mogrify](https://github.com/simonw/til/blob/main/imagemagick/compress-animated-gif.md)
* [Tailing Google Cloud Run request logs and importing them into SQLite](https://github.com/simonw/til/blob/main/cloudrun/tailing-cloud-run-request-logs.md)
* [Find local variables in the traceback for an exception](https://github.com/simonw/til/blob/main/python/find-local-variables-in-exception-traceback.md)
* [Adding Sphinx autodoc to a project, and configuring Read The Docs to build it](https://github.com/simonw/til/blob/main/sphinx/sphinx-autodoc.md)
* [Building a specific version of SQLite with pysqlite on macOS/Linux](https://github.com/simonw/til/blob/main/sqlite/build-specific-sqlite-pysqlite-macos.md)
* [Track timestamped changes to a SQLite table using triggers](https://github.com/simonw/til/blob/main/sqlite/track-timestamped-changes-to-a-table.md)
* [Histogram with tooltips in Observable Plot](https://github.com/simonw/til/blob/main/observable-plot/histogram-with-tooltips.md)
* [Searching all columns of a table in Datasette](https://github.com/simonw/til/blob/main/datasette/search-all-columns-trick.md)
* [Calculating the AQI based on the Purple Air API for a sensor](https://github.com/simonw/til/blob/main/purpleair/purple-air-aqi.md)
* [Using the Chrome DevTools console as a REPL for an Electron app](https://github.com/simonw/til/blob/main/electron/electron-debugger-console.md)
* [Open external links in an Electron app using the system browser](https://github.com/simonw/til/blob/main/electron/electron-external-links-system-browser.md)
* [Attaching a generated file to a GitHub release using Actions](https://github.com/simonw/til/blob/main/github-actions/attach-generated-file-to-release.md)
* [Signing and notarizing an Electron app for distribution using GitHub Actions](https://github.com/simonw/til/blob/main/electron/sign-notarize-electron-macos.md)
* [Bundling Python inside an Electron app](https://github.com/simonw/til/blob/main/electron/python-inside-electron.md)
* [Cumulative total over time in SQL](https://github.com/simonw/til/blob/main/sql/cumulative-total-over-time.md)
* [Configuring auto-update for an Electron app](https://github.com/simonw/til/blob/main/electron/electrion-auto-update.md)
* [Publishing to a public Google Cloud bucket with gsutil](https://github.com/simonw/til/blob/main/googlecloud/gsutil-bucket.md)
* [Loading lit from Skypack](https://github.com/simonw/til/blob/main/javascript/lit-with-skypack.md)
* [Using Fabric with an SSH public key](https://github.com/simonw/til/blob/main/python/fabric-ssh-key.md)
* [Using the sqlite3 Python module in Pyodide - Python WebAssembly](https://github.com/simonw/til/blob/main/python/sqlite-in-pyodide.md)
* [Removing a git commit and force pushing to remove it from history](https://github.com/simonw/til/blob/main/git/remove-commit-and-force-push.md)
* [Understanding Kristofer Joseph's Single File Web Component](https://github.com/simonw/til/blob/main/web-components/understanding-single-file-web-component.md)
* [Using VCR and pytest with pytest-recording](https://github.com/simonw/til/blob/main/pytest/pytest-recording-vcr.md)
* [Quick and dirty mock testing with mock_calls](https://github.com/simonw/til/blob/main/pytest/pytest-mock-calls.md)
* [Basic Datasette in Kubernetes](https://github.com/simonw/til/blob/main/kubernetes/basic-datasette-in-kubernetes.md)
* [Annotated code for a demo of WebSocket chat in Deno Deploy](https://github.com/simonw/til/blob/main/deno/annotated-deno-deploy-demo.md)
* [Using Tesseract.js to OCR every image on a page](https://github.com/simonw/til/blob/main/javascript/tesseract-ocr-javascript.md)
* [Planning parallel downloads with TopologicalSorter](https://github.com/simonw/til/blob/main/python/graphlib-topologicalsorter.md)
* [Using cog to update --help in a Markdown README file](https://github.com/simonw/til/blob/main/python/cog-to-update-help-in-readme.md)
* [Using build-arg variables with Cloud Run deployments](https://github.com/simonw/til/blob/main/cloudrun/using-build-args-with-cloud-run.md)
* [Assigning a custom subdomain to a Fly app](https://github.com/simonw/til/blob/main/fly/custom-subdomain-fly.md)
* [Pausing traffic and retrying in Caddy](https://github.com/simonw/til/blob/main/caddy/pause-retry-traffic.md)
* [Publishing a Web Component to npm](https://github.com/simonw/til/blob/main/npm/publish-web-component.md)
* [Reusing an existing Click tool with register_commands](https://github.com/simonw/til/blob/main/datasette/reuse-click-for-register-commands.md)
* [Ignoring a line in both flake8 and mypy](https://github.com/simonw/til/blob/main/python/ignore-both-flake8-and-mypy.md)
* [__init_subclass__](https://github.com/simonw/til/blob/main/python/init-subclass.md)
* [Storing files in an S3 bucket between GitHub Actions runs](https://github.com/simonw/til/blob/main/github-actions/s3-bucket-github-actions.md)
* [Using C_INCLUDE_PATH to install Python packages](https://github.com/simonw/til/blob/main/python/using-c-include-path-to-install-python-packages.md)
* [Using lsof on macOS](https://github.com/simonw/til/blob/main/macos/lsof-macos.md)
* [Registering the same Pluggy hook multiple times in a single file](https://github.com/simonw/til/blob/main/pluggy/multiple-hooks-same-file.md)
* [Creating a minimal SpatiaLite database with Python](https://github.com/simonw/til/blob/main/spatialite/minimal-spatialite-database-in-python.md)
* [Safely outputting JSON](https://github.com/simonw/til/blob/main/python/safe-output-json.md)
* [Annotated explanation of David Beazley's dataklasses](https://github.com/simonw/til/blob/main/python/annotated-dataklasses.md)
* [Adding a robots.txt using Cloudflare workers](https://github.com/simonw/til/blob/main/cloudflare/robots-txt-cloudflare-workers.md)
* [Transferring a GitHub issue from a private to a public repository](https://github.com/simonw/til/blob/main/github/transfer-issue-private-to-public.md)
* [kubectl proxy](https://github.com/simonw/til/blob/main/kubernetes/kubectl-proxy.md)
* [WebAuthn browser support](https://github.com/simonw/til/blob/main/webauthn/webauthn-browser-support.md)
* [Adding a CORS policy to an S3 bucket](https://github.com/simonw/til/blob/main/aws/s3-cors.md)
* [Writing pytest tests against tools written with argparse](https://github.com/simonw/til/blob/main/pytest/pytest-argparse.md)
* [Testing a Click app with streaming input](https://github.com/simonw/til/blob/main/pytest/test-click-app-with-streaming-input.md)
* [Configuring Dependabot for a Python project](https://github.com/simonw/til/blob/main/github/dependabot-python-setup.md)
* [JavaScript date objects](https://github.com/simonw/til/blob/main/javascript/javascript-date-objects.md)
* [Streaming indented output of a JSON array](https://github.com/simonw/til/blob/main/python/output-json-array-streaming.md)
* [json_extract() path syntax in SQLite](https://github.com/simonw/til/blob/main/sqlite/json-extract-path.md)
* [Helper function for pagination using AWS boto3](https://github.com/simonw/til/blob/main/aws/helper-for-boto-aws-pagination.md)
* [Pixel editing a favicon with Pixelmator](https://github.com/simonw/til/blob/main/pixelmator/pixel-editing-favicon.md)
* [Promoting the stable version of the documentation using rel=canonical](https://github.com/simonw/til/blob/main/readthedocs/documentation-seo-canonical.md)
* [Linking from /latest/ to /stable/ on Read The Docs](https://github.com/simonw/til/blob/main/readthedocs/link-from-latest-to-stable.md)
* [Using the undocumented Fly GraphQL API](https://github.com/simonw/til/blob/main/fly/undocumented-graphql-api.md)
* [Opt-in integration tests with pytest --integration](https://github.com/simonw/til/blob/main/pytest/only-run-integration.md)
* [get-graphql-schema](https://github.com/simonw/til/blob/main/graphql/get-graphql-schema.md)
* [Testing against Python 3.11 preview using GitHub Actions](https://github.com/simonw/til/blob/main/github-actions/python-3-11.md)
* [Ordered group_concat() in SQLite](https://github.com/simonw/til/blob/main/sqlite/ordered-group-concat.md)
* [Annotated package.json for idb-keyval](https://github.com/simonw/til/blob/main/npm/annotated-package-json.md)
* [Enabling a user to execute a specific command as root without a password](https://github.com/simonw/til/blob/main/linux/allow-sudo-without-password-specific-command.md)
* [nullglob in bash](https://github.com/simonw/til/blob/main/bash/nullglob-in-bash.md)
* [Combining substr and instr to extract text](https://github.com/simonw/til/blob/main/sqlite/substr-instr.md)
* [Google OAuth for a CLI application](https://github.com/simonw/til/blob/main/googlecloud/google-oauth-cli-application.md)
* [Recursively fetching metadata for all files in a Google Drive folder](https://github.com/simonw/til/blob/main/googlecloud/recursive-fetch-google-drive.md)
* [Using curl to run GraphQL queries from the command line](https://github.com/simonw/til/blob/main/graphql/graphql-with-curl.md)
* [Crawling Datasette with Datasette](https://github.com/simonw/til/blob/main/datasette/crawling-datasette-with-datasette.md)
* [Running the latest SQLite in Datasette using Homebrew](https://github.com/simonw/til/blob/main/homebrew/latest-sqlite.md)
* [Installing Python on macOS with the official Python installer](https://github.com/simonw/til/blob/main/macos/python-installer-macos.md)
* [Natural Earth in SpatiaLite and Datasette](https://github.com/simonw/til/blob/main/gis/natural-earth-in-spatialite-and-datasette.md)
* [pytest coverage with context](https://github.com/simonw/til/blob/main/pytest/coverage-with-context.md)
* [Concatenating strings and newlines in Google Sheets](https://github.com/simonw/til/blob/main/google-sheets/concatenate.md)
* [Async fixtures with pytest-asyncio](https://github.com/simonw/til/blob/main/pytest/async-fixtures.md)
* [The simplest recursive CTE](https://github.com/simonw/til/blob/main/sqlite/simple-recursive-cte.md)
* [Counting SQLite virtual machine operations](https://github.com/simonw/til/blob/main/sqlite/counting-vm-ops.md)
* [Using the GitHub Actions cache with npx and no package.json](https://github.com/simonw/til/blob/main/github-actions/npm-cache-with-npx-no-package.md)
* [Rewriting a repo to contain the history of just specific files](https://github.com/simonw/til/blob/main/git/rewrite-repo-specific-files.md)
* [Exporting and editing a Twitter Spaces recording](https://github.com/simonw/til/blob/main/twitter/export-edit-twitter-spaces.md)
* [Extracting web page content using Readability.js and shot-scraper](https://github.com/simonw/til/blob/main/shot-scraper/readability.md)
* [Simplest possible OAuth authentication with Auth0](https://github.com/simonw/til/blob/main/auth0/oauth-with-auth0.md)
* [Deploying a live Datasette demo when the tests pass](https://github.com/simonw/til/blob/main/github-actions/deploy-live-demo-when-tests-pass.md)
* [Compiling to WASM with llvm on macOS](https://github.com/simonw/til/blob/main/webassembly/compile-to-wasm-llvm-macos.md)
* [Generating a calendar week grid with the Python Calendar module](https://github.com/simonw/til/blob/main/python/calendar-weeks.md)
* [Allowing a container in Docker Desktop for Mac to talk to a PostgreSQL server on the host machine](https://github.com/simonw/til/blob/main/docker/docker-for-mac-container-to-postgresql-on-host.md)
* [Treating warnings as errors in pytest](https://github.com/simonw/til/blob/main/pytest/treat-warnings-as-errors.md)
* [Logging users out of Auth0](https://github.com/simonw/til/blob/main/auth0/auth0-logout.md)
* [Using awk to add a prefix](https://github.com/simonw/til/blob/main/bash/use-awk-to-add-a-prefix.md)
* [GUnion to combine geometries in SpatiaLite](https://github.com/simonw/til/blob/main/spatialite/gunion-to-combine-geometries.md)
* [Trick Apple Photos into letting you access your video files](https://github.com/simonw/til/blob/main/macos/apple-photos-large-files.md)
* [How to get credentials for a new Twitter bot](https://github.com/simonw/til/blob/main/twitter/credentials-twitter-bot.md)
* [Format code examples in documentation with blacken-docs](https://github.com/simonw/til/blob/main/sphinx/blacken-docs.md)
* [Seeing files opened by a process using opensnoop](https://github.com/simonw/til/blob/main/macos/open-files-with-opensnoop.md)
* [Atuin for zsh shell history in SQLite](https://github.com/simonw/til/blob/main/macos/atuin.md)
* [Intercepting fetch in a service worker](https://github.com/simonw/til/blob/main/service-workers/intercept-fetch.md)
* [Setting up a custom subdomain for a GitHub Pages site](https://github.com/simonw/til/blob/main/github/custom-subdomain-github-pages.md)
* [Efficiently copying a file](https://github.com/simonw/til/blob/main/python/copy-file.md)
* [GitHub Actions job summaries](https://github.com/simonw/til/blob/main/github-actions/job-summaries.md)
* [Optimizing PNGs in GitHub Actions using Oxipng](https://github.com/simonw/til/blob/main/github-actions/oxipng.md)
* [Using the Fly Docker registry](https://github.com/simonw/til/blob/main/fly/fly-docker-registry.md)
* [Writing Fly logs to S3](https://github.com/simonw/til/blob/main/fly/fly-logs-to-s3.md)
* [Wildcard DNS and SSL on Fly](https://github.com/simonw/til/blob/main/fly/wildcard-dns-ssl.md)
* [Using just with Django](https://github.com/simonw/til/blob/main/django/just-with-django.md)
* [Making HTTP calls using IPv6](https://github.com/simonw/til/blob/main/networking/http-ipv6.md)
* [Formatting thousands in Jinja](https://github.com/simonw/til/blob/main/jinja/format-thousands.md)
* [Using iconv to convert the text encoding of a file](https://github.com/simonw/til/blob/main/linux/iconv.md)
* [Registering new Datasette plugin hooks by defining them in other plugins](https://github.com/simonw/til/blob/main/datasette/register-new-plugin-hooks.md)
* [One-liner for running queries against CSV files with SQLite](https://github.com/simonw/til/blob/main/sqlite/one-line-csv-operations.md)
* [Ignoring errors in a section of a Bash script](https://github.com/simonw/til/blob/main/bash/ignore-errors.md)
* [Running OCR against a PDF file with AWS Textract](https://github.com/simonw/til/blob/main/aws/ocr-pdf-textract.md)
* [Passing command arguments using heredoc syntax](https://github.com/simonw/til/blob/main/zsh/argument-heredoc.md)
* [Reporting bugs in GitHub to GitHub](https://github.com/simonw/til/blob/main/github/reporting-bugs.md)
* [Conditionally running a second job in a GitHub Actions workflow](https://github.com/simonw/til/blob/main/github-actions/conditionally-run-a-second-job.md)
* [Upgrading packages with npm](https://github.com/simonw/til/blob/main/npm/upgrading-packages.md)
* [Testing Electron apps with Playwright and GitHub Actions](https://github.com/simonw/til/blob/main/electron/testing-electron-playwright.md)
* [Freezing requirements with pip-tools](https://github.com/simonw/til/blob/main/python/pip-tools.md)
* [Using pytest and Playwright to test a JavaScript web application](https://github.com/simonw/til/blob/main/pytest/playwright-pytest.md)
* [Deploying a redbean app to Fly](https://github.com/simonw/til/blob/main/fly/redbean-on-fly.md)
* [Testing things in Fedora using Docker](https://github.com/simonw/til/blob/main/docker/test-fedora-in-docker.md)
* [struct endianness in Python](https://github.com/simonw/til/blob/main/python/struct-endianness.md)
* [Migrating a GitHub wiki from one repository to another](https://github.com/simonw/til/blob/main/github/migrate-github-wiki.md)
* [Emulating a big-endian s390x with QEMU](https://github.com/simonw/til/blob/main/docker/emulate-s390x-with-qemu.md)
* [Related content with SQLite FTS and a Datasette template function](https://github.com/simonw/til/blob/main/sqlite/related-content.md)
* [Using boto3 from the command line](https://github.com/simonw/til/blob/main/aws/boto-command-line.md)
* [Trying out SQLite extensions on macOS](https://github.com/simonw/til/blob/main/sqlite/trying-macos-extensions.md)
* [Mocking a Textract LimitExceededException with boto](https://github.com/simonw/til/blob/main/pytest/mocking-boto.md)
* [Using GPT-3 to figure out jq recipes](https://github.com/simonw/til/blob/main/gpt3/jq.md)
* [Creating a tiled zoomable image with OpenSeadragon and vips](https://github.com/simonw/til/blob/main/javascript/openseadragon.md)
* [Defining setup.py dependencies using a URL](https://github.com/simonw/til/blob/main/python/setup-py-from-url.md)
* [Analyzing Google Cloud spend with Datasette](https://github.com/simonw/til/blob/main/googlecloud/google-cloud-spend-datasette.md)
* [Sort by number of JSON intersections](https://github.com/simonw/til/blob/main/sqlite/sort-by-number-of-json-intersections.md)
* [Trying out Quarto on macOS](https://github.com/simonw/til/blob/main/quarto/trying-out-quarto.md)
* [Seeing which functions are unique to a specific SQLite / Datasette instance](https://github.com/simonw/til/blob/main/sqlite/function-list.md)
* [SQLite VACUUM: database or disk is full](https://github.com/simonw/til/blob/main/sqlite/vacum-disk-full.md)
* [How to scp files to and from Fly](https://github.com/simonw/til/blob/main/fly/scp.md)
* [Loading Twitter Birdwatch into SQLite for analysis with Datasette](https://github.com/simonw/til/blob/main/twitter/birdwatch-sqlite.md)
* [Run pytest against a specific Python version using Docker](https://github.com/simonw/til/blob/main/docker/pytest-docker.md)
* [Clone, edit and push files that live in a Gist](https://github.com/simonw/til/blob/main/github/clone-and-push-gist.md)
* [Driving an external display from a Mac laptop](https://github.com/simonw/til/blob/main/macos/external-display-laptop.md)
* [Browse files (including SQLite databases) on your iPhone with ifuse](https://github.com/simonw/til/blob/main/macos/ifuse-iphone.md)
* [Running PyPy on macOS using Homebrew](https://github.com/simonw/til/blob/main/python/pypy-macos.md)
* [Returning related rows in a single SQL query using JSON](https://github.com/simonw/til/blob/main/sqlite/related-rows-single-query.md)
* [Using DuckDB in Python to access Parquet data](https://github.com/simonw/til/blob/main/duckdb/parquet.md)
* [Deploying Python web apps as AWS Lambda functions](https://github.com/simonw/til/blob/main/awslambda/asgi-mangum.md)
* [Whisky sour](https://github.com/simonw/til/blob/main/cocktails/whisky-sour.md)
* [Ensure labels exist in a GitHub repository](https://github.com/simonw/til/blob/main/github-actions/ensure-labels.md)
* [Athena error: The specified key does not exist](https://github.com/simonw/til/blob/main/aws/athena-key-does-not-exist.md)
* [HTML video that loads when the user clicks play](https://github.com/simonw/til/blob/main/html/video-preload-none.md)
* [GraphQL fragments](https://github.com/simonw/til/blob/main/graphql/graphql-fragments.md)
* [Tommy's Margarita](https://github.com/simonw/til/blob/main/cocktails/tommys-margarita.md)
* [Querying newline-delimited JSON logs using AWS Athena](https://github.com/simonw/til/blob/main/aws/athena-newline-json.md)
* [Pisco sour](https://github.com/simonw/til/blob/main/cocktails/pisco-sour.md)
* [Using psutil to investigate "Too many open files"](https://github.com/simonw/til/blob/main/python/too-many-open-files-psutil.md)
* [shot-scraper for a subset of table columns](https://github.com/simonw/til/blob/main/shot-scraper/subset-of-table-columns.md)
* [Guessing Amazon image URLs using GitHub Copilot](https://github.com/simonw/til/blob/main/gpt3/guessing-amazon-urls.md)
* [Adding a Datasette ASGI app to Django](https://github.com/simonw/til/blob/main/django/datasette-django.md)
* [Simple load testing with Locust](https://github.com/simonw/til/blob/main/python/locust.md)
* [Writing a Datasette CLI plugin that mostly duplicates an existing command](https://github.com/simonw/til/blob/main/datasette/plugin-modifies-command.md)
* [os.remove() on Windows fails if the file is already open](https://github.com/simonw/til/blob/main/python/os-remove-windows.md)
* [Finding the SQLite version used by Web SQL in Chrome](https://github.com/simonw/til/blob/main/sqlite/sqlite-version-websql-chrome.md)
* [git bisect](https://github.com/simonw/til/blob/main/git/git-bisect.md)
* [The pdb interact command](https://github.com/simonw/til/blob/main/python/pdb-interact.md)
* [GitHub Pages: The Missing Manual](https://github.com/simonw/til/blob/main/github/github-pages.md)
* [Getting Mastodon running on a custom domain](https://github.com/simonw/til/blob/main/mastodon/custom-domain-mastodon.md)
* [Export a Mastodon timeline to SQLite](https://github.com/simonw/til/blob/main/mastodon/export-timeline-to-sqlite.md)
* [Generating OpenAPI specifications using GPT-3](https://github.com/simonw/til/blob/main/gpt3/open-api.md)
* [JSON Pointer](https://github.com/simonw/til/blob/main/json/json-pointer.md)
* [Writing tests with Copilot](https://github.com/simonw/til/blob/main/gpt3/writing-test-with-copilot.md)
* [HTML datalist](https://github.com/simonw/til/blob/main/html/datalist.md)
* [How to create a tarball of a git repository using "git archive"](https://github.com/simonw/til/blob/main/git/git-archive.md)
* [Verifying your GitHub profile on Mastodon](https://github.com/simonw/til/blob/main/mastodon/verifying-github-on-mastodon.md)
* [Wider tooltip areas for Observable Plot](https://github.com/simonw/til/blob/main/observable-plot/wider-tooltip-areas.md)
* [Writing a CLI utility that is also a Datasette plugin](https://github.com/simonw/til/blob/main/datasette/cli-tool-that-is-also-a-plugin.md)
* [Lazy loading images in HTML](https://github.com/simonw/til/blob/main/html/lazy-loading-images.md)
* [actions/setup-python caching for setup.py projects](https://github.com/simonw/til/blob/main/github-actions/cache-setup-py.md)
* [Using pipenv and Docker](https://github.com/simonw/til/blob/main/docker/pipenv-and-docker.md)
* [Workaround for google-github-actions/setup-gcloud errors](https://github.com/simonw/til/blob/main/googlecloud/gcloud-error-workaround.md)
* [Finding uses of an API with the new GitHub Code Search](https://github.com/simonw/til/blob/main/github/github-code-search-api-uses.md)
* [Reformatting text with Copilot](https://github.com/simonw/til/blob/main/gpt3/reformatting-text-with-copilot.md)
* [Show files opened by pytest tests](https://github.com/simonw/til/blob/main/pytest/show-files-opened-by-tests.md)
* [Viewing GeoPackage data with SpatiaLite and Datasette](https://github.com/simonw/til/blob/main/spatialite/viewing-geopackage-data-with-spatialite-and-datasette.md)
* [SQLite can use more than one index for a query](https://github.com/simonw/til/blob/main/sqlite/multiple-indexes.md)
* [Comparing database rows before and after with SQLite JSON functions](https://github.com/simonw/til/blob/main/sqlite/compare-before-after-json.md)
* [Start, test, then stop a localhost web server in a Bash script](https://github.com/simonw/til/blob/main/bash/start-test-then-stop-server.md)
* [Querying the GitHub archive with the ClickHouse playground](https://github.com/simonw/til/blob/main/clickhouse/github-explorer.md)
* [Breakfast tacos with eggs, vegetarian sausages and avocado sauce](https://github.com/simonw/til/blob/main/cooking/breakfast-tacos.md)
* [Geopoly in SQLite](https://github.com/simonw/til/blob/main/sqlite/geopoly.md)
* [Loading SQLite extensions in Python on macOS](https://github.com/simonw/til/blob/main/sqlite/sqlite-extensions-python-macos.md)
* [Scraping the Sky News Westminster Accounts, a Flourish application](https://github.com/simonw/til/blob/main/shot-scraper/scraping-flourish.md)
* [Upgrading a pipx application to an alpha version](https://github.com/simonw/til/blob/main/python/pipx-alpha.md)
* [Rewriting a Git repo to remove secrets from the history](https://github.com/simonw/til/blob/main/git/rewrite-repo-remove-secrets.md)
* [SQLite pragma_function_list()](https://github.com/simonw/til/blob/main/sqlite/pragma-function-list.md)
* [Installing lxml for Python on an M1/M2 Mac](https://github.com/simonw/til/blob/main/python/lxml-m1-mac.md)
* [Combining CTEs and VALUES in SQLite](https://github.com/simonw/til/blob/main/sqlite/cte-values.md)
* [Using recursive CTEs to explore hierarchical Twitter threads](https://github.com/simonw/til/blob/main/sql/recursive-cte-twitter-threads.md)
* [Calculating embeddings with gtr-t5-large in Python](https://github.com/simonw/til/blob/main/python/gtr-t5-large.md)
* [Running nanoGPT on a MacBook M2 to generate terrible Shakespeare](https://github.com/simonw/til/blob/main/llms/nanogpt-shakespeare-m2.md)
* [Run Python code in a WebAssembly sandbox](https://github.com/simonw/til/blob/main/webassembly/python-in-a-wasm-sandbox.md)
* [Building Mastodon bots with GitHub Actions and toot](https://github.com/simonw/til/blob/main/mastodon/mastodon-bots-github-actions.md)
* [The SQLite now argument is stable within the same query](https://github.com/simonw/til/blob/main/sqlite/now-argument-stability.md)
* [Avoiding "length" errors in Apache Bench with the -l option](https://github.com/simonw/til/blob/main/ab/apache-bench-length-errors.md)
* [Subqueries in select expressions in SQLite - also window functions](https://github.com/simonw/til/blob/main/sqlite/subqueries-in-select.md)
* [Training nanoGPT entirely on content from my blog](https://github.com/simonw/til/blob/main/llms/training-nanogpt-on-my-blog.md)
* [sips: Scriptable image processing system](https://github.com/simonw/til/blob/main/macos/sips.md)
* [A simple Python wrapper for the ChatGPT API](https://github.com/simonw/til/blob/main/gpt3/chatgpt-api.md)
* [Mocking subprocess with pytest-subprocess](https://github.com/simonw/til/blob/main/pytest/pytest-subprocess.md)
* [Using ChatGPT to write AppleScript](https://github.com/simonw/til/blob/main/gpt3/chatgpt-applescript.md)
* [Using SQL with GDAL](https://github.com/simonw/til/blob/main/gis/gdal-sql.md)
* [Running LLaMA 7B and 13B on a 64GB M2 MacBook Pro with llama.cpp](https://github.com/simonw/til/blob/main/llms/llama-7b-m2.md)
* [Copy rich text to the clipboard](https://github.com/simonw/til/blob/main/javascript/copy-rich-text-to-clipboard.md)
* [How to read Hacker News threads with most recent comments first](https://github.com/simonw/til/blob/main/hacker-news/recent-comments.md)
* [Scraping Reddit and writing data to the Datasette write API](https://github.com/simonw/til/blob/main/datasette/reddit-datasette-write.md)
* [A simple Python implementation of the ReAct pattern for LLMs](https://github.com/simonw/til/blob/main/llms/python-react-pattern.md)
* [Use DuckDB to convert parquet to JSON and then open it in Datasette Lite](https://github.com/simonw/til/blob/main/duckdb/parquet-to-json.md)
* [Convert git log output to JSON using jq](https://github.com/simonw/til/blob/main/jq/git-log-json.md)
* [Using jq in an Observable notebook](https://github.com/simonw/til/blob/main/observable/jq-in-observable.md)
* [Interactive row selection prototype with Datasette](https://github.com/simonw/til/blob/main/datasette/row-selection-prototype.md)
* [Using the ChatGPT streaming API from Python](https://github.com/simonw/til/blob/main/gpt3/python-chatgpt-streaming-api.md)
* [Reading thermometer temperatures over time from a video](https://github.com/simonw/til/blob/main/googlecloud/video-frame-ocr.md)
* [Copy tables between SQLite databases](https://github.com/simonw/til/blob/main/sqlite/copy-tables-between-databases.md)
* [GPT-4 for API design research](https://github.com/simonw/til/blob/main/gpt3/gpt4-api-design.md)
* [Saving an in-memory SQLite database to a file in Python](https://github.com/simonw/til/blob/main/sqlite/python-sqlite-memory-to-file.md)
* [Unix timestamp in milliseconds in SQLite](https://github.com/simonw/til/blob/main/sqlite/unix-timestamp-milliseconds-sqlite.md)
* [Creating desktop backgrounds using Midjourney](https://github.com/simonw/til/blob/main/midjourney/desktop-backgrounds.md)
* [Running Dolly 2.0 on Paperspace](https://github.com/simonw/til/blob/main/llms/dolly-2.md)
* [Interpreting photo orientation and locations in EXIF data](https://github.com/simonw/til/blob/main/exif/orientation-and-location.md)
* [A few notes on Rye](https://github.com/simonw/til/blob/main/python/rye.md)
* [The location of the pip cache directory](https://github.com/simonw/til/blob/main/python/pip-cache.md)
* [Deno KV](https://github.com/simonw/til/blob/main/deno/deno-kv.md)
* [Social media cards generated with shot-scraper](https://github.com/simonw/til/blob/main/shot-scraper/social-media-cards.md)
* [Expanding ChatGPT Code Interpreter with Python packages, Deno and Lua](https://github.com/simonw/til/blob/main/llms/code-interpreter-expansions.md)
* [Running Python code in a Pyodide sandbox via Deno](https://github.com/simonw/til/blob/main/deno/pyodide-sandbox.md)
* [Exploring Baseline with Datasette Lite](https://github.com/simonw/til/blob/main/datasette/baseline.md)
* [hexdump and hexdump -C](https://github.com/simonw/til/blob/main/misc/hexdump.md)
* [mlc-chat - RedPajama-INCITE-Chat-3B on macOS](https://github.com/simonw/til/blob/main/llms/mlc-chat-redpajama.md)
* [Comparing two training datasets using sqlite-utils](https://github.com/simonw/til/blob/main/sqlite/comparing-datasets.md)
* [Testing the Access-Control-Max-Age CORS header](https://github.com/simonw/til/blob/main/http/testing-cors-max-age.md)
* [Consecutive groups in SQL using window functions](https://github.com/simonw/til/blob/main/sql/consecutive-groups.md)
* [Running OpenAI's large context models using llm](https://github.com/simonw/til/blob/main/llms/larger-context-openai-models-llm.md)
* [Using fs_usage to see what files a process is using](https://github.com/simonw/til/blob/main/macos/fs-usage.md)
* [Syncing slide images and audio in iMovie](https://github.com/simonw/til/blob/main/macos/imovie-slides-and-audio.md)
* [Using ChatGPT Browse to name a Python package](https://github.com/simonw/til/blob/main/gpt3/picking-python-project-name-chatgpt.md)
* [Automatically maintaining Homebrew formulas using GitHub Actions](https://github.com/simonw/til/blob/main/homebrew/auto-formulas-github-actions.md)
* [TOML in Python](https://github.com/simonw/til/blob/main/python/toml.md)
* [CLI tools hidden in the Python standard library](https://github.com/simonw/til/blob/main/python/stdlib-cli-tools.md)
* [Bulk editing status in GitHub Projects](https://github.com/simonw/til/blob/main/github/bulk-edit-github-projects.md)
* [A Discord bot to expand issue links to a private GitHub repository](https://github.com/simonw/til/blob/main/discord/discord-github-issues-bot.md)
* [Local wildcard DNS on macOS with dnsmasq](https://github.com/simonw/til/blob/main/macos/wildcard-dns-dnsmasq.md)
* [Custom Jinja template tags with attributes](https://github.com/simonw/til/blob/main/jinja/custom-jinja-tags-with-attributes.md)
* [Syntax highlighted code examples in Datasette](https://github.com/simonw/til/blob/main/datasette/syntax-highlighted-code-examples.md)
* [Python packages with pyproject.toml and nothing else](https://github.com/simonw/til/blob/main/python/pyproject.md)
* [Using OpenAI functions and their Python library for data extraction](https://github.com/simonw/til/blob/main/gpt3/openai-python-functions-data-extraction.md)
* [Using git-filter-repo to set commit dates to author dates](https://github.com/simonw/til/blob/main/git/git-filter-repo.md)
* [Quickly testing code in a different Python version using pyenv](https://github.com/simonw/til/blob/main/python/quick-testing-pyenv.md)
* [Auto-formatting YAML files with yamlfmt](https://github.com/simonw/til/blob/main/yaml/yamlfmt.md)
* [Using tree-sitter with Python](https://github.com/simonw/til/blob/main/python/tree-sitter.md)
* [Using pytest-httpx to run intercepted requests through an in-memory Datasette instance](https://github.com/simonw/til/blob/main/datasette/pytest-httpx-datasette.md)
* [Protocols in Python](https://github.com/simonw/til/blob/main/python/protocols.md)
* [Exploring the Overture Maps places data using DuckDB, sqlite-utils and Datasette](https://github.com/simonw/til/blob/main/overture-maps/overture-maps-parquet.md)
* [axe-core and shot-scraper for accessibility audits](https://github.com/simonw/til/blob/main/shot-scraper/axe-core.md)
* [Checking if something is callable or async callable in Python](https://github.com/simonw/til/blob/main/python/callable.md)
* [Scroll to text fragments](https://github.com/simonw/til/blob/main/html/scroll-to-text.md)
* [Running a Django and PostgreSQL development environment in GitHub Codespaces](https://github.com/simonw/til/blob/main/github/django-postgresql-codespaces.md)
* [Catching up with the Cosmopolitan ecosystem](https://github.com/simonw/til/blob/main/cosmopolitan/ecosystem.md)
* [Combined release notes from GitHub with jq and paginate-json](https://github.com/simonw/til/blob/main/jq/combined-github-release-notes.md)
* [Storing and serving related documents with openai-to-sqlite and embeddings](https://github.com/simonw/til/blob/main/llms/openai-embeddings-related-content.md)
* [Building a blog in Django](https://github.com/simonw/til/blob/main/django/building-a-blog-in-django.md)
* [Processing a stream of chunks of JSON with ijson](https://github.com/simonw/til/blob/main/json/ijson-stream.md)
* [Running multiple servers in a single Bash script](https://github.com/simonw/til/blob/main/bash/multiple-servers.md)
* [A simple pattern for inlining binary content in a Python script](https://github.com/simonw/til/blob/main/python/inlining-binary-data.md)
* [A one-liner to output details of the current Python's SQLite](https://github.com/simonw/til/blob/main/sqlite/python-sqlite-environment.md)
* [A shell script for running Go one-liners](https://github.com/simonw/til/blob/main/bash/go-script.md)
* [Updating stable docs in ReadTheDocs without pushing a release](https://github.com/simonw/til/blob/main/readthedocs/stable-docs.md)
* [Calculating the size of a SQLite database file using SQL](https://github.com/simonw/til/blob/main/sqlite/database-file-size.md)
* [Configuring Django SQL Dashboard for Fly PostgreSQL](https://github.com/simonw/til/blob/main/fly/django-sql-dashboard.md)
* [Compile and run a new SQLite version with the existing sqlite3 Python library on macOS](https://github.com/simonw/til/blob/main/sqlite/sqlite-version-macos-python.md)
* [Downloading partial YouTube videos with ffmpeg](https://github.com/simonw/til/blob/main/macos/downloading-partial-youtube-videos.md)
* [Streaming output of an indented JSON array](https://github.com/simonw/til/blob/main/json/streaming-indented-json-array.md)
* [Remember to commit when using datasette.execute_write_fn()](https://github.com/simonw/til/blob/main/datasette/remember-to-commit.md)
* [Running Datasette on Hugging Face Spaces](https://github.com/simonw/til/blob/main/datasette/hugging-face-spaces.md)
* [Embedding paragraphs from my blog with E5-large-v2](https://github.com/simonw/til/blob/main/llms/embed-paragraphs.md)
* [Summarizing Hacker News discussion themes with Claude and LLM](https://github.com/simonw/til/blob/main/llms/claude-hacker-news-themes.md)
* [Trying out cr-sqlite on macOS](https://github.com/simonw/til/blob/main/sqlite/cr-sqlite-macos.md)
* [Using llama-cpp-python grammars to generate JSON](https://github.com/simonw/til/blob/main/llms/llama-cpp-python-grammars.md)
* [Running tests against multiple versions of a Python dependency in GitHub Actions](https://github.com/simonw/til/blob/main/github-actions/running-tests-against-multiple-verisons-of-dependencies.md)
* [Limited JSON API for Google searches using Programmable Search Engine](https://github.com/simonw/til/blob/main/google/json-api-programmable-search-engine.md)
* [Trying out the facebook/musicgen-small sound generation model](https://github.com/simonw/til/blob/main/machinelearning/musicgen.md)
* [Geospatial SQL queries in SQLite using TG, sqlite-tg and datasette-sqlite-tg](https://github.com/simonw/til/blob/main/sqlite/sqlite-tg.md)
* [Snapshot testing with Syrupy](https://github.com/simonw/til/blob/main/pytest/syrupy.md)
* [Understanding the CSS auto-resizing textarea trick](https://github.com/simonw/til/blob/main/css/resizing-textarea.md)
* [Deploying the CLIP embedding model on Fly](https://github.com/simonw/til/blob/main/fly/clip-on-fly.md)
* [Serving a JavaScript project built using Vite from GitHub Pages](https://github.com/simonw/til/blob/main/github-actions/vite-github-pages.md)
* [Serving a custom vector web map using PMTiles and maplibre-gl](https://github.com/simonw/til/blob/main/gis/pmtiles.md)
* [A simple two column CSS grid](https://github.com/simonw/til/blob/main/css/simple-two-column-grid.md)
* [Summing columns in remote Parquet files using DuckDB](https://github.com/simonw/til/blob/main/duckdb/remote-parquet.md)
* [Cloning my voice with ElevenLabs](https://github.com/simonw/til/blob/main/misc/voice-cloning.md)
* [Running pip install '.[docs]' on ReadTheDocs](https://github.com/simonw/til/blob/main/readthedocs/pip-install-docs.md)
* [Cryptography in Pyodide](https://github.com/simonw/til/blob/main/pyodide/cryptography-in-pyodide.md)
* [Grabbing a transcript of a short snippet of a YouTube video with MacWhisper](https://github.com/simonw/til/blob/main/macos/quick-whisper-youtube.md)
* [Editing an iPhone home screen using macOS](https://github.com/simonw/til/blob/main/macos/edit-ios-home-screen.md)
* [Running Steampipe extensions in sqlite-utils and Datasette](https://github.com/simonw/til/blob/main/sqlite/steampipe.md)
* [GitHub Actions, Issues and Pages to build a daily planner](https://github.com/simonw/til/blob/main/github-actions/daily-planner.md)
* [Running Varnish on Fly](https://github.com/simonw/til/blob/main/fly/varnish-on-fly.md)
* [How to get Cloudflare to cache HTML](https://github.com/simonw/til/blob/main/cloudflare/cloudflare-cache-html.md)
* [Writing Playwright tests for a Datasette Plugin](https://github.com/simonw/til/blob/main/datasette/playwright-tests-datasette-plugin.md)
* [literalinclude with markers for showing code in documentation](https://github.com/simonw/til/blob/main/sphinx/literalinclude-with-markers.md)
* [Using expect() to wait for a selector to match multiple items](https://github.com/simonw/til/blob/main/playwright/expect-selector-count.md)
* [Using pprint() to print dictionaries while preserving their key order](https://github.com/simonw/til/blob/main/python/pprint-no-sort-dicts.md)
* [Publish releases to PyPI from GitHub Actions without a password or token](https://github.com/simonw/til/blob/main/pypi/pypi-releases-from-github.md)
* [Logging OpenAI API requests and responses using HTTPX](https://github.com/simonw/til/blob/main/httpx/openai-log-requests-responses.md)
* [Exploring ColBERT with RAGatouille](https://github.com/simonw/til/blob/main/llms/colbert-ragatouille.md)
* [Creating GitHub repository labels with an Actions workflow](https://github.com/simonw/til/blob/main/github-actions/creating-github-labels.md)
* [Piping from rg to llm to answer questions about code](https://github.com/simonw/til/blob/main/llms/rg-pipe-llm-trick.md)
* [Running Ethernet over existing coaxial cable](https://github.com/simonw/til/blob/main/networking/ethernet-over-coaxial-cable.md)
* [Getting Python MD5 to work with FIPS systems](https://github.com/simonw/til/blob/main/python/md5-fips.md)
* [Running a scheduled function on Val Town to import Atom feeds into Datasette Cloud](https://github.com/simonw/til/blob/main/valtown/scheduled.md)
* [Tracking SQLite table history using a JSON audit log](https://github.com/simonw/til/blob/main/sqlite/json-audit-log.md)
* [Using packages from JSR with esbuild](https://github.com/simonw/til/blob/main/javascript/jsr-esbuild.md)
* [Generating URLs to a Gmail compose window](https://github.com/simonw/til/blob/main/google/gmail-compose-url.md)
* [SQLite timestamps with floating point seconds](https://github.com/simonw/til/blob/main/sqlite/floating-point-seconds.md)
* [Redirecting a whole domain with Cloudflare](https://github.com/simonw/til/blob/main/cloudflare/redirect-whole-domain.md)
* [Programmatically comparing Python version strings](https://github.com/simonw/til/blob/main/python/comparing-version-numbers.md)
* [Running self-hosted QuickJS in a browser](https://github.com/simonw/til/blob/main/npm/self-hosted-quickjs.md)
* [Reviewing your history of public GitHub repositories using ClickHouse](https://github.com/simonw/til/blob/main/clickhouse/github-public-history.md)
* [Google Chrome --headless mode](https://github.com/simonw/til/blob/main/chrome/headless.md)
* [Installing tools written in Go](https://github.com/simonw/til/blob/main/go/installing-tools.md)
* [impaste: pasting images to piped commands on macOS](https://github.com/simonw/til/blob/main/macos/impaste.md)
* [A script to capture frames from a QuickTime video](https://github.com/simonw/til/blob/main/macos/quicktime-capture-script.md)
* [Transcribing MP3s with whisper-cpp on macOS](https://github.com/simonw/til/blob/main/macos/whisper-cpp.md)
* [How I studied for my Ham radio general exam](https://github.com/simonw/til/blob/main/ham-radio/general.md)
* [Listen to a web page in Mobile Safari](https://github.com/simonw/til/blob/main/ios/listen-to-page.md)
* [Cloudflare redirect rules with dynamic expressions](https://github.com/simonw/til/blob/main/cloudflare/redirect-rules.md)
* [Upgrade Postgres.app on macOS](https://github.com/simonw/til/blob/main/postgresql/upgrade-postgres-app.md)
* [Running Prettier against Django or Jinja templates](https://github.com/simonw/til/blob/main/npm/prettier-django.md)
* [Mocking Stripe signature checks in a pytest fixture](https://github.com/simonw/til/blob/main/pytest/pytest-stripe-signature.md)
* [Accessing 1Password items from the terminal](https://github.com/simonw/til/blob/main/macos/1password-terminal.md)
* [Trying out free-threaded Python on macOS](https://github.com/simonw/til/blob/main/python/trying-free-threaded-python.md)
* [HTML video with subtitles](https://github.com/simonw/til/blob/main/html/video-with-subtitles.md)
* [Back-dating Git commits based on file modification dates](https://github.com/simonw/til/blob/main/git/backdate-git-commits.md)
* [Assistance with release notes using GitHub Issues](https://github.com/simonw/til/blob/main/github/release-note-assistance.md)
* [Using pytest-django with a reusable Django application](https://github.com/simonw/til/blob/main/django/pytest-django.md)
* [Using sqlite-vec with embeddings in sqlite-utils and Datasette](https://github.com/simonw/til/blob/main/sqlite/sqlite-vec.md)
* [Using namedtuple for pytest parameterized tests](https://github.com/simonw/til/blob/main/pytest/namedtuple-parameterized-tests.md)
* [Testing HTML tables with Playwright Python](https://github.com/simonw/til/blob/main/playwright/testing-tables.md)
* [How streaming LLM APIs work](https://github.com/simonw/til/blob/main/llms/streaming-llm-apis.md)
* [Building an automatically updating live blog in Django](https://github.com/simonw/til/blob/main/django/live-blog.md)
* [Compiling and running sqlite3-rsync](https://github.com/simonw/til/blob/main/sqlite/compile-sqlite3-rsync.md)
* [Collecting replies to tweets using JavaScript](https://github.com/simonw/til/blob/main/twitter/collecting-replies.md)
* [Upgrading Homebrew and avoiding the failed to verify attestation error](https://github.com/simonw/til/blob/main/homebrew/no-verify-attestations.md)
* [Livestreaming a community election event on YouTube](https://github.com/simonw/til/blob/main/youtube/livestreaming.md)
* [The most basic possible Hugo site](https://github.com/simonw/til/blob/main/hugo/basic.md)
* [Running prompts against images, PDFs, audio and video with Google Gemini](https://github.com/simonw/til/blob/main/llms/prompt-gemini.md)
* [Setting cache-control: max-age=31536000 with a Cloudflare Transform Rule](https://github.com/simonw/til/blob/main/cloudflare/cache-control-transform-rule.md)
* [Using uv to develop Python command-line applications](https://github.com/simonw/til/blob/main/python/uv-cli-apps.md)
* [Installing flash-attn without compiling it](https://github.com/simonw/til/blob/main/python/installing-flash-attention.md)
* [Generating documentation from tests using files-to-prompt and LLM](https://github.com/simonw/til/blob/main/llms/docs-from-tests.md)
* [Running cog automatically against GitHub pull requests](https://github.com/simonw/til/blob/main/github-actions/cog.md)
* [GitHub OAuth for a static site using Cloudflare Workers](https://github.com/simonw/til/blob/main/cloudflare/workers-github-oauth.md)
* [Publishing a simple client-side JavaScript package to npm with GitHub Actions](https://github.com/simonw/til/blob/main/npm/npm-publish-github-actions.md)
* [Fixes for datetime UTC warnings in Python](https://github.com/simonw/til/blob/main/python/utc-warning-fix.md)
* [Named Entity Resolution with dslim/distilbert-NER](https://github.com/simonw/til/blob/main/llms/bert-ner.md)
* [Calculating the size of all LFS files in a repo](https://github.com/simonw/til/blob/main/git/size-of-lfs-files.md)
* [Downloading every video for a TikTok account](https://github.com/simonw/til/blob/main/tiktok/download-all-videos.md)
* [Geocoding from Python on macOS using pyobjc-framework-CoreLocation](https://github.com/simonw/til/blob/main/python/pyobjc-framework-corelocation.md)
* [Running pytest against a specific Python version with uv run](https://github.com/simonw/til/blob/main/pytest/pytest-uv.md)
* [Trying out Python packages with ipython and uvx](https://github.com/simonw/til/blob/main/python/itry.md)
* [Using S3 triggers to maintain a list of files in DynamoDB](https://github.com/simonw/til/blob/main/aws/s3-triggers-dynamodb.md)
* [Using a Tailscale exit node with GitHub Actions](https://github.com/simonw/til/blob/main/tailscale/tailscale-github-actions.md)
* [Running jupyterlab via uv tool install](https://github.com/simonw/til/blob/main/jupyter/jupyterlab-uv-tool-install.md)
* [Styling an HTML dialog modal to take the full height of the viewport](https://github.com/simonw/til/blob/main/css/dialog-full-height.md)
* [Building and deploying a custom site using GitHub Actions and GitHub Pages](https://github.com/simonw/til/blob/main/github-actions/github-pages.md)
* [SQLite triggers](https://github.com/simonw/til/blob/main/sqlite/sqlite-triggers.md)
* [A tip for debugging pytest-httpx](https://github.com/simonw/til/blob/main/pytest/pytest-httpx-debug.md)
* [Redirecting a domain using Cloudflare Pages](https://github.com/simonw/til/blob/main/cloudflare/domain-redirect-with-pages.md)
* [Publishing a Docker container for Microsoft Edit to the GitHub Container Registry](https://github.com/simonw/til/blob/main/github/container-registry.md)
* [Converting ORF raw files to JPEG on macOS](https://github.com/simonw/til/blob/main/macos/orf-to-jpeg.md)
* [Using Playwright MCP with Claude Code](https://github.com/simonw/til/blob/main/claude-code/playwright-mcp-claude-code.md)
* [Rate limiting by IP using Cloudflare's rate limiting rules](https://github.com/simonw/til/blob/main/cloudflare/rate-limiting.md)
Powered by Datasette · Queries took 4.8ms · About: simonw/til