Getting ready for 1.20.0 update

This commit is contained in:
Alex Epstein 2017-11-09 09:42:49 -05:00
parent f00f719c19
commit 0305fee356
8 changed files with 122 additions and 19 deletions

View File

@ -154,6 +154,20 @@ Grab lyrics for a given song quickly from the command line.
</details>
<details>
<summary>Meme</summary>
A lightning fast meme generator.
<div align="center">
<img max-height="500px" max-width="500px" src="https://github.com/alexanderepstein/Bash-Snippets/blob/master/meme/meme.png?raw=true">
</div>
</details>
<details>
<summary>Movies</summary>

View File

@ -317,6 +317,37 @@ lyrics \-a logic \-s run it \-f ~/runItLyrics\.txt
.
.IP "" 0
.
.SS "Meme"
Description: Create memes from the command line and store them as pictures\.
.
.P
Meme Description: A lightning fast meme generator
.
.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
.
.SS "Movies"
Description: Provides relevant information about a certain movie\.
.
@ -382,7 +413,9 @@ Description: Converts strings or urls into a qr code\.
* \-m Enable multiline support
* \-h Show the help
* \-f Save the QRCode to a file
* \-h Show the help
* \-v Get the tool version
.
@ -399,7 +432,9 @@ Examples:
* qrify this is a test string
* qrify \-m two\e\e\e\enlines
* qrify \-m two \en lines
* qrify \-f fileNameHere Insert what you want to encode here
* qrify github\.com # notice no http:// or https:// this will fail
.
@ -414,6 +449,12 @@ Description: Unmasks shortended urls\.
Usage: short [shortURL] or short [flag]
.
.IP "\(bu" 4
\-e Expand the following URL
.
.IP "\(bu" 4
\-s Shorten the following URL
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
@ -428,11 +469,17 @@ Usage: short [shortURL] or short [flag]
Example:
.
.IP "\(bu" 4
Input: short tinyurl\.com/jhkj
Input: short \-e tinyurl\.com/jhkj
.
.IP "\(bu" 4
Output: http://possiblemaliciouswebsiteornot\.com
.
.IP "\(bu" 4
Input: short \-s google\.com
.
.IP "\(bu" 4
Output: http://ki\.tc/23sd1d
.
.IP "" 0
.
.SS "Siteciphers"

View File

@ -217,6 +217,26 @@ Examples:
* lyrics -a logic -s run it -f ~/runItLyrics.txt
### Meme
Description: Create memes from the command line and store them as pictures.
Meme
Description: A lightning fast meme generator
Usage: tool [flags] or tool [flags] [arguments]
* -u Update Bash-Snippet Tools
* -h Show the help
* -f Choose the output filename
* -v Get the tool version
Examples:
* meme -f dogeMeme
### Movies
Description: Provides relevant information about a certain movie.
@ -287,7 +307,9 @@ Description: Converts strings or urls into a qr code.
* -m Enable multiline support
* -h Show the help
* -f Save the QRCode to a file
* -h Show the help
* -v Get the tool version
@ -295,7 +317,9 @@ Examples:
* qrify this is a test string
* qrify -m two\\\\nlines
* 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
@ -304,6 +328,10 @@ Description: Unmasks shortended urls.
Usage: short [shortURL] or short [flag]
* -e Expand the following URL
* -s Shorten the following URL
* -u Update Bash-Snippet Tools
* -h Show the help
@ -312,10 +340,14 @@ Usage: short [shortURL] or short [flag]
Example:
* Input: short tinyurl.com/jhkj
* Input: short -e tinyurl.com/jhkj
* Output: http://possiblemaliciouswebsiteornot.com
* Input: short -s google.com
* Output: http://ki.tc/23sd1d
### Siteciphers
Description: Checks the available ciphers for the SSL of an https site.

4
fileName.jpg Normal file
View File

@ -0,0 +1,4 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="/doge/i_am/meme.jpg">/doge/i_am/meme.jpg</a>. If not click the link.<script src="/cdn-cgi/apps/head/2UQUv0iFuRM4rCHorbwAkcubpdg.js"></script>

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.2"
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics meme movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
declare -a extraLinuxTools=(maps)
declare -a extraDarwinTools
usedGithubInstallMethod="0"

28
meme/meme Normal file → Executable file
View File

@ -76,6 +76,17 @@ checkInternet()
httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query github with a get request
}
main(){
echo -n "Enter the name for the meme's background (Ex. buzz, doge, blb ): "
read bg
echo -n "Enter the text for the first line: "
read first
echo -n "Enter the text for the second line: "
read second
httpGet "https://memegen.link/$bg/$first/$second.jpg" >> $fileName.jpg || return 1
return 0
}
usage()
{
cat <<EOF
@ -94,7 +105,7 @@ EOF
while getopts "uvh" opt; do
while getopts "uvhf:" opt; do
case "$opt" in
\?) echo "Invalid option: -$OPTARG" >&2
exit 1
@ -112,6 +123,10 @@ while getopts "uvh" opt; do
;;
f)
fileName=$OPTARG
getConfiguredClient || exit 1
checkInternet || exit 1
main || exit 1
exit 0
;;
:) echo "Option -$OPTARG requires an argument." >&2
exit 1
@ -120,16 +135,7 @@ while getopts "uvh" opt; do
done
main(){
echo -n "Enter the name for the meme's background (Ex. buzz, doge, blb ): "
read bg
echo -n "Enter the text for the first line: "
read first
echo -n "Enter the text for the second line: "
read second
httpGet "https://memegen.link/$bg/$first/$second.jpg" >> $fileName.jpg || return 1
return 0
}
# special set of first arguments that have a specific behavior across tools
if [[ $# == "0" ]]; then

BIN
meme/meme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics meme movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
all="1"
askUninstall()