This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |