• Stars
    star
    420
  • Rank 103,194 (Top 3 %)
  • Language
    Shell
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

πŸ€“ 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

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

More Repositories

1

awesome-no-login-web-apps

πŸš€ Awesome (free) web apps that work without login
Shell
2,587
star
2

VSCodeNotebook

πŸ“ Use VS Code as a reliable note-taking/journal application
Python
643
star
3

Clipjump

πŸ“‹ Clipboard Manager for Windows, built in AutoHotkey
AutoHotkey
362
star
4

learn-for-free

πŸš«πŸ’° Why pay for a degree or a course when you can learn on the Internet for free? This project contains free learning resources for all topics you can think of.
261
star
5

chattt

❯❯❯ Chat without leaving your terminal
JavaScript
251
star
6

learnxinyminutes-pdf

πŸ“š Learn X in Y minutes as PDF
Python
245
star
7

SublimeNotebook

πŸ“ Make Sublime Text your favorite note taking/journal application
Python
218
star
8

python-gsearch

πŸ” Google Search unofficial API for Python with no external dependencies
Python
212
star
9

Kissanime-Batch-Downloader

πŸ‡―πŸ‡΅ πŸ“Ί KissAnime, KissCartoon and KissAsian batch links generator script
JavaScript
134
star
10

autohotkey-scripts

πŸ‘Œ A collection of Autohotkey scripts and functions authored by me (Avi Aryan).
AutoHotkey
115
star
11

work

My open source projects portfolio. Built with React.
JavaScript
71
star
12

BigEval.js

Fully featured mathematical expression solving library
JavaScript
57
star
13

competitive

πŸ’» My competitive programming archive
C++
50
star
14

series-renamer

πŸ“Ί A robust TV/Anime series renamer in Python
Python
46
star
15

BrainGames

⚑ Games to boost your brain, written in Python using Pyglet
Python
46
star
16

resume

:bowtie: Simple and clean resume in Jekyll
HTML
38
star
17

Ahk-Best-Practices

[WIP] AutoHotkey Best Practices
32
star
18

AutoHotkey

πŸ”£ (Discontinued) Sublime Text Autohotkey package.
JavaScript
30
star
19

tYp3r

😎 dA aNn0Y1Ng t3Xt g3NeRa7or (The annoying text generator :-P)
HTML
30
star
20

alfred-google-search

Alfred workflow to do inline google searches (open URL or copy to clipboard)
Python
30
star
21

Hinix

πŸ”  Exciting Word Game
Java
24
star
22

typ3r.js

🍟 [Library] dA aNn0Y1Ng t3Xt g3NeRa7or
JavaScript
23
star
23

your-word

β›“ Ethereum based DApp that helps you keep your promises [Rinkeby]
JavaScript
21
star
24

voice-writing-electron

A real-time, instant dictation desktop application built on Electron that uses Whisper and GROQ under the hood
JavaScript
20
star
25

chattt-backend

πŸ–₯ Backend for chattt
JavaScript
19
star
26

hooks-testing

HTML
17
star
27

react-typescript-tailwind-styled-components

Boilerplate for getting started with a TypeScript based React (CRA) project with Tailwind and Styled-Components. Also includes editorconfig, prettier and HMR.
JavaScript
17
star
28

alfred-clc

Powerful Calculator for Alfred
Shell
16
star
29

Sublime4Autohotkey

πŸ“œ (Deprecated) Sublime Text patch for Autohotkey coding
JavaScript
15
star
30

alfred-last2imgur

Alfred workflow to upload the last screenshot taken to Imgur + (delete and minify image)
Shell
14
star
31

Ahk-CI-Example

A demo on using AppVeyor for AHK continuous testing
AutoHotkey
13
star
32

gcide-dictionary-json

πŸ“– GCIDE dictionary in json format
Python
12
star
33

bootstrap-chm

Bootstrap documentation in CHM, complete with searchable Index and table of contents
Python
11
star
34

Evernote-Decrypt

Decrypt encrypted Evernote notes
Python
11
star
35

shape-recog

Shape recognition tool. Built in AutoHotkey. Calculus Project
AutoHotkey
10
star
36

email-templates

Email templates for Dev Letters and others
9
star
37

aviaryan.github.com-retired-2018

My website (retired)
HTML
9
star
38

CloseFolder

Sublime Text plugin to close all open files inside some folder or all open files inside the folder of current active file.
Python
9
star
39

javascripts

✨ Little web-apps
CSS
9
star
40

lc3-sublime

LC3 Programming Package for Sublime Text
Assembly
8
star
41

highlighter-ahk-zenburn

Syntax Highlighter for AutoHotkey with Zenburn and Github themes
CSS
8
star
42

