{"id":13587532,"url":"https://github.com/aviaryan/utility-bash-scripts","last_synced_at":"2025-06-11T20:08:08.290Z","repository":{"id":43820174,"uuid":"151911084","full_name":"aviaryan/utility-bash-scripts","owner":"aviaryan","description":"🤓 Useful bash scripts to do automatable tasks with a single command","archived":false,"fork":false,"pushed_at":"2020-09-30T17:28:55.000Z","size":63,"stargazers_count":443,"open_issues_count":5,"forks_count":65,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-06-04T22:38:15.323Z","etag":null,"topics":["awesome-list","bash","scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aviaryan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-07T06:02:35.000Z","updated_at":"2025-06-02T11:54:39.000Z","dependencies_parsed_at":"2022-07-08T08:11:18.749Z","dependency_job_id":null,"html_url":"https://github.com/aviaryan/utility-bash-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aviaryan/utility-bash-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviaryan%2Futility-bash-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviaryan%2Futility-bash-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviaryan%2Futility-bash-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviaryan%2Futility-bash-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aviaryan","download_url":"https://codeload.github.com/aviaryan/utility-bash-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviaryan%2Futility-bash-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259330517,"owners_count":22841650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome-list","bash","scripts"],"created_at":"2024-08-01T15:06:15.311Z","updated_at":"2025-06-11T20:08:08.263Z","avatar_url":"https://github.com/aviaryan.png","language":"Shell","funding_links":[],"categories":["Shell","Please find below the links to awesome cheat-sheet and resources:","Command-Line Productivity"],"sub_categories":["Bash:"],"readme":"# 🤓 Utility bash scripts\n\n[![Contributors needed](https://img.shields.io/badge/contributors-needed-yellow.svg)](.github/CONTRIBUTING.md) [![Build Status](https://travis-ci.org/aviaryan/utility-bash-scripts.svg?branch=master)](https://travis-ci.org/aviaryan/utility-bash-scripts)\n\nUtility 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. \n\n\u003cu\u003eContribute and add your secret script.\u003c/u\u003e\n\n## 📝 NOTES\n\nDownload scripts download to `~/Downloads/` folder. For videos, they download to `~/Downloads/Videos` and for audio, they download to `~/Downloads/Music`.\n\nFor best results, clone this git repo to a fixed location on your computer and add it to `$PATH`.\n```sh\ncd ~\ngit clone https://github.com/aviaryan/utility-bash-scripts.git utility-scripts\ncd utility-scripts\nexport PATH=\"$(pwd):$PATH\"\n```\n\n\n## 📜 SCRIPTS\n\n### 🔻 Download video from YouTube in MP4 format\n\nScript: [youtube-video](youtube-video)  \nDependencies: [youtube-dl](https://github.com/rg3/youtube-dl), [ffmpeg](https://www.ffmpeg.org/), [aria2c](https://aria2.github.io/) (optional)\n\n```sh\nyoutube-video \"https://www.youtube.com/watch?v=HgfojLtSBTM\"\n```\n\n### 🔀 Merge video and audio together\n\nScript: [vamerge](vamerge)  \nDependencies: [ffmpeg](https://www.ffmpeg.org/)\n\n```sh\nvamerge \u003cpath to video file\u003e \u003cpath to audio file\u003e\n# the order is important, first video, then audio\n```\n\n### 🔰 Download audio from YouTube\n\nScript: [youtube-music](youtube-music)  \nDependencies: [youtube-dl](https://github.com/rg3/youtube-dl), [ffmpeg](https://www.ffmpeg.org/), [aria2c](https://aria2.github.io/) (optional)\n\n*Default download format is `ogg`(vorbis), pass second parameter as `mp3`, `wav`, `m4a` to use another format.*\n\n```sh\nyoutube-music \"https://www.youtube.com/watch?v=HgfojLtSBTM\"  \nyoutube-music \"https://www.youtube.com/watch?v=HgfojLtSBTM\" mp3\n```\n\n### ♋️ Convert audio file to OGG\n\nScript: [toogg](toogg)  \nDependencies: [ffmpeg](https://www.ffmpeg.org/)\n\n```sh\ntoogg \u003cpath to file\u003e\n```\n\n### 😈 Uglify a JS code\n\nScript: [uglify](uglify)  \nDependencies: [Uglify-JS](https://www.npmjs.com/package/uglify-js)\n\n```sh\nuglify \u003cinput JS file\u003e \u003coutput file\u003e\n```\n\n### ✂️ Extract any archive\n\nScript: [extract](extract)  \nDependencies: [tar](https://www.gnu.org/software/tar/), [gzip](https://www.gnu.org/software/gzip/), [p7zip](https://www.7-zip.org/), [bzip2](http://www.bzip.org/)\n\n*Extracting .dmg files works only on MacOS.*\n\n```sh\nextract \u003cpath to archive\u003e\n```\n\n### ♋️ Convert audio file to MP3\n\nScript: [tomp3](tomp3)  \nDependencies: [ffmpeg](https://www.ffmpeg.org/)\n\n```sh\ntomp3 \u003cpath to file\u003e\n```\n\n### 🔉 Download audio from SoundCloud\n\nScript: [soundcloud-music](soundcloud-music)  \nDependencies: [Soundscrape](https://github.com/Miserlou/SoundScrape)\n\n```sh\nsoundcloud-music \u003clink to soundcloud\u003e\n```\n\n### 🐳 Force stop and clean Docker containers\n\nScript: [dckill](dckill)\n\n```sh\ndckill\n```\n\n### ♻️ Empty Trash folder\n\nScript: [empty-trash](empty-trash)\n\n```sh\nempty-trash\n```\n\n### ⏰ Get current time at any timezone\n\nScript: [clock](clock)  \nDependencies: [timedatectl for Linux](https://www.freedesktop.org/software/systemd/man/timedatectl.html), sudo access for Mac\n\n```sh\nclock list\nclock \u003cTime Zone\u003e\n```\n\n### 🌧 Get weather report for a location\n\nScript: [weather](weather)\n\n```sh\nweather \u003cCity Name\u003e\nweather # Will use your IP Address location\n```\n\n### 🏹 Create custom short link for a GitHub URL using git.io\n\nScript: [gh-url](gh-url)\n\n```sh\ngh-url \u003curl-to-shorten\u003e \u003cshort-code\u003e\n```\n\n### 🤐 ZIP without .DS_Store on a Mac\n\nScript: [maczip](maczip)\n\n```sh\nmaczip \u003cpath to folder\u003e\n```\n\n### 🖼 Delete screenshots from Desktop on a Mac\n\nScript: [delete-ss](delete-ss)\n\n```sh\ndelete-ss\n```\n\n### ❌ Remove .DS_Store files recursively (Mac)\n\nScript: [rm-ds-store](rm-ds-store)\n\n```sh\nrm-ds-store\n```\n\n### 🖼 Show certificate information of a service\n\nScript: [show-certificate](show-certificate)  \nDependencies: [openssl](https://www.openssl.org/)\n\n```sh\nshow-certificate google.com\n```\n\n### 📹 Encode video to x265\n\nScript: [encode-x265](encode-x265)  \nDependencies: [ffmpeg](https://pkgs.org/download/ffmpeg)\n\n*Default encoded video's name is `videoname-x265`. But you can change it like the second example.*\n\n```sh\nencode-x265 \u003cpath to video\u003e\nencode-x265 \u003cpath to video\u003e \u003cpath to encoded video\u003e\n```\n\n### 🎥 Convert video to gif\n\nScript: [gif-convert](gif-convert)  \nDependencies: [ffmpeg](https://pkgs.org/download/ffmpeg)\n\n```sh\ngif-convert \u003cpath to video\u003e \u003cpath to gif\u003e \u003cstart_at\u003e \u003cend_at\u003e \u003cfps\u003e \u003cscale\u003e\n```\n\n*If you don't want to change the value, you can use `-`.*\n\n```sh\ngif-convert input.mp4 output.gif 05:00 05:03.6 - 640x360 \n```\n\n### 📜 Learn a new command\n\nScript: [learn](learn)  \nDependencies: [cowsay](https://github.com/schacon/cowsay)\n\n```sh\nlearn\n```\n\n### 🍅 Pomodoro\n\nScript: [pomodoro](pomodoro)\n\n```sh\npomodoro \u003cfocus time length\u003e \u003cbreak time length\u003e\n```\n\n## 🤘🏻 SIMPLE BASH COMMANDS\n\nThese commands are so easy to use that creating a script for them would be overkill.\n\n### 🗄 Display filesystem information (disk usage, mount path)\n\n```sh\ndf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviaryan%2Futility-bash-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faviaryan%2Futility-bash-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviaryan%2Futility-bash-scripts/lists"}