Skip to content

Instantly share code, notes, and snippets.

@daviscodesbugs
Last active February 28, 2018 14:56
Show Gist options
  • Save daviscodesbugs/e1b620f31059002bf0c45dd71e356fa3 to your computer and use it in GitHub Desktop.
Save daviscodesbugs/e1b620f31059002bf0c45dd71e356fa3 to your computer and use it in GitHub Desktop.
Quick Scripts
#!/bin/bash
# Need NPM package localtunnel-cli installed
while :
do
lt --subdomain <subdomain> --port 80
done
#!/bin/bash
rm *.jpg
mogrify -format jpg -quality 100 *.png
rm *.png
#!/bin/bash
if [ $# -eq 2 ]; then
printf "Start Time: "
read starttime
printf "End Time: "
read endtime
ffmpeg -i "$1" -ss $starttime -to $endtime -acodec copy -vcodec copy "$2"
else
echo "Specify an input and output video"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment