Skip to content

Instantly share code, notes, and snippets.

@tolnem
tolnem / whatsapp.log
Created December 7, 2015 20:30
WhatsApp likes to send http requests while you're typing.
1.2.3.4 - - [07/Dec/2015:21:27:10 +0100] "GET /t HTTP/1.1" 301 556 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:10 +0100] "GET /t/ HTTP/1.1" 200 772 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:10 +0100] "GET /te HTTP/1.1" 404 489 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:11 +0100] "GET /tes HTTP/1.1" 404 490 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:11 +0100] "GET /test HTTP/1.1" 301 561 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:11 +0100] "GET /test/ HTTP/1.1" 200 698 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:12 +0100] "GET /testi HTTP/1.1" 404 492 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:13 +0100] "GET /testin HTTP/1.1" 404 493 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:13 +0100] "GET /testing HTTP/1.1" 404 494 "-" "WhatsApp"
1.2.3.4 - - [07/Dec/2015:21:27:15 +0100] "GET /testing- HTTP/1.1" 404 495 "-" "WhatsApp"
@tolnem
tolnem / kontrol.py
Last active February 12, 2024 13:46
Reading midi input from nanoKontrol 2 in python, using python-rtmidi and jack-audio
#!/usr/bin/python
import rtmidi, time
buttons = {
58: 'track_left',
59: 'track_right',
46: 'cycle',
60: 'marker_set',
61: 'marker_left',