GithubHelp home page GithubHelp logo

aviaryan / utility-bash-scripts Goto Github PK

View Code? Open in Web Editor NEW
403.0 14.0 66.0 63 KB

๐Ÿค“ Useful bash scripts to do automatable tasks with a single command

License: MIT License

Shell 100.00%
bash scripts awesome-list

utility-bash-scripts's Introduction

๐Ÿค“ 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

๐Ÿ”ป 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>

โœ‚๏ธ Extract any archive

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

Extracting .dmg files works only on MacOS.

extract <path to archive>

โ™‹๏ธ 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

โฐ Get current time at any timezone

Script: clock
Dependencies: timedatectl for Linux, sudo access for Mac

clock list
clock <Time Zone>

๐ŸŒง Get weather report for a location

Script: weather

weather <City Name>
weather # Will use your IP Address location

๐Ÿน 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

๐Ÿ–ผ Show certificate information of a service

Script: show-certificate
Dependencies: openssl

show-certificate google.com

๐Ÿ“น Encode video to x265

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

๐ŸŽฅ Convert video to gif

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 

๐Ÿ“œ Learn a new command

Script: learn
Dependencies: cowsay

learn

๐Ÿ… Pomodoro

Script: pomodoro

pomodoro <focus time length> <break time length>

๐Ÿค˜๐Ÿป SIMPLE BASH COMMANDS

These commands are so easy to use that creating a script for them would be overkill.

๐Ÿ—„ Display filesystem information (disk usage, mount path)

df

utility-bash-scripts's People

Contributors

aashutoshrathi avatar aviaryan avatar beothorn avatar codegagan avatar dpretet avatar ekickx avatar jerryskye avatar jfstn avatar kiailandi avatar mateossh avatar missingcharacter avatar pitasi avatar rithvikp1998 avatar uli-heller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

utility-bash-scripts's Issues

Add more scripts

This repo is cloned on my system and added to PATH (you should do it too). Having more scripts will mean more ways to save time and automate stuff. Please contribute. ๐Ÿ™

Add Travis CI based continuous tests

We can have a test that checks that if all script files are marked as executable or not. Also, we can check if each script file is mentioned in the README or not (since contributors forget to add README entries).

Add script to get time at a location

I have no clue how to do this but it's a good script idea, hence opening an issue.

We can have a script that takes in place info (example - PST, Chicago, London) and gives the current time in that location. One way to do it could be scraping Google or using a REST API but there could be native language libraries that do this too.

#5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.