Skip to content

Instantly share code, notes, and snippets.

View conor-f's full-sized avatar

Conor Flynn conor-f

View GitHub Profile
@matusnovak
matusnovak / README.md
Last active June 20, 2024 11:27
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix

matrix.org chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
macro for(definition, condition, incrimentation, &block)
{{definition}}
while {{condition}}
{{block.body}}
{{incrimentation}}
end
end
macro for(expr)
({{expr.args.first.args.first}}).each do |{{expr.name.id}}|
@zopieux
zopieux / fipradio.py
Last active August 29, 2024 21:17
FIP radio live metadata
# Displays the currently playing media at FIP radio
# http://www.fipradio.fr/player
# You may want to update the number at the end of the URL
# if you use a specific "style" channel instead of the
# generic (main) channel, which is 7.
import requests
import time
import subprocess