Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
marco79cgn / dm-toilet-paper-wheat-flour.js
Last active October 6, 2025 12:04
iOS Widget, das die Anzahl an Klopapier und Mehl Packungen in deiner nächsten dm Drogerie anzeigt (für die scriptable.app)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: gray; icon-glyph: magic;
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
// dm Klopapier & Mehl Widget
//
// Copyright (C) 2020 by marco79 <marco79cgn@gmail.com>
//
@dicer
dicer / wifionice
Last active October 22, 2025 20:22 — forked from vollkorn1982/wifionice
HowTo auto connect your Linux to the German Wifi on ICE trains
#!/bin/bash
# change the next line to match your wifi device and put this file in /etc/NetworkManager/dispatcher.d/ and make it executable
WIFI_DEVICE=wlp3s0
IF=$1
STATUS=$2
@hacker-bastl
hacker-bastl / bahn.sh
Created February 3, 2018 16:49
WIFIonICE token login automation
#!/bin/bash
# change this to the MAC of your device
MAC="XX:XX:XX:XX:XX:XX"
# get the CSRF token required for login
TOKEN=$(curl --silent --cookie COOKIE --cookie-jar COOKIE 'http://login.wifionice.de/de/' | grep CSRFToken | cut -d '"' -f 12)