alexanderepstein /Bash-Snippets
A collection of small bash scripts for heavy terminal users
★ 9,949⑂ 834👁 227⑃ 129● 119▤ 46
9,949
stars
+0+-1+-5
834
forks
227
watchers
129
prs
119
issues
46
releases
–
discussions
README
Bash-Snippets
A collection of small bash scripts for heavy terminal users with no dependencies
!Version !platform
All of these scripts have been heavily tested on macOS and Linux
Most of these scripts have been tested on Windows 10 and the official developer bash instance. Does not work with Cygwin or Mysys2.
Looking for maintainers: I have been and probably will forever be too busy to maintain this properly on my own. I am looking for a few others to help out, if you want to be a maintainer either email me or raise an issue. I will probably only accept maintainers who have made a few contributions (no matter how small) and seem to understand the vision of this project.
Tools
Cheat
The fastest way to find {command options|code pieces} you need
Supports multiple languages and many bash commands
Cloudup
A tool that facilitates backing up github repositories to bitbucket
If you have ever felt the fear of the github unicorn this could be your savior
Furthermore you can backup the repositories of any github user to your bitbucket.
Backup all github repositories of the designated user at once with the -a option.
Or run it with no flags and backup individual repositories.
Crypt
A wrapper for openssl that allows for quickly encrypting and decrypting files
bash
crypt -e [original file] [encrypted file] encrypts files
crypt -d [encrypted file] [output file] decrypts files
Encryption Details
Uses AES 256 level encryption
Key is salted before creation
Password is never in plain text, and OpenSSL generates key based on password
Encrypted data is encoded in Base64, so it can be used as plain text in an email. (Not usually necessary if attached as a file)
Tested With .pdf, .txt, .docx, .doc, .png, .jpeg
CAUTION Make sure to use different filenames, otherwise your file will be overwritten!
Cryptocurrency
Converts Cryptocurrency based on realtime exchange rates of the top 10 cryptos
Originally written by: Jonas-Taha El Sesiy
Heavy modifications by: Alex Epstein
Currency
Converts currency based on realtime exchange rates
If you want to bypass to guided input you can pass in 3 arguments and it will run from there
ex.currency [baseCurrency] [exchangeToCurrency] [amountBeingExchanged]
so a valid use case would be currency USD EUR 12.35
Geo
Provides data for wan, lan, router, dns, mac, and ip geolocation
Written by: Jake Meyer
Gist
Manage your gist like a pro
Clone your owned gists and starred gists as git repos, and Fetch/Create/Edit/Delete them with Github API. It also supports quick search with hashtag and contents.
For more information, please go through the guide
Written by: typebrook
Lyrics
Grab lyrics for a given song quickly from the command line.
Meme
A lightning fast meme generator.
Movies
Quick search that grabs relevant information about a movie
Newton
Performs numerical calculations all the way up to