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

Fix magisk stock backup does not exist

# put stock boot.img into /sdcard/boot.img

# get sha1
adb shell
su
SHA1=$(cat $(magisk --path)/.magisk/config | grep SHA1 | cut -d '=' -f 2)
@jauderho
jauderho / Time Servers with NTS support.md
Last active May 24, 2025 01:37
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 / [email protected]
Last active December 17, 2024 15:21
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 January 28, 2025 13:57
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 June 16, 2025 08:54
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@bmaupin
bmaupin / open-source-sso.md
Last active June 15, 2025 20:59
Comparison of some open-source SSO implementations

⚠️ This is not maintained. Feel free to check comments and/or forks for more current options.

Background

This was created years ago; at the time I'd been a Shibboleth admin for nearly a decade but we needed something that could handle OIDC/OAuth and that explicitly supported OpenJDK. After a lot of investigation, I really liked Keycloak/Red Hat Single Sign-On. More details here: Gluu vs keycloack vs wso2 identity management

Comparison

(Items in bold indicate possible concerns)