Skip to content

Instantly share code, notes, and snippets.

View grubernd's full-sized avatar

grubernd

  • Graz, Austria
View GitHub Profile
@grubernd
grubernd / ipt.sh
Last active August 30, 2023 08:32
ImagesPerHour - benchmark darktable conveniently
#!/bin/env bash
# -----------------------------------------------------------------------------
# ## iph
#
# > GRUBERND 2023 <http://grubernd.at> :: MIT License
#
# _Revision 2023-08-30_
#
# -----------------------------------------------------------------------------
# Benchmarking (darktable) image processing for custom usages
#!/bin/bash
# -----------------------------------------------------------------------------
# ## Create dynamic drive list for conky
#
# > GRUBERND 2021 <http://grubernd.at> :: MIT License
#
# _Revision 2021-04-12_
#
# + 21.04 initial version
#
#!/bin/bash
#------------------------------------------------------------------------------
# > Copyright (C) 2017-2020 GRUBERND http://grubernd.at
# > released under an MIT License
#
# ## Open files via dmenu
#
# _Revision 2020-07-29_
#
# ### 20.07
@grubernd
grubernd / 55_rpi_realtimeclock.cate
Last active June 14, 2023 20:19
install & setup of an I2C RTC on RaspberryPi (both Arch Linux ARM and Raspbian)
#!/bin/bash
#-----------------------------------------------------------
# Copyright (C) 2014-2016 GRUBERND http://grubernd.at
# released under a FreeBSD License
#-----------------------------------------------------------
# CATE installer module :: device RealTimeClock RPi
#
# !! needs to be run as root / sudo !!
#
# works both for DS1307 and DS3231 chips.
@grubernd
grubernd / hotfolder.sh
Last active August 29, 2015 14:23
watch a folder for an inotify event and run a command
#!/bin/bash
#-----------------------------------------------------------
# Copyright (C) 2015 GRUBERND http://grubernd.at
# released under a FreeBSD License
#
# watch a folder for an inotify event and run a command
# dependencies: inotify-tools
#--------------------------------------- Defaults
readonly version_hotfolder="15.06"
@grubernd
grubernd / png2jpg.sh
Created March 16, 2015 10:42
convert png to jpg while retaining the original mod date
#!/bin/bash
#-----------------------------------------------------------
# Copyright (C) 2015 GRUBERND http://grubernd.at
# released under a FreeBSD License
#
# convert png to jpg while retaining the original mod date
# dependicies: imagemagick
#-----------------------------------------------------------
shopt -s nullglob nocaseglob
@grubernd
grubernd / cman.sh
Last active August 29, 2015 14:14
convert Commonmark files into manpages
#!/bin/bash
#-----------------------------------------------------------
# Copyright (C) 2015 GRUBERND http://grubernd.at
# released under a FreeBSD License
#
# converts commonmark files into man pages
# http://commonmark.org/
# dependencies: cmark
#
# the cmark files are expected to be named like this: