Skip to content

Instantly share code, notes, and snippets.

View kescherCode's full-sized avatar
📺
amogus

Jeremy Kescher kescherCode

📺
amogus
View GitHub Profile
@jae1911
jae1911 / event.json
Created May 3, 2022 09:53
ACL event
{
"content": {
"allow": [
"*"
],
"allow_ip_literals": false,
"deny": []
},
"origin_server_ts": 1651571483568,
"sender": "@jaedotmoe:matrix.org",
@lxhom
lxhom / uwu.js
Created May 9, 2021 16:41
fuck
(((((((( (((((((((((((((( (((((((((((((((( ((((((((
(((((((( (((((((((((((((! []+[])[!+[]+!+[] ]+((+[])
[([][(![ ]+[])[+[]]+(![]+ [])[!+[]+!+[]]+( ![]+[])[
+!+[]]+( !![]+[])[+[]]]+[ ])[!+[]+!+[]+!+[ ]]+(!![]
+[][(![ ]+[])[+ []]+(![ ]+[]) [!+[]+! +[]]+(! []+[])[
+!+[]]+ (!![]+[ ])[+[]] ])[+!+[ ]+[+[]] ]+([][[ ]]+[])[
+!+[]]+ (![]+[] )[!+[]+ !+[]+!+[] ]+(!![] +[])[+[ ]]+(!![
]+[])[+ !+[]]+( [][[]]+ [])[+[]]+([ ][(![]+ [])[+[] ]+(![]+
[])[!+[ ]+!+[]] +(![]+[ ])[+!+[]]+(!! []+[])[ +[]]]+[ ])[!+[]
+!+[]+! +[]]+(! ![]+[]) [+[]]+( !![]+[] [(![]+[ ])[+[]] +(![]+[
@jonasgeiler
jonasgeiler / cache.js
Last active December 21, 2020 17:28
Simple in-memory cache implementation for JavaScript
/**
* @typedef CacheOptions
* @type {object}
* @property {number | undefined} maxSize
* @property {number | undefined} maxAge Max Age in Minutes
* @property {any[] | undefined} entries
*/
class Cache extends Map {
@maxidorius
maxidorius / matrix-howto-synapse_coturn.md
Last active June 20, 2024 17:48
Working config for VoIP in Matrix: synapse + coturn

This configuration is provided AS-IS and as an example/reference for those who do not find a working configuration for themselves. It is not always kept up to date and no support is provided.

Assuming:

  • Your Matrix domain: example.org
  • Your TURN domain (arbitrary): turn.example.org
  • Your Public IP: 1.2.3.4
  • Your Private IP for the box hosing the services: 10.11.12.13
  • A shared secret between synapse and coturn: ThisIsASharedSecret-ChangeMe
  • You want Firefox compatiblity (TURNS only is not supported)
@mosquito
mosquito / README.md
Last active June 17, 2024 20:26
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service