Utility bash scripts to do automatable tasks with a single command. We have scripts to download youtube videos, download music from youtube, convert media files, etc.
Contribute and add your secret script.
Download scripts download to ~/Downloads/ folder. For videos, they download to ~/Downloads/Videos and for audio, they download to ~/Downloads/Music.
For best results, clone this git repo to a fixed location on your computer and add it to $PATH.
cd ~
git clone https://github.com/aviaryan/utility-bash-scripts.git utility-scripts
cd utility-scripts
export PATH="$(pwd):$PATH"Script: youtube-video
Dependencies: youtube-dl, ffmpeg, aria2c (optional)
youtube-video "https://www.youtube.com/watch?v=HgfojLtSBTM"Script: vamerge
Dependencies: ffmpeg
vamerge <path to video file> <path to audio file>
# the order is important, first video, then audioScript: youtube-music
Dependencies: youtube-dl, ffmpeg, aria2c (optional)
Default download format is ogg(vorbis), pass second parameter as mp3, wav, m4a to use another format.
youtube-music "https://www.youtube.com/watch?v=HgfojLtSBTM"
youtube-music "https://www.youtube.com/watch?v=HgfojLtSBTM" mp3Script: toogg
Dependencies: ffmpeg
toogg <path to file>Script: uglify
Dependencies: Uglify-JS
uglify <input JS file> <output file>Script: extract
Dependencies: tar, gzip, p7zip, bzip2
Extracting .dmg files works only on MacOS.
extract <path to archive>Script: tomp3
Dependencies: ffmpeg
tomp3 <path to file>Script: soundcloud-music
Dependencies: Soundscrape
soundcloud-music <link to soundcloud>Script: dckill
dckillScript: empty-trash
empty-trashScript: clock
Dependencies: timedatectl for Linux, sudo access for Mac
clock list
clock <Time Zone>Script: weather
weather <City Name>
weather # Will use your IP Address locationScript: gh-url
gh-url <url-to-shorten> <short-code>Script: maczip
maczip <path to folder>Script: delete-ss
delete-ssScript: rm-ds-store
rm-ds-storeScript: show-certificate
Dependencies: openssl
show-certificate google.comScript: encode-x265
Dependencies: ffmpeg
Default encoded video's name is videoname-x265. But you can change it like the second example.
encode-x265 <path to video>
encode-x265 <path to video> <path to encoded video>Script: gif-convert
Dependencies: ffmpeg
gif-convert <path to video> <path to gif> <start_at> <end_at> <fps> <scale>If you don't want to change the value, you can use -.
gif-convert input.mp4 output.gif 05:00 05:03.6 - 640x360 Script: learn
Dependencies: cowsay
learnScript: pomodoro
pomodoro <focus time length> <break time length>These commands are so easy to use that creating a script for them would be overkill.
df