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 May 28, 2024 19:45
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 = {}