From 4fe95f44f002a0399f8e31a93e9425edf40a9671 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Mon, 21 Nov 2022 14:32:08 -0500 Subject: restreaming --- roles/prerec/templates/thumbnail.sh | 3 +++ roles/prerec/templates/update-emacsconf.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 roles/prerec/templates/thumbnail.sh create mode 100755 roles/prerec/templates/update-emacsconf.sh (limited to 'roles/prerec/templates') diff --git a/roles/prerec/templates/thumbnail.sh b/roles/prerec/templates/thumbnail.sh new file mode 100755 index 0000000..436979d --- /dev/null +++ b/roles/prerec/templates/thumbnail.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# {{ ansible_managed }} +ffmpeg -i "$1" -vf "thumbnail,scale=400:225" -frames:v 1 $(echo "$1" | sed s/webm/png/ ) diff --git a/roles/prerec/templates/update-emacsconf.sh b/roles/prerec/templates/update-emacsconf.sh new file mode 100755 index 0000000..e01ebcf --- /dev/null +++ b/roles/prerec/templates/update-emacsconf.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# {{ ansible_managed }} + +cd {{ emacsconf_el_dir }} +git pull +emacsclient --eval "(emacsconf-reload)" -a emacs -- cgit v1.2.3