From 9d25e4c13bb9b6d843b14695a8300af17a9439dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 7 Dec 2018 18:45:04 +0100 Subject: [PATCH] Vscode update + gitback --- scripts/.bin/deshake-video.sh | 6 +++--- scripts/.bin/gitback | 20 ++++++++++++++++++++ vscode/.config/Code - OSS/User/settings.json | 16 ++++++++++++---- 3 files changed, 35 insertions(+), 7 deletions(-) create mode 100755 scripts/.bin/gitback diff --git a/scripts/.bin/deshake-video.sh b/scripts/.bin/deshake-video.sh index b3d9b3d..30be75f 100755 --- a/scripts/.bin/deshake-video.sh +++ b/scripts/.bin/deshake-video.sh @@ -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 diff --git a/scripts/.bin/gitback b/scripts/.bin/gitback new file mode 100755 index 0000000..f453e30 --- /dev/null +++ b/scripts/.bin/gitback @@ -0,0 +1,20 @@ +#!/bin/bash +if [[ "$#" -lt 1 ]]; then + echo -e "Usage: $0 " + echo -e "" + echo -e "\t 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" diff --git a/vscode/.config/Code - OSS/User/settings.json b/vscode/.config/Code - OSS/User/settings.json index 88fa14c..3c6fc38 100644 --- a/vscode/.config/Code - OSS/User/settings.json +++ b/vscode/.config/Code - OSS/User/settings.json @@ -1,23 +1,31 @@ { "diffEditor.ignoreTrimWhitespace": false, - "workbench.iconTheme": "vscode-icons", "gitlens.advanced.messages": { "suppressShowKeyBindingsNotice": true, "suppressResultsExplorerNotice": true }, "gitlens.keymap": "chorded", - "window.zoomLevel": 0, "vim.handleKeys": { "": false, "[q": false, "]q": false }, - "editor.minimap.enabled": false, "workbench.statusBar.visible": true, "files.watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/**": true, "**/vendor/**": true, - } + }, + "window.titleBarStyle": "custom", + "vim.hlsearch": true, + "vim.statusBarColorControl": true, + "workbench.iconTheme": "vscode-icons", + "workbench.colorCustomizations": { + "statusBar.background": "#005f5f", + "statusBar.noFolderBackground": "#005f5f", + "statusBar.debuggingBackground": "#005f5f" + }, + "gitlab.instanceUrl": "https://lab.gsi.upm.es", + "editor.wordWrap": "on" }