Skip to content

Instantly share code, notes, and snippets.

@kisel
kisel / zeromq_demo_publisher.py
Created November 3, 2017 11:25 — forked from ramn/zeromq_demo_publisher.py
Python ZeroMQ pub/sub example
import time.sleep
import zmq
context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.bind('tcp://127.0.0.1:2000')
# Allow clients to connect before sending data
sleep(10)
socket.send_pyobj({1:[1,2,3]})
@kisel
kisel / runtastic-export-all-activities.md
Last active July 5, 2016 17:55
Download all activities from Runtastic.com (as .gpx)

Download all activities from Runtastic 🏃

With this script you can download all your activities from www.runtastic.com in .tcx format. Runtastic removed this feature wich makes it very difficult to change your tracking service, thanks for that.

Fork changes: it downloads .tcx instead of .gpx and supports large files(original implementation fails with Netowork error and the Downloads page crashes due to huge size of a.href)

How does it work

Login to your runtastic account and go to the page where all your activities are listed. Then open the developer tools of Chrome with CMD + OPTION + I and go to the console tab. Now copy and paste the following script in the console line and press enter. The usually content should disapear and the downloads should start. I used it to export around 290 activities and it worked fine.