Skip to content

Instantly share code, notes, and snippets.

@sk22
sk22 / webuntis-save-password.md
Last active September 15, 2017 07:57
WebUntis prompt to save the password

Chrome WebUntis password save prompt

The Problem

When logging into WebUntis, Chrome doesn't prompt to save your username and password as it does on other websites. So whenever you open up WebUntis (for some reason the session doesn't last long), you have newly enter your username and password every time. So why do this if Chrome could just enter it for you?

Now I tried to alter that code so Chrome can save the username-password

@sk22
sk22 / slug.regex
Created December 13, 2017 19:18
Regex to match a slug
^[a-z0-9]+(?:-[a-z0-9]+)*$
@sk22
sk22 / export-google-play-music.js
Last active June 3, 2018 14:07
Export Google Play Music playlist
// Copy this into Chrome's debugger console
// This will output all (loaded/visible) songs to the console.
// Format: Title - Artist
// You can use this to port the playlist to another service,
// for example using http://spotlistr.herokuapp.com or http://www.playlist-converter.net
// Warning: Only the visible songs will be in the list,
// so a workaround is to click the "toggle device toolbar" button on the
// upper left of the debugger and set the device height really high (like 5000px), as needed.
// This will force Google Play Music to load all songs visible in the viewport.
Day Date From To Location Act
Friday 2018-06-22 17:00 17:20 Radio FM4/Planet.tt Bühne Brandig
Friday 2018-06-22 17:30 17:50 Radio FM4/Planet.tt Bühne Siebzig Prozent
Friday 2018-06-22 18:00 18:25 Radio FM4/Planet.tt Bühne Negroman
Friday 2018-06-22 18:40 19:05 Radio FM4/Planet.tt Bühne Kreiml & Samurai
Friday 2018-06-22 19:25 20:05 Radio FM4/Planet.tt Bühne Yasmo & Die Klangkantine
Friday 2018-06-22 20:30 21:15 Radio FM4/Planet.tt Bühne Haiyti
Friday 2018-06-22 21:35 22:25 Radio FM4/Planet.tt Bühne Mavi Phoenix
Friday 2018-06-22 22:45 23:55 Radio FM4/Planet.tt Bühne Antilopen Gang
Friday 2018-06-22 17:00 20:00 EUTOPIA DJ/VJ Bühne G-Spot Sound & Friends
@sk22
sk22 / spotify-download-manager-concept.md
Last active October 3, 2018 21:03
Imagine Spotify had an npm-like download manager...
$ sdm add album Green Day - Revolution Radio
sdm add v0.1.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
@sk22
sk22 / 2018-09-13-kartenspiel.md
Last active April 2, 2019 05:34
Kartenspiel für den GAD-Unterricht

Todsünde: Hochmut, Stolz

Karten (französisches Blatt, 52 Karten)

Experience

  • Stolz auf Wert der Karten
  • Gefühl, besser zu sein, als alle anderen
  • Risiko, das man durch Hochmut eingeht
@sk22
sk22 / chromium-snap-desktop-generator.sh
Last active January 30, 2023 14:09
Generate desktop files based for Web Applications using a Snapcraft installation of Chromium
#!/bin/bash
base="$HOME/snap/chromium/current/.config/chromium/Default/Extensions"
desktops="$HOME/.local/share/applications"
chromium="/snap/bin/chromium"
# ./generator.sh ... Lists all installed Chromium Apps
# ./generator.sh [id] ... Installs Chromium app with given App ID to user applications
if [ $# = 0 ]; then
@sk22
sk22 / make-adb-root-cat.sh
Last active November 4, 2018 20:08
Make ADB script for outputting a file with root
#!/bin/bash
# ./make-adb-root-cat.sh # call the script that generates the remote script
# /data/data/com.whatsapp/databases/msgstore.db # supply the path to the file to output
# | adb shell # send the script to the android device
# > msgstore.db # save the output to a file
# `su -c 'cat filename'` is the command sent to the device
# requires the device to be rooted
create or replace FUNCTION PLUE2_CHANGE_DEPT_ID (
p_first_name employees.first_name%type
) RETURN BOOLEAN AS
p_dept employees.department_id%type;
p_count NUMBER;
BEGIN
SELECT count(*) INTO p_count FROM employees WHERE first_name = p_first_name;
IF p_count = 0 THEN
RETURN FALSE;
END IF;

Keybase proof

I hereby claim:

  • I am sk22 on github.
  • I am sk22 (https://keybase.io/sk22) on keybase.
  • I have a public key ASAisSoDzm9RVgxqZwJ9CGWo48abU0NPT_aOCFEP9RXMzAo

To claim this, I am signing this object: