Skip to content

Instantly share code, notes, and snippets.

export EDITOR=nano
export ZSH="/home/roman/.oh-my-zsh"
ZSH_THEME="agnoster"
plugins=(
git
shrink-path
z
)
source $ZSH/oh-my-zsh.sh
prompt_dir(){
@Romern
Romern / config
Created October 25, 2018 09:34
i3config
set $mod Mod4
set $alt Mod1
font pango:monospace, Fontawesome 9
#font pango:Source Code Pro, Fontawesome 9
#font pango:scientifica, Fontawesome 9
#font pango:xft:scientifica:size=8
floating_modifier $mod
bindsym $alt+Tab workspace next
---
apiVersion: v1
kind: Service
metadata:
name: traefik-web-ui
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
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
@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
@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:

{
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 / 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"]');
@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 / 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",