footballers-arena

Application to display footballers profiles with ratings and other cool stats
Python
8
star
43

clipjump-addons

All the Clipjump plugins and customs
AutoHotkey
8
star
44

dls

☁️ Direct Link Service
Python
8
star
45

private-podcast-s3

Host your MP3 files as a personal private podcast on S3
JavaScript
7
star
46

downloads

A simple POC to use GitHub Pages to serve static downloads.
Shell
6
star
47

pythons

My Python scripts
Python
6
star
48

flask-postgres-apache-server

[Udacity] [FSND] Setup a Flask-postgres project on a linux server using Apache and mod-wsgi
5
star
49

ud-catalog

[Udacity] [FSND] Item Catalog full stack project
Python
5
star
50

emojiui

Offline Emoji searcher app
JavaScript
5
star
51

devletters

☠️ Hugo based site of devletters.com
HTML
4
star
52

cmd-crypto-chart

Last 24-hour chart of cryptocurrencies in your terminal
Rust
4
star
53

algorithms-course

Things I learned/did in my 4th semester algorithms course
C++
4
star
54

todo-pwa

TODO app for a mobile web workshop
JavaScript
4
star
55

PopularMovies

An app to showcase cool movies
Java
4
star
56

gatsby-bulma-default

A very basic customizable Bulma Gatsby starter template
JavaScript
4
star
57

shach

Pronounced sh-aa-ch
Yacc
4
star
58

aavi.me

πŸ”— Personal short URL redirector
3
star
59

lightAHK

Really lightweight syntax highlighting for AutoHotkey
CSS
3
star
60

twitter-2-steem

Twitter to STEEM auto-poster
JavaScript
3
star
61

playlist-dl

🎬 Resumable customizable Youtube playlist downloader
Python
3
star
62

ud-memory-game

[Udacity] [FEND] Memory Game
CSS
3
star
63

flask-restplus-talk

Python
3
star
64

Dockerfiles

πŸ‘· Useful Dockerfiles
2
star
65

ud-feed-reader-testing

[Udacity] [FEND] Feed Reader Testing using Jasmine
JavaScript
2
star
66

ud-arcade-game

[Udacity] [FEND] Arcade Game Frogger
JavaScript
2
star
67

ud-mws-restaurant-stage-all

MWS Restaurant Project
JavaScript
2
star
68

collegare-server

[WIP] Collegare PHP backend
PHP
2
star
69

CSwA_puzzle8

Unit 5: Puzzle-8 game in Android
Java
2
star
70

initranslator

Translates Ini's
AutoHotkey
2
star
71

deposits-app

Python
2
star
72

pop-places-patna

[Udacity] [FSND] Popular places in Patna [Neighborhood Map project]
JavaScript
2
star
73

CFBuddy

A complete Codeforces app (Udacity project)
Java
2
star
74

XYZReader

Feed Reader app for Android
Java
1
star
75

distributed-project-server

Simple backend server to coordinate a distributed text searching system. Distributed Systems and Parallel Programming course project.
Python
1
star
76

ud-myreads

[Udacity] [React] MyReads Project
JavaScript
1
star
77

cs-amxmodx-plugins

My Counter Strike AMX Mod X plugins repo. Hope to add more soon
SourcePawn
1
star
78

SunshineAndroidWear

Sunshine Android app with Android Wear support
Java
1
star
79

CSwA_anagrams

CS With Android Unit 1
Java
1
star
80

timemandy

Python
1
star
81

Counter-Strike-Bot-Editor

Counter Strike 1.6/CZ Bot Editor. Last updated β†’ Jan-2013 😝
AutoHotkey
1
star
82

Intro-to-ML

Intro to Machine Learning (ud120) - Udacity course projects
DIGITAL Command Language
1
star
83

nkm-server

WIE Hackathon project
Python
1
star
84

totalpastebin

Total Pastebin - currently a plan only
AutoHotkey
1
star
85

quotesOnTheGo

πŸ–Š Go commandline application that shows you random quotes. Go Learning Project.
Go
1
star
86

ini-highlighter

Syntax Highlighter Brush for Ini format
1
star
87

todo-pwa-workshop

JavaScript
1
star
88

lc3-codes

A repo for some of my LC3 scripts
Assembly
1
star
89

bitmex-position-size-calculator

Position size calculator for Bitmex, Bybit
JavaScript
1
star
90

ud-logs-analysis

[Udacity] [FSND] Logs Analysis Project
Python
1
star
91

ud-portfolio

[Udacity] [FSND] Portfolio website
HTML
1
star
92

cc-licenses-parser-scancode

Scan Creative Commons License pages and generate scancode data files
Python
1
star