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
rm -rf webp | |
mkdir webp | |
for img in *.png; do | |
echo $img | |
ffmpeg -i $img -vf scale=80:80 -compression_level 6 -q:v 80 "./webp/${img%.png}.webp" | |
done |
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
aria2c -x 10 -s 10 -j 2 -c --file-allocation=none --dir=Files/Movies/house/S03 -i urls.txt |
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
open -na Google\ Chrome --args --user-data-dir=/tmp/temporary-chrome-profile-dir --disable-web-security |
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
git branch --merged | egrep -v "(^\*|main|develop)" | xargs git branch -d |
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
** ffmpeg command to convert any video to a format which is widely known by older devices (Tvs, etc ...) | |
ffmpeg -i input.mp4 -vf "fps=24" -c:v libx264 -crf 23 -maxrate 2M -bufsize 2M -c:a aac -b:a 192k output.mp4 | |
** ffmpeg Command to reduce the file size of a video while preserving good quality | |
ffmpeg -i test.mov -vf "scale=-1:720" -r 24 -c:v libx264 -crf 28 -preset medium -c:a aac -b:a 128k output.mp4 | |
** ffmpeg command to reduce the file size of an image, scale down the resolution to 480p, low quality | |
ffmpeg -i input.jpg -vf "scale=-1:480" -preset medium -q:v 4 output.jpg |
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
def change(string): | |
arr = "" | |
for char in string: | |
if char == "0": | |
arr += "1" | |
else: | |
arr += "0" | |
return arr | |