Skip to content

Instantly share code, notes, and snippets.

@maunsen
maunsen / boards.txt
Last active June 20, 2024 07:41
When using a Mac you need to make some other modifications to your boards.txt. You have to copy the internals of the folder /Users/<yourUserName>/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/ to /Users/<yourUserName>/Documents/Arduino/hardware/Spacemouse/avr/1.8.6/ and exchange the boards.txt file in there with the contents down below. …
micro.name=SpaceMouse Pro Wireless (cabled)
micro.vid.0=0x2341
micro.pid.0=0x0037
micro.vid.1=0x2341
micro.pid.1=0x8037
micro.vid.2=0x2A03
micro.pid.2=0x0037
micro.vid.3=0x2A03
micro.pid.3=0x8037
micro.vid.4=0x2341
14.03.19
17:41:00
DSL ist verfügbar (DSL-Synchronisierung besteht mit 99992/36984 kbit/s).
14.03.19
17:39:21
DSL-Synchronisierung beginnt (Training).
14.03.19
17:39:10
Zeitüberschreitung bei der PPP-Aushandlung.
14.03.19
@maunsen
maunsen / home-assistant.service
Created December 17, 2016 11:38
Systemdeamon file for Home Assistant under /etc/systemd/system/
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=homeassistant
ExecStartPre=sudo /usr/bin/bt-device -d CC-RT-BLE
@reboot /bin/sh /usr/home/bin/vpnrestart.sh
*/5 * * * * /usr/bin/env python /home/pi/bin/pi_stats.py
* 6 * * * /bin/sh /home/pi/bin/vpnrestart.sh
*/30 * * * * /bin/sh /home/pi/bin/pollvpnrestart.sh
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.8.0.53 128.0.0.0 UG 0 0 0 tun0
default multi.box 0.0.0.0 UG 0 0 0 eth0
10.8.0.1 10.8.0.53 255.255.255.255 UGH 0 0 0 tun0
10.8.0.53 * 255.255.255.255 UH 0 0 0 tun0
nl4.mullvad.net multi.box 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 10.8.0.53 128.0.0.0 UG 0 0 0 tun0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
#!/bin/bash
wget --spider --quiet http://google.com/ || sudo sh /user/home/bin/vpnrestart.sh
#!/bin/bash
sudo route add default gw 192.168.1.1
sudo service openvpn restart
sudo iptables --flush
sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sudo route del default gw 192.168.1.1