1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-24 00:02:19 +00:00

Vscode update + gitback

This commit is contained in:
J. Fernando Sánchez
2018-12-07 18:45:04 +01:00
parent f2ef049f7f
commit 9d25e4c13b
3 changed files with 35 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Encode a video in DVD quality (-crf 23) and use the video stabilization/deshaking plugin
# https://ffmpeg.org/ffmpeg-filters.html#toc-vidstabdetect-1
for VIDEO in "$@"
for VIDEO in "$@";
do
DEST=converted/$VIDEO
if [ -f $DEST ]; then
@@ -9,6 +9,6 @@ do
continue
fi
mkdir -p converted
ffmpeg -i $VIDEO -vf vidstabdetect -f null -
ffmpeg -i $VIDEO -vf vidstabtransform=smoothing=30:input="transforms.trf" -crf 23 $DEST
ffmpeg -i "$VIDEO" -vf vidstabdetect -f null -
ffmpeg -i "$VIDEO" -vf vidstabtransform=smoothing=30:input="transforms.trf" -crf 23 "$DEST"
done

20
scripts/.bin/gitback Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
if [[ "$#" -lt 1 ]]; then
echo -e "Usage: $0 <date>"
echo -e ""
echo -e "\t<date> accepts the same formats as the date -d command"
echo -e ""
echo -e "Examples:"
echo -e "\t$0 -2hour"
echo -e "\t$0 -3day"
echo -e "\t$0 -2hour25min"
echo -e "\t$0 'today 3pm'"
echo -e "\t$0 'today 3pm'"
exit
fi
WHEN=$(date -d $1) || exit
shift
GIT_AUTHOR_DATE="$WHEN" GIT_COMMITTER_DATE="$WHEN" git commit --amend --no-edit --date="$WHEN"