Skip to content

πŸ€“ Useful bash scripts to do automatable tasks with a single command

License

Notifications You must be signed in to change notification settings

dpavankvarma/utility-bash-scripts

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€“ Utility bash scripts

Contributors needed Build Status

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.

πŸ“ NOTES

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"

πŸ“œ SCRIPTS

βœ‚οΈ Extract any archive

Script: extract
Dependencies: tar, gzip, p7zip, bzip2

Extracting .dmg files works only on MacOS.

extract <path to archive>

πŸ”» Download video from YouTube in MP4 format

Script: youtube-video
Dependencies: youtube-dl, ffmpeg, aria2c (optional)

youtube-video "https://www.youtube.com/watch?v=HgfojLtSBTM"

πŸ”€ Merge video and audio together

Script: vamerge
Dependencies: ffmpeg

vamerge <path to video file> <path to audio file>
# the order is important, first video, then audio

πŸ”° Download audio from YouTube

Script: 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" mp3

♋️ Convert audio file to OGG

Script: toogg
Dependencies: ffmpeg

toogg <path to file>

😈 Uglify a JS code

Script: uglify
Dependencies: Uglify-JS

uglify <input JS file> <output file>

♋️ Convert audio file to MP3

Script: tomp3
Dependencies: ffmpeg

tomp3 <path to file>

πŸ”‰ Download audio from SoundCloud

Script: soundcloud-music
Dependencies: Soundscrape

soundcloud-music <link to soundcloud>

🐳 Force stop and clean Docker containers

Script: dckill

dckill

♻️ Empty Trash folder

Script: empty-trash

empty-trash

🏹 Create custom short link for a GitHub URL using git.io

Script: gh-url

gh-url <url-to-shorten> <short-code>

🀐 ZIP without .DS_Store on a Mac

Script: maczip

maczip <path to folder>

πŸ–Ό Delete screenshots from Desktop on a Mac

Script: delete-ss

delete-ss

❌ Remove .DS_Store files recursively (Mac)

Script: rm-ds-store

rm-ds-store

About

πŸ€“ Useful bash scripts to do automatable tasks with a single command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%