Skip to content

Instantly share code, notes, and snippets.

@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)
@xujiaao
xujiaao / android-set-ntp-server.md
Last active April 17, 2024 03:40
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@acundari
acundari / traefik-auth.conf
Last active December 6, 2022 09:41
Traefik fail2ban
# /etc/fail2ban/filter.d/traefik-auth.conf
[Definition]
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .+\" 401 .+$
@cbachert
cbachert / install_cacert_on_android_via_adb.sh
Created March 26, 2017 20:07
Install CAcert on android via adb
#!/bin/bash
# Compiled by following instructions on https://wiki.cacert.org/FAQ/ImportRootCert
ADB="/home/christian/android-sdk-linux/platform-tools/adb"
ROOT_CRT="cacert-root.crt"
INT_CRT="cacert-class3.crt"
curl -o "$ROOT_CRT" "https://www.cacert.org/certs/root.crt"
curl -o "$INT_CRT" "https://www.cacert.org/certs/class3.crt"
@robsonke
robsonke / checkDockerDisks.sh
Last active February 18, 2024 12:44
This Bash script will loop through all running docker containers on a host and list the disk usage per mount. In case it's breaching the 65%, it will email you.
#!/bin/bash
# get all running docker container names
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}')
host=$(hostname)
# loop through all containers
for container in $containers
do
echo "Container: $container"
@ruebot
ruebot / gccaedits IP ranges
Last active June 3, 2020 04:44
These are the IP ranges used for @gccaedits. These IP address come from here: https://en.wikipedia.org/wiki/Wikipedia:Blocking_IP_addresses. If you know of more that should be added, please contact @ruebot, and/or comment here.
"ranges": {
"Government of Canada": [
["192.139.201.0", "192.139.201.255"],
["192.139.202.0", "192.139.202.255"],
["192.139.203.0", "192.139.203.255"],
["192.139.204.0", "192.139.204.255"],
["192.197.77.0", "192.197.77.255"],
["192.197.78.0", "192.197.78.255"],
["192.197.80.0", "192.197.80.255"],
["192.197.84.0", "192.197.84.255"],