2
0
Fork 0
mirror of https://github.com/alexanderepstein/Bash-Snippets synced 2018-11-08 02:59:35 +01:00
Bash-Snippets/bash-snippets.1

862 lines
15 KiB
Groff
Raw Normal View History

2017-07-08 08:40:29 +02:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BASH\-SNIPPETS" "1" "December 2017" "ff" ""
2017-07-08 08:40:29 +02:00
.
.SH "NAME"
\fBbash\-snippets\fR \- A collection of small bash scripts for heavy terminal users
.
.SH "Tools"
.
.SS "Cheat"
Description: Cheatsheets for quick information about multiple programming languages along with terminal commands
.
.P
Usage: cheat [flags] [command] or cheat [flags] [programming language] [subject]
.
.IP "\(bu" 4
\-s Does a search for last argument rather than looking for exact match
.
.IP "\(bu" 4
\-i Case insensitive search
.
.IP "\(bu" 4
\-b Word boundaries in search
.
.IP "\(bu" 4
\-r Recursive search
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Special Pages:
.
.IP "\(bu" 4
hello Describes building the hello world program written in the language
.
.IP "\(bu" 4
list This lists all cheatsheets related to previous arg if none it lists all cheatsheets
.
.IP "\(bu" 4
learn Shows a learn\-x\-in\-minutes language cheat sheet perfect for getting started with the language
.
.IP "\(bu" 4
1line A collection of one\-liners in this language
.
.IP "\(bu" 4
weirdness A collection of examples of weird things in this language
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
cheat rust hello
.
.IP "\(bu" 4
cheat \-r \-b \-i go
.
.IP "\(bu" 4
cheat julia Functions
.
.IP "\(bu" 4
cheat \-i go operators
.
.IP "" 0
.
.SS "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
.
.P
Usage: cloudup [flags] or cloudup [flags] [listOfGHRepoNamesSplitBySpaces]
.
.IP "\(bu" 4
\-p Upload the repositor(y)(ies) as private to bitbucket (must have private repo ability on bitbucket)
.
.IP "\(bu" 4
\-a Backup all github repositories
.
.IP "\(bu" 4
2017-07-22 13:25:20 +02:00
\-s Only backup repositories that you have created (no forks) (only works in conjunction with the \-a flag)
.
.IP "\(bu" 4
\-t Backup the repository with a timestamp added to the repostiory name (will always create a new unique bitbucket repo)
.
.IP "\(bu" 4
2017-07-08 08:40:29 +02:00
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
cloudup
.
.IP "\(bu" 4
cloudup \-p \-a
.
.IP "\(bu" 4
cloudup \-p nameOfRepo1 nameOf Repo2
.
.IP "\(bu" 4
cloudup nameOfRep
.
.IP "" 0
.
.SS "Crypt"
Description: A wrapper around openssl that facilitates encrypting and decrypting files\.
.
.P
Usage: crypt [flag] [inputFile] [outputFile]
.
.IP "\(bu" 4
\-e Encrypt the inputFile and store it in the outputFil
.
.IP "\(bu" 4
\-d Decrypt the inputFile and store it in the outputFil
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
crypt \-e mySecretFile\.txt myEncryptedFile\.jpg (change filetype so default program is incorrect)
.
.IP "\(bu" 4
crypt \-d myEncryptedFile\.jpg thisIsNowDecrypted\.txt (change filetype back so now default program is correct)
.
.IP "" 0
.
.SS "CryptoCurrency"
2017-12-20 20:36:28 +01:00
Description: A realtime cryptocurrency converter\. With no flags it will pull down the latest stats of the top 10 cryptos
.
.P
2017-12-20 20:36:28 +01:00
Usage: cryptocurrency or cryptocurrency [flag] or cryptocurrency [flag] [arg]
.
.IP "\(bu" 4
\-o Utilize the old functionality of the tool
.
.IP "\(bu" 4
\-f Fiat currency for conversions
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
2017-12-20 20:36:28 +01:00
Examples: cryptocurrency \-o cryptocurrency \-f eur
.
2017-07-08 08:40:29 +02:00
.SS "Currency"
Description: A realtime currency converter\. With no flags it will guide you through the currency exchange
.
.P
Usage: currency or currency [flag] or currency [base] [exchangeTo] [amount]
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Supported Currencies:
.
.P
| 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 |
.
.P
Examples:
.
.IP "\(bu" 4
currency EUR USD 12\.35
.
.IP "\(bu" 4
currency
.
.IP "" 0
.
.SS "Geo"
Description: Provides quick access for wan, lan, router, dns, mac, and ip geolocation data
.
.P
Usage: geo [flag]
.
.IP "\(bu" 4
\-w Returns WAN IP
.
.IP "\(bu" 4
\-l Returns LAN IP(s)
.
.IP "\(bu" 4
\-r Returns Router IP
.
.IP "\(bu" 4
\-d Returns DNS Nameserver
.
.IP "\(bu" 4
\-m Returns MAC address for interface\. Ex\. eth0
.
.IP "\(bu" 4
\-g Returns Current IP Geodata
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
geo \-g
.
.IP "\(bu" 4
geo \-wlrdgm eth0
.
.IP "" 0
.
.P
Custom Geo Output => [all] [query] [city] [region] [country] [zip] [isp]
.
.P
Example: geo \-a 8\.8\.8\.8 \-o city,zip,isp
.
.IP "\(bu" 4
\-o [options] Returns Specific Geodata
.
.IP "\(bu" 4
\-a [address] For specific ip in \-s
.
.IP "\(bu" 4
\-v Returns Version
.
.IP "\(bu" 4
\-h Returns Help Screen
.
.IP "\(bu" 4
\-u Updates Bash\-Snippets
.
.IP "" 0
.
.SS "Lyrics"
Description: Fetch lyrics for a certain song\.
.
.P
Usage: lyrics [flags] or tool [\-a] [arg] [\-s] [arg]
.
.IP "\(bu" 4
\-a Artist of the song to fetch lyrics for
.
.IP "\(bu" 4
\-s Song of the artist to fetch lyrics for
.
.IP "\(bu" 4
\-f Export the lyrics to file rather than outputting to stdout
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
lyrics \-a logic \-s run it
.
.IP "\(bu" 4
lyrics \-a logic \-s run it \-f ~/runItLyrics\.txt
.
.IP "" 0
.
2017-11-09 15:42:49 +01:00
.SS "Meme"
Description: A lightning fast meme generator
2017-11-09 15:42:49 +01:00
.
.P
Usage: tool [flags] or tool [flags] [arguments]
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-f Choose the output filename
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
meme \-f dogeMeme
.
.IP "" 0
.
2017-07-08 08:40:29 +02:00
.SS "Movies"
Description: Provides relevant information about a certain movie\.
.
.P
Usage: movies [flag] or movies [movieToSearch]
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "\(bu" 4
\-d Show detailed information
.
2017-07-08 08:40:29 +02:00
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
movies Argo
.
.IP "\(bu" 4
movies Inception
.
.IP "" 0
.
.SS "Newton"
Description: Performs numerical calculations all the way up to symbolic math parsing\.
.
.P
Usage: newton [operation] [expression] or newton [flag]
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
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)
.
2017-07-08 08:40:29 +02:00
.P
Examples:
.
.IP "\(bu" 4
newton simplify [[2x]+7]*[4x]
2017-07-08 08:40:29 +02:00
.
.IP "\(bu" 4
movies derive x+2x
.
.IP "" 0
.
.SS "Pwned"
Usage: pwned [email]
.
.P
Description: Checks where an email account has been breached
.
.IP "" 4
.
.nf
* \-u Update Bash\-Snippet Tools
* \-h Show the help
* \-v Get the tool version
.
.fi
.
.IP "" 0
.
.P
Examples:
.
.IP "" 4
.
.nf
* pwned emailtocheck@email\.com
.
.fi
2017-07-08 08:40:29 +02:00
.
.IP "" 0
.
.SS "Qrify"
Usage: qrify [stringtoturnintoqrcode]
.
.P
Description: Converts strings or urls into a qr code\.
.
.IP "" 4
.
.nf
* \-u Update Bash\-Snippet Tools
* \-m Enable multiline support
2017-11-09 15:42:49 +01:00
* \-f Save the QRCode to a file
* \-d Decode the QR code from a PNG/GIF/JP(E)G file
2017-11-09 15:42:49 +01:00
* \-h Show the help
2017-07-08 08:40:29 +02:00
* \-v Get the tool version
.
.fi
.
.IP "" 0
.
.P
Examples:
.
.IP "" 4
.
.nf
* qrify this is a test string
2017-11-09 15:42:49 +01:00
* qrify \-m two \en lines
* qrify \-f fileNameHere Insert what you want to encode here
2017-07-08 08:40:29 +02:00
* qrify github\.com # notice no http:// or https:// this will fail
* qrify \-d fileName\.png
2017-07-08 08:40:29 +02:00
.
.fi
.
.IP "" 0
.
.SS "Short"
Description: Unmasks shortended urls\.
.
.P
Usage: short [shortURL] or short [flag]
.
.IP "\(bu" 4
2017-11-09 15:42:49 +01:00
\-e Expand the following URL
.
.IP "\(bu" 4
\-s Shorten the following URL
.
.IP "\(bu" 4
2017-07-08 08:40:29 +02:00
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Example:
.
.IP "\(bu" 4
2017-11-09 15:42:49 +01:00
Input: short \-e tinyurl\.com/jhkj
2017-07-08 08:40:29 +02:00
.
.IP "\(bu" 4
Output: http://possiblemaliciouswebsiteornot\.com
.
2017-11-09 15:42:49 +01:00
.IP "\(bu" 4
Input: short \-s google\.com
.
.IP "\(bu" 4
Output: http://ki\.tc/23sd1d
.
2017-07-08 08:40:29 +02:00
.IP "" 0
.
2017-07-15 18:19:04 +02:00
.SS "Siteciphers"
Description: Checks the available ciphers for the SSL of an https site\.
.
.P
Usage: siteciphers [flag] or siteciphers [optionalDFlag] [website]
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "\(bu" 4
\-d Set the delay between requests sent to the site (default is 1 sec)
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
siteciphers github\.com
.
.IP "\(bu" 4
siteciphers \-d 0\.75 google\.com
.
.IP "" 0
.
2017-07-08 08:40:29 +02:00
.SS "Stocks"
Description: Finds the latest information on a certain stock\.
.
.P
Usage: stocks [flag] or stocks [company/ticker]
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
stocks AAPL
.
.IP "\(bu" 4
stocks Tesla
.
.IP "" 0
.
.SS "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
.
.P
Usage: taste [flag] [item]
.
.IP "\(bu" 4
\-i Get more information on similar items
.
.IP "\(bu" 4
\-s Get information on the item itself
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
taste \-i Kendrick Lamar
.
.IP "\(bu" 4
taste Catcher in the Ry
.
.IP "\(bu" 4
taste \-s Red Hot Chili Peppers
.
2017-07-17 00:37:56 +02:00
.IP "" 0
2017-07-16 02:55:27 +02:00
.
2017-07-17 00:37:56 +02:00
.SS "Todo"
2017-07-16 02:55:27 +02:00
Description: A simplistic commandline todo list\.
.
.P
Usage: todo [flags] or todo [flags] [arguments]
.
.IP "\(bu" 4
\-c Clear all the current tasks
.
.IP "\(bu" 4
\-r Remove the following task number
.
.IP "\(bu" 4
\-g Get the current tasks
.
.IP "\(bu" 4
\-a Add the following task
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
todo \-a My very first task
.
.IP "\(bu" 4
todo \-r 1
.
.IP "\(bu" 4
todo \-g
.
.IP "\(bu" 4
todo \-c
.
2017-07-08 08:40:29 +02:00
.IP "" 0
.
2017-08-04 14:24:24 +02:00
.SS "Transfer"
Description: Quickly transfer files from the command line\.
.
.P
Usage: transfer [flags] or transfer [flag] [args] or transfer [filePathToUpload]
2017-08-04 14:24:24 +02:00
.
.IP "\(bu" 4
\-d Download a single file
.
.IP "" 4
.
.nf
* First arg: Output file directory
* Second arg: File url id
* Third arg: File name
.
.fi
.
.IP "" 0
.
.IP "\(bu" 4
\-o Onetime file upload
2017-08-04 14:24:24 +02:00
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
transfer ~/fileToTransfer\.txt
.
.IP "\(bu" 4
transfer ~/firstFileToTransfer\.txt ~/secondFileToTransfer\.txt # upload multiple files at once
2017-08-04 14:24:24 +02:00
.
.IP "\(bu" 4
transfer \-d ~/outputDirectory fileID fileName
.
.IP "\(bu" 4
transfer \-o ~/fileToTransfer\.txt
.
2017-08-04 14:24:24 +02:00
.IP "" 0
.
2017-07-08 08:40:29 +02:00
.SS "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\.
.
.P
Usage: weather or weather [flag] or weather [country] or weather [city] [state]
.
.IP "\(bu" 4
2017-08-02 02:34:24 +02:00
weather [optionalLocation] [i][M] get weather in imperial units, optional M means windspeed in m/s
2017-07-08 08:40:29 +02:00
.
.IP "\(bu" 4
2017-08-02 02:34:24 +02:00
weather [optionalLocation] [m][M] lowercase m gets weather in metric units, optional M means windspeed in m/s
2017-07-08 08:40:29 +02:00
.
.IP "\(bu" 4
weather [Moon] grabs the phase of the moon
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
weather
.
.IP "\(bu" 4
2017-08-02 02:34:24 +02:00
weather Paris m
.
.IP "\(bu" 4
2017-07-08 08:40:29 +02:00
weather Tokyo
.
.IP "\(bu" 4
weather Moon
.
.IP "\(bu" 4
2017-08-02 02:34:24 +02:00
weather mM
2017-07-08 08:40:29 +02:00
.
.IP "" 0
.
.SS "Ytview"
Description: Search and play youtube videos right from the terminal\.
.
.P
Usage: ytview [flag] [string] or ytview [videoToSearch]
.
.IP "\(bu" 4
\-s Searches youtube
.
.IP "\(bu" 4
\-c Shows the latest videos of a channel
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
ytview \-s Family Guy Chicken Fight
.
.IP "\(bu" 4
ytview \-c Numberphile
.
.IP "" 0
.
.SH "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
.
2017-07-14 02:46:05 +02:00
.IP "\(bu" 4
stocks update
2017-07-08 08:40:29 +02:00
.
.IP "" 0
.
.P
or
.
2017-07-14 02:46:05 +02:00
.IP "\(bu" 4
stocks \-u
2017-07-08 08:40:29 +02:00
.
.IP "" 0
.
.P
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\.
.
.SH "Uninstalling"
If you don\'t have the Bash\-Snippets folder anymore clone the repository: git clone https://github\.com/alexanderepstein/Bash\-Snippets`
.
.P
cd into the Bash\-Snippets directory: \fBcd Bash\-Snippets\fR
.
.IP "" 4
.
.nf
To go through a guided uninstall
.
.fi
.
.IP "" 0
.
.IP "\(bu" 4
\&\./uninstall\.sh
.
.IP "" 0
.
2017-07-08 08:40:29 +02:00
.SH "AUTHOR"
Alexander Epstein Github: https://github\.com/alexanderepstein
.
.SH "Contributors"
Jake Meyer Github: https://github\.com/jakewmeyer
.
.P
Linyos Torovoltos Github: https://gitbub\.com/linyostorovovoltos
.
.SH "License"
MIT License
.
.P
Copyright (c) 2017 Alex Epstein
.
.P
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:
.
.P
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software\.
.
.P
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\.