Skip to content

Instantly share code, notes, and snippets.

@ericzolf
ericzolf / filter_lineageos_devices.py
Created June 30, 2018 11:28
Python script to filter Android devices supported by LineageOS
#!/usr/bin/python
# This crude script allows to filter Android devices supported by LineageOS
# You need to be in the directory where the YAML files are present, which
# are used to create the list seen at https://wiki.lineageos.org/devices/
# You need first to edit the conditions used in the last 'if' statement to
# adapt this script (named $0 below) to your needs. Then usage could look
# like this:
# git clone https://github.com/LineageOS/lineage_wiki.git
# cd lineage_wiki/_data/devices
# (edit $0 and adapt the if-statement at the end of the script)
@ericzolf
ericzolf / downloadting.py
Created September 24, 2017 19:02
Script to download book files from Oldenbourg Stars Ting according to IDs in file $ting/TBD.TXT
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Script to download book files from Oldenbourg Stars Ting according to IDs in file $ting/TBD.TXT
Mostly stolen from https://forum.ubuntuusers.de/topic/synchronisation-von-ting-dem-hoerstift-von-bro/
"""
import urllib
import os
import re
@ericzolf
ericzolf / buildpython4android.sh
Last active April 30, 2017 08:28 — forked from phillipberndt/gist:ef25e95ef801707eb27a
Compile Python for Android
#!/bin/sh
#
# This script builds & bundles Python for Android
# You'll end up with a tar.bz2 file that contains a Python distribution
#
# Requires all prerequisites to build Android on the host, and the NDK
# installed.
#
# This script creates a file python4android.tbz2. Unpack it on your device
# (into a non-noexec partition!) and enjoy.