Skip to content

Instantly share code, notes, and snippets.

View fabian-thomas's full-sized avatar
👋

Fabian Thomas fabian-thomas

👋
View GitHub Profile
@fabian-thomas
fabian-thomas / orgzly-sync.sh
Last active February 24, 2024 20:59
Orgzly auto syncronisation for sync tools like syncthing. See orgzly/orgzly-android#8.
#!/data/data/com.termux/files/usr/bin/bash
# https://github.com/orgzly/orgzly-android/issues/8
orgzly_sync() {
# if you are using orgzly-revived use the following instead:
# am broadcast -n com.orgzlyrevived/com.orgzly.android.ActionReceiver -a com.orgzly.intent.action.SYNC_START
am broadcast -n com.orgzly/com.orgzly.android.ActionReceiver -a com.orgzly.intent.action.SYNC_START
}
@fabian-thomas
fabian-thomas / sizes.py
Last active July 28, 2021 17:36
BigDataEngineering - Plan Enumeration scripts
#!/bin/python
import sys
inputFile = open(sys.argv[1], 'r') # file to read data from
def sortAndRemoveNonAlpha(s):
return ''.join(sorted(list(''.join(filter(str.isalnum, s)))))
resultSizeMap = {}
selectivityMap = {}