Skip to content

Instantly share code, notes, and snippets.

View SanderRonde's full-sized avatar

Sander Ronde SanderRonde

View GitHub Profile
@SanderRonde
SanderRonde / urischeme-filter
Last active February 9, 2022 22:36
Filters passed URI scheme in order for its arguments to be passed to a different program easily
#!/bin/python
import os
import sys
import subprocess
def parse_io():
if len(sys.argv) == 2 and sys.argv[1] == "-h":
print("Pass scheme as first parameter")
print("In this scheme, the scheme itself is removed and the remaining content is split based on the slashes")
print("For example: myscheme://a/b/c would be sliced into ['a', 'b', 'c']")