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
import io, re, requests, sys, time, zipfile | |
def get_device(token): | |
r = get("/api/v1/user/get", token) | |
device = r.json()["user"]["devices"] | |
print("Device: " + device, file = sys.stderr) | |
return device | |
def list_presences(token, device): | |
r = get("/api/v1/presence/{0}/latest".format(device), token) |
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. On a phone that's still working: | |
mount -o subvolid=0 /dev/mmcblk0p28 /mnt/ | |
2. On a Linux laptop: | |
ssh jolla tar c /mnt/factory-@ >factory.tar | |
ssh jolla tar c /mnt/factory-@home >factory-home.tar | |
3. On the working phone again: | |
umount /mnt |
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
# ~/.ssh/config | |
# | |
# convenient SSH/SCP settings for the SailfishOS SDK | |
# examples: | |
# ssh jolla | |
# ssh sailfish | |
# ssh root@sailfish | |
# ssh mersdk | |
# ssh root@mersdk |
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
citynavi.update_configs | |
defaults: | |
... | |
helsinki: | |
... | |
overrides: | |
... | |
citynavi.set_config "helsinki" |
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
""" | |
Kalkati to GTFS converter | |
Beware: it simplifies some things. | |
(c) 2011 Stefan Wehrmeyer http://stefanwehrmeyer.com | |
License: MIT License | |
""" | |
from datetime import date, timedelta |