View gopro scripts.org

Timelapse

Rename files

To rename the images so the name corresponds to its capture date, invoke the following command. This step is useful for both guaranteeing that the final movie is in the correct order and that duplicate images are removed.

exiftool '-filename<CreateDate' -d "%Y:%m:%d %H:%M:%S.%%le" -r .
View pixelserv.sh
#!/bin/sh
set -e
P=`readlink -m $0`
P="$P.bin"
HOME='/tmp/pixelserv/chroot'
if [[ ! -d $HOME ]]; then
echo "Creating '$HOME'"
View discover-projectile.el
(defun projectile-get-binding (function)
(let (bindings)
(setq bindings (make-hash-table :test 'equal))
(puthash 'projectile-switch-to-buffer-other-window "4 b" bindings)
(puthash 'projectile-display-buffer "4 C-o" bindings)
(puthash 'projectile-find-dir-other-window "4 d" bindings)
(puthash 'projectile-find-file-other-window "4 f" bindings)
(puthash 'projectile-find-implementation-or-test-other-window "4 t" bindings)
View acpi_wakeups.sh
#!/bin/bash
if [[ $# > 1 || ($1 != "enable" && $1 != "disable") ]]; then
echo "Usage: $0 <enable|disable>"
exit 1
fi
if [[ $1 == "enable" ]]; then
TOGGLE=`grep '\*disabled' /proc/acpi/wakeup | cut -d ' ' -f1`
else
View force_resolution.sh
#!/bin/zsh
if [[ $# != 2 ]]; then
echo "Usage: Res.sh <device> <resolution_width>";
exit 1;
fi
DEV=$1
WIDTH=$(xrandr | grep $DEV -A1 | tail -n1 | sed 's/ *\([0-9]*\).*$/\1/')
HEIGHT=$(xrandr | grep $DEV -A1 | tail -n1 | sed 's/.*x\([0-9]*\).*$/\1/')
CURRENT_WIDTH=$(xrandr | grep $DEV | cut -d ' ' -f 3 | sed 's/ *\([0-9]*\).*$/\1/')
View gotta_catch_em_all
#!/bin/bash
FILES=($*)
NUM_FILES=${#FILES[@]}
function num_diffs() {
i=1
for f in $*; do
cat $f | uncrustify -q -c uncrustify.conf | grep -v "#" > tmp.c
View SIGARRA_refresh_pass
#!/bin/bash
[[ $# != 2 ]] && echo "Usage: $0 <user> <pass>" && exit 1
USER=$1
CURRENT_PASS=$2
ORIGINAL_PASS=$2
CYCLES=5
URL="https://sigarra.up.pt/feup/pt/pass_cica.muda"