📝 Added chris titus opti script and updated rss
This commit is contained in:
parent
9e6a47c4b0
commit
1ab8af44b6
3 changed files with 24 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ DJ Ware
|
|||
DonTheDeveloper
|
||||
Dorian Develops
|
||||
Dorkly
|
||||
Dr. Jordan Breeding
|
||||
DThompsonDev
|
||||
Dylan Israel
|
||||
Economics Explained
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
22
scripts/opti
Executable file
22
scripts/opti
Executable file
|
|
@ -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}
|
||||
Loading…
Add table
Add a link
Reference in a new issue