Skip to content

Instantly share code, notes, and snippets.

@thesamesam
thesamesam / xz-backdoor.md
Last active April 7, 2025 09:15
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@dbaynard
dbaynard / pg16-exts-failures
Last active October 4, 2023 22:13
Build failures (and successes) for postgres extensions
> for i in 'age' 'apache_datasketches' 'cstore_fdw' 'jsonb_deep_sum' 'override' 'overrideDerivation' 'periods' 'pg_auto_failover' 'pg_bigm' 'pg_cron' 'pg_ed25519' 'pg_hint_plan' 'pg_hll' 'pg_ivm' 'pg_net' 'pg_partman' 'pg_rational' 'pg_relusage' 'pg_repack' 'pg_safeupdate' 'pg_similarity' 'pg_topn' 'pgaudit' 'pgjwt' 'pgroonga' 'pgrouting' 'pgsql-http' 'pgtap' 'pgvector' 'pipelinedb' 'plpgsql_check' 'plr' 'plv8' 'postgis' 'promscale_extension' 'recurseForDerivations' 'repmgr' 'rum' 'smlar' 'tds_fdw' 'temporal_tables' 'timescaledb' 'timescaledb-apache' 'timescaledb_toolkit' 'tsearch_extras' 'wal2json'; do
nix build -L "n#postgresql15Packages.${i}" && print -l -- "\nBuilt ${i} (15)\n"
nix build -L "n#postgresql16Packages.${i}" && print -l -- "\nBuilt ${i} (16)\n"
done
error:
… in the condition of the assert statement
at /nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source/lib/customisation.nix:222:17:
221| in commonAttrs // {
@bohanyang
bohanyang / docker-compose.yml
Created July 5, 2023 13:57
PostgREST JWKS
services:
jwks-updater:
image: jwks-updater
build:
context: .
dockerfile: ./jwks-updater.Dockerfile
depends_on:
postgres: # Disable this if you are using an external Postgres database
condition: service_healthy
postgrest:
@gpshead
gpshead / ipv6-only-host.md
Last active January 27, 2025 13:06
IPv6 Only Linux host HOW-TO [Ubuntu]

Making a Linux host IPv6 only (No IPv4 at all)

Notes on what I had to do it setup an IPv6 only Ubuntu bionic 20.04 host.

Revisions:

updated: 2020-04-06 (virus times, whatcha gonna do?)
updated: 2020-10-24 (still virus times...)
2022-03-22, Posted as a Gist because it always should've been...


@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active April 17, 2025 05:24
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@joelonsql
joelonsql / JOIN FOREIGN.md
Last active February 8, 2023 23:29
SQL language proposal: JOIN FOREIGN

SQL language proposal: JOIN FOREIGN

The idea is to improve the SQL language, specifically the join syntax, for the special but common case when joining on foreign key columns.

The problem

Example below taken from PostgreSQL documentation [1]

In SQL-89, we didn't have any JOIN syntax yet, so queries were written in this way:

@wolfgangwalther
wolfgangwalther / node_tree_json.md
Last active April 6, 2021 16:14
Explaining View Embedding in PostgREST #2: pg_node_tree to JSON
@z11i
z11i / upload.sh
Last active November 16, 2024 22:05
Use curl to upload a file in a multipart/form-data request, with custom content-type for the file (not the request)
filename='yourfilename'
filetype='text/csv'
token='my oauth token'
url='http://localhost/upload'
curl "$url" \
--form "data=@$filename;type=$filetype" \
--form "name=somename" \
-H "Authorization: Bearer $token"
@bratorange
bratorange / nix_env_unstable_guide.md
Last active July 8, 2024 13:49
Adding the nix unstable channel

Using the nipkgs unstable channel

Motivation

There a times when you need to build something from the nix unstable channel. For example the master contains a new package you need, but the next nixpkgs release is somewhere in the future, and you need this package now. In this guide I want to show how to install packages from unstable by using nix-env. Furthermore I hope to give a basic understanding of the channels concept.

What are nix channels?

A channel is a set of expressions which includes severall build, installation and configuration instructions for packages, services and the system itself. The repository normaly used here is nixpkgs. It is developed at https://github.com/NixOS/nixpkgs.

What is the nix unstable channel?

The unstable channel is a copy of the NixOS/nixpkgs master. It is pulled from github once in a while and will be available from a mirror under https://nixos.org/channels/nixpkgs-unstable. Since NixOS uses half-anual released stable channels, some changes (especially new f