Skip to content
Snippets Groups Projects
Commit cb86f75e authored by nimrod's avatar nimrod
Browse files

Commit some scripts I had laying around.

parent 8c405941
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -eu
git checkout "$(git config init.defaultBranch)"
git pull --progress --ff --tags
#!/bin/sh
exec gpg "$@"
#!/bin/sh
set -eu
install -d -o "$(whoami)" -g "$(whoami)" -m 700 "$HOME/Downloads/Comics/misc/"
ssh xbmc.shore.co.il -C 'cd /srv/library/nimrod/misc/; for i in *; do if [ -d "$i" ] && [ ! -f "$i.cbz" ]; then zip -r "$i.cbz" "$i"; fi; done'
rsync --compress --progress "xbmc.shore.co.il:/srv/library/nimrod/misc/*.cbz" "$HOME/Downloads/Comics/misc/"
#!/bin/sh
set -eu
tail_args=''
zcat_args=''
while [ "$#" -gt 0 ]
do
case $1 in
-*) tail_args="$tail_args $1" ;;
*) zcat_args="$zcat_args $1" ;;
esac
shift
done
# shellcheck disable=SC2086
zcat $zcat_args | tail $tail_args
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment