Skip to content

Instantly share code, notes, and snippets.

@TimmThaler
TimmThaler / rename.sh
Created October 26, 2017 10:33
Rename files to their creation date and time
#!/bin/bash
for i
do
NAME=${i##*/}
PFAD=${i/$NAME/}
echo "$(date -r "$(stat -f %B "$i")" "+%y-%m-%d %H-%M-%S")"
mv "$i" "$PFAD"/"$(date -r "$(stat -f %B "$i")" "+%y-%m-%d %H-%M-%S")".${i##*.}
#include <Servo.h>
Servo myservo;
const int servoPin = 9;
const int buttonPin = 12;
const int ledPin = 13;
void setup() {
myservo.attach(servoPin);
@TimmThaler
TimmThaler / ffmpeg-progress-dialog.sh
Last active January 13, 2024 17:03
This bash script shows you the progress of your ffmpeg conversion.
#!/bin/bash
#
# ffmpeg-progress-dialog.sh
# by Timm Thaler
#
# based on the ffmpeg-progress.sh from https://gist.github.com/pruperting/397509
# licensed under the GNU GENERAL PUBLIC LICENSE Version 3
#
# Dependencies / needed software
# ffmpeg (of course)