Skip to content

Instantly share code, notes, and snippets.

\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 = []
@Romern
Romern / Ablauf.md
Last active February 9, 2020 18:55
Netzclub App Ablauf

Anfordern des Verifikationscodes via SMS

https://netzclub.postr.co.nz/SendVerify?mobile=[MOBILE NUMBER]&timestamp=[TIMESTAMP]&version=21&sdk_version=28  

[MOBILE NUMBER]: bspw. 01590123456
[TIMESPAMP]: bspw. 2019-02-02T13%3A00%3A20%2B0100

Returns:

{
@Romern
Romern / Output
Last active January 24, 2019 21:26
https://www.youtube.com/watch?v=RGQe8waGJ4w Comment asked what would happen if you marked 2084 as visited
Normally:
Current Position: (510,477)=2084
2084 visited at the beginning:
Current Position: (474,489)=2720
Mark all blocking as visited:
Blocking numbers:
2084,2720,3325,3753,7776,5632,7411,8562,14076,8469,9231,22702,14661,21710,21078,25809,27112,24708,19844,26943,26737,32449,31366,45036,37853,37188,43318,62095,67401,68736,70848,62789,63223,69245,85385,52467,71072,68435,76611,84206,81869,70277,81475,83776,70767,84763,99029,82609,103815,86102,93729,100614,108039,82111,99935,85283,109993,119856,119518,116066,109686,92741,124770,92378,104657,125102,107267,107246,117089,117766,99295,121575,98930,117390,123583,112565,122080,111612,111597,97349,105002,130602,133509,153410,127138,143952,153326,157774,122534,136542,163038,134778,140186,162865,171044,159637,171041,174368,184225,152988,176535,171506,147883,172360,156132,179411,179238,175850,168569,195533,191278,168006,204000,171467,144410,211291,188859,213596,225332,212859,201021,240304,233933,183242,237743,219573,162013,230993,272187,255213,254682,208965,252154,24164
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
name: v1beta1.external.metrics.k8s.io
spec:
service:
name: ponderous-catfish-prometheus-adapter
namespace: monitoring
group: external.metrics.k8s.io
version: v1beta1