Skip to content

Instantly share code, notes, and snippets.

@Romern
Romern / spatula-examples.md
Last active June 21, 2025 11:59
Goog-Spatula Header Stuff
import requests, pickle
from bs4 import BeautifulSoup as bs
import os
import unicodedata
import string
import re
from contextlib import closing
import urllib.parse
import youtube_dl
import json
02-06 21:31:14.049 3770 6135 I ActivityManager: Start proc 26859:com.tier.app/u0a37 for activity com.tier.app/.ui.splash.SplashActivity
02-06 21:31:14.436 26859 26876 W DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
02-06 21:31:14.471 26859 26881 W DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
02-06 21:31:14.481 26859 26881 I FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
02-06 21:31:14.504 26859 26859 I FirebaseInitProvider: FirebaseApp initialization successful
02-06 21:31:14.620 26859 26886 I FA : App measurement is starting up, version: 19000
02-06 21:31:14.620 26859 26886 I FA : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
02-06 21:31:14.621 26859 26886 I FA : To enable faster debug mode event logging run:
02-06 21:31:14.621 26859 26886 I FA : adb shell setprop debug.firebase.analytics.app com.tier.app
02-06 21:31:14.635 26859 26859 I Cras
\documentclass{exercisesheet}
\newcommand{\BlattNr}{1}
\title{Vorlesung, Übung \BlattNr}
\author{
Max Mustermann \\ 123456
\and
Erika Musterfrau \\ 123457
\and
Spock \\ 694200
}
@Romern
Romern / velocity.py
Created September 20, 2019 13:33
velocity api
import requests
import json
#Station 53 ist Mörgensstraße
baseurl = "https://cms.velocity-aachen.de/backend"
def login(email, password):
#Login:
param = {"j_username": email,
@Romern
Romern / 0002-do-not-replace-playlist.patch
Created August 18, 2019 15:12
Patch to default "drag-and-drop"-ing of files onto mpv's window will add it to the playlist instead of replacing it. When I want to replace it, I usually just close the window and open the files in a new mpv session, so I don't see the point really
--- a/video/out/x11_common.c 2019-08-18 17:07:38.048011729 +0200
+++ b/video/out/x11_common.c 2019-08-18 17:05:50.504672000 +0200
@@ -920,7 +920,7 @@
if (prop) {
enum mp_dnd_action action =
x11->dnd_requested_action == XA(x11, XdndActionCopy) ?
- DND_REPLACE : DND_APPEND;
+ DND_APPEND : DND_REPLACE;
char *mime_type = x11_dnd_mime_type(x11, x11->dnd_requested_format);
@Romern
Romern / StudyDriveDownloader.py
Last active March 3, 2020 15:58
StudyDriveDownloader: Python implementation of the StudyDrive API
import requests
import json
import os
from datetime import datetime
baseurl = "https://api.studydrive.net/"
def login(user, passwd):
param = {"client_id": 4,
"client_secret": "nmGaT4rJ3VVGQXu75ymi5Cu5bdqb3tFnkWw9f1IX",
@Romern
Romern / README.md
Last active April 13, 2020 17:38
Building manifest for LineageOS 15.1 with MicroG for the Moto G4 (Plus)
docker run \
    -e "BRANCH_NAME=lineage-15.1" \
    -e 'JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"'\
    -e "DEVICE_LIST=athene" \
    -e "SIGN_BUILDS=true" \
    -e "INCLUDE_PROPRIETARY=true" \
@Romern
Romern / autoskip.js
Created June 16, 2019 10:30
Userscript for automatically skipping ads on Amazon Prime Video.
// ==UserScript==
// @name Amazon autoskip
// @version 1
// @author Roman Karwacik
// @run-at document-start
// @match https://www.amazon.de/gp/video/detail/*
// ==/UserScript==
setInterval(function() {
var skipButton = document.querySelector('div[class="adSkipButton skippable"]');
import soundfile as sf
import pyloudnorm as pyln
from numpy import inf
data, rate = sf.read("example_file.wav") # load audio (with shape (samples, channels))
meter = pyln.Meter(rate) # create BS.1770 meter
threshold = -inf
loudness = []
currently_quiet = False
timestamps = []