Skip to content

Instantly share code, notes, and snippets.

View EchedelleLR's full-sized avatar
⚧️
I may be slow to respond.

Echedelle EchedelleLR

⚧️
I may be slow to respond.
  • Canary Islands
  • 03:32 (UTC +01:00)
View GitHub Profile
@EchedelleLR
EchedelleLR / errordocument-httpcat.conf
Created February 3, 2025 22:17
errordocument-httpcat-apache2
<Macro StatusError $code>
ErrorDocument $code '<!DOCTYPE html><html><head><style> body{background-color: #000000} img{display: block; margin-left: auto; margin-right: auto; width:750px; height:600px; border:none} </style> </head><body><img src="https://http.cat/$code.jpg"></body></html>'
</Macro>
Use StatusError 100
Use StatusError 101
Use StatusError 102
#Use StatusError 103
Use StatusError 200
Use StatusError 201
@EchedelleLR
EchedelleLR / ffmpeg-to-vp8-720p-example.txt
Last active November 19, 2024 19:11
Ffmpeg quick VP8 encoding to 720p
# GPLv3.0
find /original/path/ -type f | xargs -I "{}" -P 1 sh -c 'rm /destination/path/"$(basename "{}" | cut -f -3 -d '.')".original_extension; ffmpeg -i "{}" -vf "scale=-1:720,fps=24" -c:a libvorbis -c:v libvpx -ar 48k -b:v 1M -b:a 128k -crf 30 -pix_fmt yuv420p -deadline realtime -cpu-used 0 /destination/path/"$(basename "{}" | cut -f -3 -d '.')".destination_extension'