Skip to content

Instantly share code, notes, and snippets.

@florinbarbisch
florinbarbisch / EDUIDLogin.js
Last active September 19, 2023 07:45
Logs you in with EDU ID
// ==UserScript==
// @name Switch EDU ID Sign in
// @namespace https://florin.barbisch.ch/
// @version 0.1
// @description Logs you in with EDU ID
// @author Florin Barbisch
// @match *login.eduid.ch/idp/profile/SAML2/Redirect/SSO?execution=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=fhnw.login.eduid.ch
// @grant none
// ==/UserScript==
@florinbarbisch
florinbarbisch / spacesRedirectLogin.js
Last active February 15, 2024 22:36
Automatically clicks the "Einloggen mit Switch AII" Button for the learning plattform spaces
// ==UserScript==
// @name spaces.fhnw.ch redirect to Switch AII login page
// @namespace https://florin.barbisch.ch/
// @version 0.1
// @description Automatically clicks the "Einloggen mit Switch AII" Button
// @author Florin Barbisch
// @match https://spaces.technik.fhnw.ch/
// @icon https://www.google.com/s2/favicons?sz=64&domain=spaces.technik.fhnw.ch
// @grant none
// ==/UserScript==
@florinbarbisch
florinbarbisch / AerialScreensaverDownloader.java
Created April 10, 2020 18:07
A java downloader for all AppleTV Wallpapers (according to https://aerial-screensavers.netlify.com/). With the ability to resume the download if it gets interupted/stopped (just rerun the program). Using java.nio and parallel streams (for the flex).
import java.io.File;
import java.io.FileOutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.channels.Channels;
import java.util.regex.MatchResult;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class AerialScreensaverDownloader {