Skip to content

Instantly share code, notes, and snippets.

@tbiehn
tbiehn / stumbling.md
Last active July 3, 2022 13:20
Faster Matrix Synapse - Debian - Nginx, Postgres, PyPy, & Workers

Faster Synapse (v0.33.0)

Quickstart guides get you a slow Synapse.

This is mostly a delta guide, unfortunately - you'll need to read all the other things to get this to work.

If you already have a Synapse server instance running, and you're going to switch from sqlite to postgres... Use Synapse's migration script. If you don't use the migration script Very Bad Things are supposed to happen.

Guide Assumptions

/etc/matrix-synapse/ Contains .yaml, homeserver.yaml, *.log.conf, etc.

@tbiehn
tbiehn / m01415_a0.cl
Last active August 24, 2019 01:50
HashCat unoptimized OpenCL kernel for sha256(sha256($pass).$salt) (XenForo SHA-256)
/**
* Author......: See docs/credits.txt
* License.....: MIT
* 1415 sha256(sha256($pass).$salt)
KERN_TYPE_SHA256_PW_SHA256_SLT
static const char *HT_01415 = "sha256(sha256($pass).$salt)";
DISPLAY_LEN_MIN_1411 = 64 + 1 + 0,
DISPLAY_LEN_MAX_1411 = 64 + 1 + SALT_MAX,
DISPLAY_LEN_MIN_1411H = 64 + 1 + 0,
DISPLAY_LEN_MAX_1411H = 64 + 1 + (SALT_MAX * 2),

Keybase proof

I hereby claim:

  • I am tbiehn on github.
  • I am tbiehn (https://keybase.io/tbiehn) on keybase.
  • I have a public key whose fingerprint is 2A49 E991 DD86 E1CD 1117 4C65 0C79 92C6 3856 CEAB

To claim this, I am signing this object: