Skip to content

Instantly share code, notes, and snippets.

View hnzlmnn's full-sized avatar

Malte Heinzelmann hnzlmnn

View GitHub Profile
@hnzlmnn
hnzlmnn / timelapse.sh
Last active April 22, 2017 00:51
Bash timelapse
#!/bin/bash
CMD=scrot
DIR="/mnt/timelapse/"
PRE="timelapse_"
DF="%Y_%m_%d_%H_%M_%S"
S="60"
type "$CMD" >/dev/null 2>&1 || { echo "$CMD is not installed or could not be found!"; exit 1; }

Keybase proof

I hereby claim:

  • I am hnzlmnn on github.
  • I am hnzlmnn (https://keybase.io/hnzlmnn) on keybase.
  • I have a public key ASDHaNlrM5E_AexjyEVsaAqxWEBWPoDRjml4s48POznfbwo

To claim this, I am signing this object:

@hnzlmnn
hnzlmnn / convert.sh
Created April 4, 2016 14:32
ffmpeg convert flac to mp3
#!/bin/bash
for f in *; do
echo "Processing file: $f";
ffmpeg -i $f -ab 196k -ac 2 -ar 48000 "$(basename "$f" .flac).mp3";
done