Skip to content

Instantly share code, notes, and snippets.

View Mikaela's full-sized avatar

Aminda Suomalainen ⚧ Mikaela

View GitHub Profile
@jae1911
jae1911 / kicker.py
Last active May 2, 2022 18:29
Python kick matcher
from json import loads
from logging import getLogger
from time import wait
from requests import get, post
_HOMESERVER_URI = ""
_USER_TOKEN = ""
_ROOMID = ""
_TOMATCH = ""
@hifi
hifi / custom-room-upgrade.sh
Created October 11, 2021 06:50
Upgrade Matrix rooms with custom power level override for yourself (aka hijack a room with upgrade)
#!/bin/bash
set -e
mx_get() {
curl -s -H "Authorization: Bearer $TOKEN" $HS/$1
}
mx_post() {
curl -s -X POST -H "Authorization: Bearer $TOKEN" -H "Content-type: application/json" -d "$1" $HS/$2
@jauderho
jauderho / Time Servers with NTS support.md
Last active November 22, 2023 16:26
A curated list of NTP time servers that support NTS
@progandy
progandy / README.md
Last active September 26, 2023 08:27
Sway output mirror and screencast

Sway output mirror and screencast

Mirror

wf-recorder

With wf-recorder it is possible to record one output. When ffmpeg is compiled with sdl support, then it is possible to use "sdl" as the muxer and replay the recorded video instead of writing it to a file.

/*fix timestamp width in monospace themes*/
#chat.show-seconds .time, #chat.show-seconds .chat-view[data-type="channel"] .msg.highlight .time {
width: auto;
}
/*hide message sender name if it comes from the same person as the last one*/
.msg.previous-source .from {
visibility: hidden;
}
@Arano-kai
Arano-kai / duperemove-weekly@.timer
Last active January 22, 2024 20:36
SystemD service and timer templates for duperemove.
[Unit]
# Usage: systemctl enable --now duperemove-weekly@$(systemd-escape <path>).timer
# Utilize %J specifier for duration set.
# One can hardlink/copy with 'weekly' part changed
# to set other duration.
Description=Deduplicate %I at calendar event (%J)
After=local-fs.target
Requires=local-fs.target
Conflicts=shutdown.target rescue.target rescue.service emergency.service
@dnmodder
dnmodder / fixcontroller.py
Last active March 10, 2024 14:25
This script should no longer be necessary thanks to the latest changes made to the master branch of the xpad [https://github.com/paroj/xpad] driver, please give it a try and report any regressions you find.
#!/usr/bin/env python3
import os
import sys
try:
import usb.core
import usb.util
except ImportError:
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active April 26, 2024 17:20
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@bmaupin
bmaupin / open-source-sso.md
Last active April 11, 2024 09:36
Comparison of some open-source SSO implementations

ⓘ This list is not meant to be exhaustive and is not guaranteed to be maintained. See the comments for updates and alternative options.

(Items in bold indicate possible concerns)

Keycloak WSO2 Identity Server Gluu CAS OpenAM Shibboleth IdP
OpenID Connect/OAuth support yes yes yes yes yes yes
Multi-factor authentication yes yes yes yes yes yes
Admin UI yes yes yes yes yes no
OpenJDK support yes yes partial² yes
@trysten
trysten / autossh.service
Last active October 14, 2018 20:53
autossh v0.3
# This unit file is meant to be run on a user service.
# Put it in ~/.config/systemd/user/ and enable it with `systemctl --user enable autossh`
# Use `loginctl enable-linger username` to start systemd user service at boot
# help here: https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
[Unit]
Description=Maintain an ssh tunnel with systemd. What could go wrong?
After=network.target
[Service]
#user should set automatically