From 1ab8af44b69b1d84feb584160700dec6d2df04c6 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 31 Jan 2023 00:24:02 -0800 Subject: [PATCH] :memo: Added chris titus opti script and updated rss --- .config/newsboat/yt_list | 1 + .config/newsboat/yt_urls | 1 + scripts/opti | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100755 scripts/opti diff --git a/.config/newsboat/yt_list b/.config/newsboat/yt_list index e9d4a12f..de4e8352 100644 --- a/.config/newsboat/yt_list +++ b/.config/newsboat/yt_list @@ -97,6 +97,7 @@ DJ Ware DonTheDeveloper Dorian Develops Dorkly +Dr. Jordan Breeding DThompsonDev Dylan Israel Economics Explained diff --git a/.config/newsboat/yt_urls b/.config/newsboat/yt_urls index de0edf4f..33f9126d 100644 --- a/.config/newsboat/yt_urls +++ b/.config/newsboat/yt_urls @@ -16,6 +16,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC05XpvbHZUQOfA6xk4dlmcw https://www.youtube.com/feeds/videos.xml?channel_id=UC_xk18oWJ2ineZ1NYYl91Iw https://www.youtube.com/feeds/videos.xml?channel_id=UC1e24dS8kS5-jS4XZ5NzrnA https://www.youtube.com/feeds/videos.xml?channel_id=UCUOMtzQmEmhIAF8G_cha_Xw +https://www.youtube.com/feeds/videos.xml?channel_id=UCUfeQmlNZVQdzjiFBSwjOrQ https://www.youtube.com/feeds/videos.xml?channel_id=UC8ha68gfkmh5v2a2BAx7low https://www.youtube.com/feeds/videos.xml?channel_id=UC5Wi_NYysX-LfcqT3Hq9Faw https://www.youtube.com/feeds/videos.xml?channel_id=UCZ4AMrDcNrfy3X6nsU8-rPg diff --git a/scripts/opti b/scripts/opti new file mode 100755 index 00000000..0da34c1f --- /dev/null +++ b/scripts/opti @@ -0,0 +1,22 @@ +#!/bin/bash +# Taken from christitus.com, needs to be remade into more professional script +# possibly combine with your own image optimization scripts? +# Definitely combine with dependencycheck and your install scripts + +# Dependancies +# - img-optimize - https://virtubox.github.io/img-optimize/ +# - imagemagick +# - jpegoptim +# - optipng + +FOLDER="/home/titus/github/website/content/images" + +# max width +WIDTH=800 + +# max height +HEIGHT=600 + +#resize png or jpg to either height or width, keeps proportions using imagemagick +find ${FOLDER} -iname '*.jpg' -o -iname '*.png' -exec convert \{} -verbose -resize $WIDTHx$HEIGHT\> \{} \; +img-optimize --std --path ${FOLDER}