Skip to content

Instantly share code, notes, and snippets.

View jnauber's full-sized avatar

Jens Nauber jnauber

  • SLUB Dresden | webfork.net
  • Dresden, Germany
View GitHub Profile
@felixlohmeier
felixlohmeier / bash-refine.md
Last active April 12, 2022 05:27
How to control OpenRefine 3.3+ with cURL (and jq) in Bash scripts

How to control OpenRefine 3.3+ with cURL (and jq) in Bash scripts

tested on Fedora 32 with bash 5.0.17 and curl 7.69.1

Quick start

  1. Clone this gist
git clone https://gist.github.com/d76bd27fbc4b8ab6d683822cdf61f81d.git bash-refine
@miku
miku / SomeFTPMirroring.py
Last active June 22, 2018 11:55
FTP + luigi
def which(program):
""" return `None` if no executable can be found
"""
def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):
return program