Skip to content

Instantly share code, notes, and snippets.

@SeanOBoyle
SeanOBoyle / smokeping_on_pihole.sh
Last active May 7, 2022 22:58
SmokePing on a PiHole with lighttpd
# This isn't a script
dont try to run it
# Install smokeping
sudo apt install smokeping
# Setup
sudo ln -s /usr/share/smokeping/www /var/www/html/smokeping
sudo cp /var/www/html/smokeping/smokeping.fcgi.dist /var/www/html/smokeping/smokeping.fcgi
echo 'exec /usr/lib/cgi-bin/smokeping.cgi /etc/smokeping/config' >> /var/www/html/smokeping/smokeping.fcgi
@SeanOBoyle
SeanOBoyle / Command Line
Last active November 8, 2021 00:36
Google Photos Takeout - using ExifTool
# exiftool.org
~/bin/google_photos_cleanup.py
~/bin/Image-ExifTool-12.34/exiftool -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-DateTimeOriginal<PhotoTakenTimeTimestamp" -ext "*" -overwrite_original -progress -m --ext json .
~/bin/remove_json.py
@SeanOBoyle
SeanOBoyle / Command Line
Last active November 8, 2021 00:32
Google Photos TakeOut Cleanup
# exiftool.org
~/bin/google_photos_cleanup.py
~/bin/Image-ExifTool-12.34/exiftool -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-DateTimeOriginal<PhotoTakenTimeTimestamp" -ext "*" -overwrite_original -progress -m --ext json .
~/bin/remove_json.py
@SeanOBoyle
SeanOBoyle / trim_video.sh
Created June 20, 2021 04:57
FFMPEG Trim from / to
# Trim Original Video
# Start at original_video 5:30 and end at original_video 10:30 to produce a 5:00 video
# ffmpeg -ss 00:05:30 -to 00:10:30 -i original_video.mp4 -c copy trimmed_video.mp4
@SeanOBoyle
SeanOBoyle / merge_gopro.sh
Last active March 9, 2019 20:54
Merge GoPro Videos with ffmpeg
#!/bin/bash
# Example - merging the '971' named videos
#printf "file '%s'\n" ./*971.MP4 > mylist.txt
#ffmpeg -f concat -safe 0 -i mylist.txt -c copy 971.mp4
printf "file '%s'\n" ./*$1.MP4 > mylist.txt
ffmpeg -f concat -safe 0 -i mylist.txt -c copy $1.mp4
@SeanOBoyle
SeanOBoyle / kodi_alsa.sh
Last active February 23, 2020 01:36
Ubuntu Kodi TrueHD / DTS-HD Passthrough
#!/bin/bash
#(starting with v18 this option was renamed to KODI_AE_SINK=ALSA)
#/usr/bin/pasuspender -- /usr/bin/env AE_SINK=ALSA /usr/bin/kodi
systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
/usr/bin/env AE_SINK=ALSA /usr/bin/kodi
systemctl --user start pulseaudio.socket
systemctl --user start pulseaudio.service