Skip to content

Instantly share code, notes, and snippets.

@anjomro
anjomro / WIFIonICE-Automatic-Login.md
Last active April 4, 2024 23:05 — forked from hacker-bastl/bahn.sh
WIFIonICE Automatic Login

WIFIonICE Automatic Login

This connector intends to automate the process of logging in into the public wifi inside of an IC /ICE of the German railways. The adapter enables does enable you to choose and keep a custom DNS server.

Usage on Linux

The script should be usable on most Linux systems, at least if the following requirements are met:

  • bash
  • ip
  • dig
@anjomro
anjomro / stm32-permission-fix.sh
Last active May 31, 2018 11:27
Fix permissions to upload to stm32
#!/bin/sh
sudo sh -c 'cat > /etc/udev/rules.d/49-stm32.rules' <<EOF
# 0483:5740 - STM32F4 Dsicovery in USB Serial Mode (CN5)
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",
ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",
ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",
MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740",