1. bash-snippets(1)
  2. bash-snippets(1)

NAME

bash-snippets - A collection of small bash scripts for heavy terminal users

Tools

Cheat

Description: Cheatsheets for quick information about multiple programming languages along with terminal commands

Usage: cheat [flags] [command] or cheat [flags] [programming language] [subject]

Special Pages:

Examples:

Cloudup

Description: Backs up a users github repositories to your bitbucket account. With no flags cloudup will guide you through backing up a single repository

Usage: cloudup [flags] or cloudup [flags] [listOfGHRepoNamesSplitBySpaces]

Examples:

Crypt

Description: A wrapper around openssl that facilitates encrypting and decrypting files.

Usage: crypt [flag] [inputFile] [outputFile]

Examples:

CryptoCurrency

Description: A realtime cryptocurrency converter. With no flags it will pull down the latest stats of the top 10 cryptos

Usage: cryptocurrency or cryptocurrency [flag] or cryptocurrency [flag] [arg]

Examples: cryptocurrency -o cryptocurrency -f eur

Currency

Description: A realtime currency converter. With no flags it will guide you through the currency exchange

Usage: currency or currency [flag] or currency [base] [exchangeTo] [amount]

Supported Currencies:


| AUD | BGN | BRL | CAD | | CHF | CNY | CZK | DKK | | EUR | GBP | HKD | HRK | | HUF | IDR | ILS | INR | | JPY | KRW | MXN | MYR | | NOK | NZD | PHP | PLN | | RON | RUB | SEK | SGD | | THB | TRY | USD | ZAR |


Examples:

Geo

Description: Provides quick access for wan, lan, router, dns, mac, and ip geolocation data

Usage: geo [flag]

Examples:

Custom Geo Output => [all] [query] [city] [region] [country] [zip] [isp]

Example: geo -a 8.8.8.8 -o city,zip,isp

Gist

Description: Manage your gists with git and Github API v3

Usage: gist [command] [args]

Example:

Lyrics

Description: Fetch lyrics for a certain song.

Usage: lyrics [flags] or tool [-a] [arg] [-s] [arg]

Examples:

Meme

Description: A lightning fast meme generator

Usage: tool [flags] or tool [flags] [arguments]

Examples:

Movies

Description: Provides relevant information about a certain movie.

Usage: movies [flag] or movies [movieToSearch]

Examples:

Newton

Description: Performs numerical calculations all the way up to symbolic math parsing.

Usage: newton [operation] [expression] or newton [flag]

Operations Sample Expression Sample Result
Simplify [[2x2]+7]*[4x2] 8 x4 + 28 x2
Factor x2 + 2x x (x + 2)
Derive x2+2x 2 x + 2
Integrate x2+2x 1/3 x3 + x2 +C
Roots/Zeroes x2+2x 2, 0
Tangent 2~x3 12 x + -16 | (Finding tangent line when x=2 for expression x3)
Area 2:4~x3 60 | (Finding area under curve from 2 to 4 for expression x3)
Cos pi -1
Sin pi 0
Tan pi/4 1
ArcCos 1 0
ArcSin 0 0
ArcTan pi arcsin(pi)
Abs -2 2
Log 2~8 3 | (Log base 2 of eight)

Valid Symbols: + add - subtract [ left parenthesis (you must use brackets bash has a bultin for parenthesis) ] right parenthesis (you must use brackets bash has a bultin for parenthesis) * multiply / divide ^ power : between the range of left and right side (only for area under curve) ~ parameter on right side (only for area, tangent line and log)

Examples:

Pwned

Usage: pwned [email]

Description: Checks where an email account has been breached

* -u Update Bash-Snippet Tools

* -h Show the help

* -v Get the tool version

Examples:

* pwned emailtocheck@email.com

Qrify

Usage: qrify [stringtoturnintoqrcode]

Description: Converts strings or urls into a qr code.

* -u Update Bash-Snippet Tools

* -m Enable multiline support

* -f Save the QRCode to a file

* -d Decode the QR code from a PNG/GIF/JP(E)G file

* -h Show the help

* -v Get the tool version

Examples:

* qrify this is a test string

* qrify -m two \n lines

* qrify -f fileNameHere Insert what you want to encode here

* qrify github.com # notice no http:// or https:// this will fail

* qrify -d fileName.png

Short

Description: Unmasks shortended urls.

Usage: short [shortURL] or short [flag]

Example:

Siteciphers

Description: Checks the available ciphers for the SSL of an https site.

Usage: siteciphers [flag] or siteciphers [optionalDFlag] [website]

Examples:

Stocks

Description: Finds the latest information on a certain stock.

Usage: stocks [flag] or stocks [company/ticker]

Examples:

Taste

Description: A recommendation engine that provides 3 similar items based on some input topic. Taste also has the ability to provide information on the item of interest. Supports: shows, books, music, artists, movies, authors, games

Usage: taste [flag] [item]

Examples:

Todo

Description: A simplistic commandline todo list.

Usage: todo [flags] or todo [flags] [arguments]

Examples:

Transfer

Description: Quickly transfer files from the command line.

Usage: transfer [flags] or transfer [flag] [args] or transfer [filePathToUpload]

Examples:

Weather

Description: Provides a 3 day forecast on your current location or a specified location. With no flags Weather will default to your current location.

Usage: weather or weather [flag] or weather [country] or weather [city] [state]

Examples:

Ytview

Description: Search and play youtube videos right from the terminal.

Usage: ytview [flag] [string] or ytview [videoToSearch]

Examples:

Updating

With any of the installed tools you can automate the update by running it with the -u option or passing in update as the arguments

or

This will clone the repository and install the new versions of scripts that were installed, if you didn't install a certain tool this script will not install the new version of that tool.

Uninstalling

If you don't have the Bash-Snippets folder anymore clone the repository: git clone https://github.com/alexanderepstein/Bash-Snippets`

cd into the Bash-Snippets directory: cd Bash-Snippets

To go through a guided uninstall

AUTHOR

Alexander Epstein Github: https://github.com/alexanderepstein

Contributors

Jake Meyer Github: https://github.com/jakewmeyer

Linyos Torovoltos Github: https://gitbub.com/linyostorovovoltos

License

MIT License

Copyright (c) 2017 Alex Epstein

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

  1. April 2020
  2. bash-snippets(1)