This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Logs in automatically to the "WiFi in de trein" public hotspots, located in | |
# trains in the Netherlands. | |
# Requires: curl, sed | |
# | |
# Based on: https://gist.github.com/mid-kid/b60563059a393f90522f5e57aabfc493 | |
set -e | |
ssid="Wifi in de trein" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Supported" | |
while read p; do | |
file=${p/\~/\/home/daniel} | |
if test -e "$file"; then | |
echo "$p" | |
# else | |
# echo "$p not found" | |
fi | |
done < ./supported.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
import pandas as pd | |
import gpxpy | |
import argparse | |
R = 6365E3 | |
RADIUS = 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root/sys/bus/hid/drivers/hid-generic $ echo -n "0003:1532:010D.0003" > unbind | |
root/sys/bus/hid/drivers/hid-generic $ echo -n "0003:1532:010D.0003" > /sys/bus/hid/drivers/razerkbd/bind | |
echo: write error: no such device | |
Dmesg | |
[441600.061831] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/0003:1532:010D.0003/input/input27 | |
[441600.117872] hid-generic 0003:1532:010D.0003: input,hidraw2: USB HID v1.11 Mouse [Razer Razer BlackWidow Ultimate] on usb-0000:00:14.0-1/input2 | |
[442067.713436] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/0003:1532:010D.0003/input/input28 | |
[442067.713687] hid-generic 0003:1532:010D.0003: input,hidraw2: USB HID v1.11 Mouse [Razer Razer BlackWidow Ultimate] on usb-0000:00:14.0-1/input2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/lib/modules/4.5.0-2-amd64/kernel/drivers/usb/misc $ udevadm info /sys/bus/hid/devices/0003:1532:010D.0001 [1][23:27:32] | |
P: /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:1532:010D.0001 | |
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:1532:010D.0001 | |
E: DRIVER=hid-generic | |
E: HID_ID=0003:00001532:0000010D | |
E: HID_NAME=Razer Razer BlackWidow Ultimate | |
E: HID_PHYS=usb-0000:00:14.0-1/input0 | |
E: HID_UNIQ= | |
MODALIAS=hid:b0003g0001v00001532p0000010D | |
E: SUBSYSTEM=hid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bus 003 Device 016: ID 1532:0016 Razer USA, Ltd DeathAdder Mouse | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 2.00 | |
bDeviceClass 0 (Defined at Interface level) | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,2d0 | |
< a52dec 0.7.4-8 | |
< aalib 1.4rc5-10 | |
4,5c2,3 | |
< acl 2.2.52-2 | |
< alsa-lib 1.0.28-1 | |
--- | |
> acpi 1.7-1 | |
> adduser 1.15-5 | |
7,9d4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accountsservice 0.6.37-1 | |
acpi 1.7-1 | |
adduser 1.15-5 | |
alsa-utils 1.0.28-1 | |
android-studio 0.8.1-1 | |
apache 2.4.9-1 | |
arandr 0.1.7.1-2 | |
arch-wiki-docs 20140625-1 | |
archey 20130324-7 | |
archey3 0.5-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/search b/bin/search | |
index 3cdcb7f..f0fa5d9 100755 | |
--- a/bin/search | |
+++ b/bin/search | |
@@ -3,6 +3,7 @@ | |
HISTFILE=/tmp/.gshist | |
COMPLETION=false | |
+DMENU='rofi -dmenu -p Google -i' | |
if [ -f $HOME/.dmenurc ]; then |