Giter Club home page Giter Club logo

bash-snippets's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bash-snippets's Issues

create cheat sheets for Bash-Snippets in cheat.sheets

Create cheat sheets for all commands/scripts in Bash-snippets in cheat.sheets (https://github.com/chubin/cheat.sheets), so users could find the best Bash-Snippets usage examples using a Bash-Snippet tool (cheat) only (without man, google, stackoverflow etc.).

$ cheat ytview 
...
$ cheat stocks
...

You can create cheat sheets directly here (in this ticket) and then I add them to cheat.sh (not the best option), but it would be better if you could add them to the cheat.sheets repository directly (the bes option for now).

The third (and probably the best option in long run) if you add a cheat.sheets directory to your repository and it will be bound to cheat.sh (so you'll update your cheat sheets on your own and they will be still available to all cheat.sh users; read more on it in the cheat.sh README).

To summarize:

Bash-Snippets cheat sheets page are good because:

  1. Bash-Snippets users can read its docs using only Bash-Snippets tools;
  2. It will help other users of cheat.sh who are not aware of Bash-Snippets to discover it.
    (if someone runs some seqrch query like say: cheat.sh/~youtube/i it will finds the snippets or to be more concrete the stocks command).
  3. To start, create the cheat sheets and add them to cheat.sheets (and later migrate them to this repository).

Add ytviewer to README.MD?

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement: Since ytviewer is now stable, with Mac support, which hopefully is working, could it be added to the README?

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

qrify doesn't seem to work right on osx

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
qrify has unexpected spacing

image

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: 10.12.1

Tabs vs Spaces for code

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement: Should we use tabs or spaces in our code? I personally prefer tabs, but will work with anything. Just want to get a unified standard :) This isn't really urgent, so sorry for wasting your time.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

(Termux Support) Requires ability to specify install path

Issue Label:

  • Enhancement

Description:
Installing in Termux fails due to assumption of /usr/local/bin and /usr/bin and /bin/bash
while I can run the script manually with bash install.sh, there is zero reason to require sudo here. Specifying a directory for all scripts to install within would be helpful, then I could that to my path manually.

OS and OS version:

  • Android 7, Termux

Add option to backup only source repositories with Cloudup

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
I went to backup my repos using cloudup but noticed even my old forks were being backed up. I would like to be able to only backup my source repositories using something like a --source option. Possibly adding a --fork option would also help make it more robust.

Calling python2 instead of python

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
Kind of depends on the OS and package manager the user uses, but I believe most installers install python 2.7 as python. This causes the scripts that utilize python to fail because the user's machine won't have anything called python2 available in their path. There may be a way to check for what python is installed as in the path, I'm not sure though.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

Several improvements ideas (like that: Use LANG data when calling wttr.in)

Hi @alexanderepstein

Your weather script is cool, I like it, but if you make a special script instead of just curling wttr.in, I would suggest you several improvements:

  1. Use your $LANG/$LC_ALL variables to access localized wttr.in version (you can specify the language using the lang= URL parameter, or using the domain name): curl de.wttr.in/Berlin

  2. Check if the user has curl/httpie/wget installed, and use that one that is already installed (it will make your scripts robuster; not everyone has curl).

  3. You can pass some options of your script (weather) to wttr.in. Say: wind speed, number of days for the prognose etc.

  4. You can add a new feature to your script: weatherstamping of the photos (check this tweet for some inspiration: https://twitter.com/igor_chubin/status/842031115460313092

And if you need my help/new wttr.in features/improvements ideas, just contact me

todo not working

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
while all other commands are working perfectly fine, todo command gives error.
-bash : todo: command not found

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
macOS SIerra

Created a brew formula

I have created a brew formula for bash snippets for simpler installation on mac.
Homebrew/homebrew-core#15107

The brew build is failing atm now because this repo is less than 30 days, not sure if it is going to be merged into Brew before 30 days have gone.

The test probably should be improved, because it just tests if crypt has been installed, but if the user decided to run the --without-crypt option, tests will fail

Omdbapi is going private (used in movie)

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
So it seems Omdapi is going private in 05/08/17 (need Patreon to get api key), so that's going to make the movie script essentially not work.
Anyone happen to have any alternatives in mind?

Omdapi frontpage announcement image

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit
    OS Version:

Add bitbucket backup script

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
Run the user through either selecting some or all of their github repositories. Then clone all these repositories locally to a temporary directory and then create a new project on bitbucket and push the entire repository there. Do this for the selected/all repositories. Bitbucket backup repo names should be timestamped. (You could run this as a cron job on your machine to do this on a reoccurring schedule).

searching "mission impossible" in movies script

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:

When I run the movies script to find "mission impossible" like so, I get this output:

$ ./movies/movies mission impossible
Traceback (most recent call last):
  File "<string>", line 1, in <module>
IndexError: list index out of range

==================================================
| Title: Mission Impossible
| Year: 2008
| Tomato: 
| Rated: N/A
| Genre: Short, Action
| Director: Travis Neal
| Actors: Travis Neal
| Plot: N/A
==================================================

Ignoring the fact that this is not the movie I was expecting (though, you can get the tom cruise movie with "mission: impossible" this execution produces an index error.

The problem seems to come from line 58 where the code tries to find the Tomato score, sine this output seems to not have one.

One possible solution is to just pipe the error results of the command to /dev/null as below.

score=$(echo $movieInfo | python2 -c "import sys, json; print json.load(sys.stdin)['Ratings'][1]['Value']" 2> /dev/null)

I have tested that line and the error does in fact go away. If this solution works for you then let me know and I can create a PR for it, or you can make the fix yourself with this method or another method you may have in mind.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: 16.04LTS

Add a man page for Bash-Snippets

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
Have a man page that provides a more in depth description of each tool and their functionality. Could possibly have one man page per tool or one for all of bash-snippets. Only downside to the latter is if the user doesn't install that tool the information on the tool would still be in the bash-snippets man page.

This seems like a very efficient way to write manpages: https://github.com/rtomayko/ronn

Improve tests for each tool

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
Would love to have tests that run for the commits and PR's. Also can be used if new features are added to tools to make sure that no existing functionality has been broken.

This looks like a promising tool to use: https://github.com/sstephenson/bats

Enhancement: Youtube viewer in terminal

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
So, I'm thinking that we have a script that opens up a youtube-video from the terminal. The script is already written, but there's one clincher, which is that it requires lynx. I'm trying to adapt it to use curl instead, but would this be wanted? The script is fully functional so far, and I've added uninstall and install scripts for it to my fork.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: Arch Linux 64 bit

Add a todo tool

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
Create a simple command line todo list. Should be able to add new tasks, erase tasks and set tasks to completed. When calling the list of tasks next to each tasks should be the amount of time that has passed since you set up this todo.

Proxy Support

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
Support for proxy from env variables.

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
Arch Linux

change python to python2 everywhere

Instead of calling "python -c", use "python2 -c". Under Arch / Manjaro "python" is a symbolic link pointing to python3, thus "print ..." is a syntactic error. In most distros python points to python2, thus this problem doesn't occur under Ubuntu for instance.

Weather prints HTML file

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
Typing in weather on macOS High Sierra returns an HTML file instead of the expected output.

OS:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

System Specific Info:

OS version: macOS High Sierra Dev Preview 2
terminal: iTerm2 Nightly
shell: bash

EDIT: Check this answer for the solution.

Proxy support is missing

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
If I am behind a proxy and don't have a direct connection to the internet, the tools fail on checkInternet function, where it runs 'nc google.com 80'. Having support for standard http_proxy and https_proxy env variables would be great.

The python code ran after this function respects http_proxy and https_proxy settings.

This problem manifests in version provided by homebrew:
$ uname -a
Darwin somemac 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64

$ movies -v
Version 1.11.0

Ytviewer not working on Mac?

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
So, @alexanderepstein. You say that ytviewer isn't working on mac? What is the issue? Is it not playing the video? The only problem I get when running it on a friend's mac is that there is no video player to play it with, but I'm sure if you had vlc installed it would work? Please detail the issues.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

Improvement: add script to get command line/programing languages cheat sheets using cheat.sh

You can use the cheat.sh service to get command line/programming languages cheat sheets.

The service delivers currently almost 1000 different cheat sheets covering 16 topics.

How can you use it?

    curl cheat.sh/COMMAND

for example:

    curl cheat.sh/jq

Or if you want to get a programming language cheat sheet, use Language/Topic:

    curl cheat.sh/scala/PatternMatching
    curl cheat.sh/lua/:learn
    curl cheat.sh/perl/1line

Use ~ for search; use ?T to turn syntax highlighting off.

Very important: don't forget to use bash completion for this script. It's a crucial for cheat.sh, because you don't always know what is the name of the command that you are looking for.

Please check the README file of cheat.sh (https://github.com/chubin/cheat.sh) to get the whole list of its features.

Feel free to contact me if you need any help related to chetat.sh.

ytview cannot work on Windows 10

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:

BASH

› ytview -c

Error: no supported video player installed (vlc, mpv or mplayer)

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
Windows 10

Do not use with MSys2 on Windows

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:

Overwrites /usr/local/bin instead of copying a file into it. Thanks. A lot.
Windows. MSys2.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

Sourcing .bashrc in MacOS

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
MacOS defaults to sourcing ~/.bash_profile on the startup of a terminal window, so most mac users won't have a ~/.bashrc file. With the current setup it throws a No such file or directory error.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
MacOS 10.12.5

Stocks fails by not grabbing symbol

Issue Label:

  • Bug

Description:
Stocks for some reason returns unvalid stock symbol.

$ stocks AAPL                                                                                                         
/usr/local/bin/stocks: line 63:  5119 Done                    echo $stockInfo                                                          
5120 Segmentation fault: 11  | python -c "import sys, json; print json.load(sys.stdin)['Realtime Global Securities Quote']['02. E
xchange Name']" > /dev/null 2>&1                                                                                                       
Not a valid stock symbol

Tested when using AAPL and Tesla.

$ stocks -u
Bash-Snippets is already the latest version

OS and OS version:

  • Mac (Sierra, latest update)
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: 10.12.5 (16F73)

ytview cannot play videos with ads

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:
Ubuntu 17.04

Can't get the ytview to work for me. I run ytview linkin park and select the first video which makes an error pop up saying:

Your input can't be opened:
VLC is unable to open the MRL 'https://r4---sn-ci5gup-cags.googlevideo.com/videoplayback?ei=Z6tpWcLRIMm1oAPrirTwDw&requiressl=yes&itag=43&id=o-APaAaOjNS53wh_4zy7keT4WXzPo65QRHrYKiZyFHVJlF&dur=0.000&gir=yes&mm=31&mn=sn-ci5gup-cags&pcm2cms=yes&source=youtube&clen=16873382&ip=106.201.41.213&ms=au&mt=1500097292&mv=m&lmt=1365509526128018&expire=1500118983&ratebypass=yes&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&mime=video%2Fwebm&key=yt6&ipbits=0&initcwndbps=1012500&pl=19&signature=D6C62835742E9DAD988BD9811C466B7C0622CC6F.8D32C15D02389B257F692FC69AFAFB5C456EB003'. Check the log for details.

Any idea what's going wrong?

Add quick update feature

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
Using https://github.com/alexanderepstein/bsupdate add the update functionality to each one of the scripts. Allow the main installer script to take in an argument. If you call weather -u it should clone the repo and only install the new weather script.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit

OS Version: All

A collaboration idea ( Sparrow project )

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:

Hi! I like your project. Actually I have somewhat similar project - https://sparrowhub.org , the idea is you can upload all your snippets into sparrowhub and manage them as the packages of software, don't hesitate to ask me why and how. Or we can think of other ways of bashsnippets / sparrow integration.

Regards.

Alexey

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

Ytview is playing wrong video

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
No matter what I search by using ytview video title goes here when i choose the number to play the video it always plays the wrong video. Sometimes this video is on the list sometimes it is not.

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: Elementary OS 0.4.1

@linyostorovovoltos

Add bash-snippets to mainstream linux package managers

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
Would be awesome to have the tools uploaded for use with pacman yum and apt. Added a catch in my update script to see if user installed bash-snippets through a package manager and tell the user to update though their package manager.

OS and OS version:

  • Linux 32 Bit
  • Linux 64 Bit

Config File for API Key, URL, etc

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:

The API-Key and URL in the stocks module are hardcoded in the file stocks/stocks.
https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=$1&apikey=KPCCCRJVMOGN9L6T

I haven't checked the other files yet, but it seems to me that a config file would be better. You could simply enter your own API Key and change the URL.

Only one API Key for all users could bring problems with limits and violations of terms ...

Add help to all the scripts as option and argument

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:
Just provide a simple usage sentence and then break down argument usage etc...

OS and OS version:
All

OS Version: All

Improvement: add new tool to convert any string to QR-code in shell

You can convert any string to a QR-code without leaving your shell/editor
using curl and and qrenco.de:

$ printf "two\nlines" | curl -F-=\<- qrenco.de
$ curl qrenco.de/this                  

You can use any of these two forms (this first one supports any symbols + multilne text; the second one is shorter).

You could add a new script, say qrencode that will encode text passed as its argument,
or read the text from stdin and convert it using qrenco.de

Something like this:

if [ -z "$1" ]; then 
  curl -F-=\<- qrenco.de
else
  printf "$*" | curl -F-=\<- qrenco.de
fi

What is it good for? There are many good usecases, my favourite one is to quickly bring up text from your console on your smartphone.

[BUG] Curl not working with Weather script

/usr/local/bin/weather: 7: [: <a: unexpected operator
curl: option -0500&override=no%20&Comment=%0D%0A"><img: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

Todo fails to add a new task when using -a"foo" in bash

Issue Label:

  • Bug

Description:
When adding a new todo task, the notation todo -a 'foo' works fine. When using todo -a'foo' or todo -a"foo", the exit code is 0 but the task is not added:

todo -c
todo -g
// nothing
todo -a'foo'
echo $? 
//0
todo -g
// still nothing

Usually *nix tools allow a space between an option and an argument. Regardless, if that's not supported, exit code 0 shouldn't be returned as operation hasn't succeeded.

If its a bug make sure to include this section.

OS and OS version:

  • Mac

OS Version: 10.12.5

Additional info:

Bash version: GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)
Same behaviour with system bash: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)

[BUG] Currency parsing error

Issue Label:

  • bug
  • feature
  • enhancement

Description of bug or feature enhancement:

currency
What is the base currency: EUR
What currency to exchange to: RUB
What is the amount being exchanged: 1600

=========================
| EUR to RUB
| Rate: 6.553
| EUR: 1600
| RUB: 10484.800
=========================

But from:
http://api.fixer.io/latest?base=EUR&symbols=RUB

{"base":"EUR","date":"2017-06-27","rates":{"RUB":66.553}}

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

"taste" script assumes .bash_profile

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:

Using Zsh (through Homebrew), the taste script runs successfully after setting the API key in .zshrc, but it shows an error:

/usr/local/bin/taste: line 7: /Users/werner/.bash_profile: No such file or directory

Not sure if a source ~/.bash_profile is even needed; if the environment variable is exported properly, there's no need to source a shell startup script. I guess the line can be removed without problems.

PS: Thanks for this collection of scripts!

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: 10.10

It’s unclear the poll is live; results are likely schewed

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:

The poll in the README is neat. However, it’s not immediately apparent how it works; it’s not common for Github READMEs to be interactive. As such, I thought the poll was actually an image that was linking somewhere else (common solution in Github READMEs) and clicked anywhere to go the website of the actual poll.

I was then surprised when I saw my vote was registered, and I have no idea what I voted for.

Look closely, and you’ll see items farther down have less votes. I’m betting most people had the same reaction as me and voted for one of the top items by mistake.

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version:

Cheat cannot perform searches within programming languages

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
I am curling the link that is provided by cheat.sh/:help. Both curl -A curl -s cheat.sh/scala/~closure and curl -A curl -s cheat.sh/scala/~closure/irb return nothing.

However searches such as curl -A curl -s cheat.sh/~java/rrb does what it is supposed to and brings me to the javascript cheatsheet.

The output below can be recreated by running bash -x cheat -i -r -b scala closure.

+ currentVersion=1.10.1
+ configuredClient=
+ search=0
+ insensitive=
+ recursive=
+ boundry=
+ getConfiguredClient
+ command -v curl
+ configuredClient=curl
+ checkInternet
+ nc google.com 80
+ echo -e 'GET http://google.com HTTP/1.0\n\n'
+ '[' 0 -eq 0 ']'
+ return 0
+ getopts ribuvhis opt
+ case $opt in
+ insensitive=i
+ search=1
+ getopts ribuvhis opt
+ case $opt in
+ recursive=r
+ search=1
+ getopts ribuvhis opt
+ case $opt in
+ boundry=b
+ search=1
+ getopts ribuvhis opt
+ for arg in '"$@"'
+ [[ -i != \-\r ]]
+ [[ -i != \-\s ]]
+ [[ -i != \-\b ]]
+ [[ -i != \-\i ]]
+ for arg in '"$@"'
+ [[ -r != \-\r ]]
+ for arg in '"$@"'
+ [[ -b != \-\r ]]
+ [[ -b != \-\s ]]
+ [[ -b != \-\b ]]
+ for arg in '"$@"'
+ [[ scala != \-\r ]]
+ [[ scala != \-\s ]]
+ [[ scala != \-\b ]]
+ [[ scala != \-\i ]]
+ '[' -z ']'
+ arg1=scala
+ '[' '!' -z x ']'
+ arg2=scala
+ for arg in '"$@"'
+ [[ closure != \-\r ]]
+ [[ closure != \-\s ]]
+ [[ closure != \-\b ]]
+ [[ closure != \-\i ]]
+ '[' -z x ']'
+ '[' '!' -z x ']'
+ arg2=closure
+ checkSpecialPage scala 1
+ temp=scala
+ [[ scala == \l\i\s\t ]]
+ [[ scala == \l\e\a\r\n ]]
+ [[ scala == \s\t\y\l\e\s ]]
+ [[ 1 == \1 ]]
+ arg1=scala
+ checkSpecialPage closure 2
+ temp=closure
+ [[ closure == \l\i\s\t ]]
+ [[ closure == \l\e\a\r\n ]]
+ [[ closure == \s\t\y\l\e\s ]]
+ [[ 2 == \1 ]]
+ arg2=closure
+ [[ 5 == 0 ]]
+ [[ -i == \u\p\d\a\t\e ]]
+ [[ -i == \h\e\l\p ]]
+ [[ -i == \:\h\e\l\p ]]
+ [[ scala != closure ]]
+ getCheatSheet scala closure
+ [[ 2 == 1 ]]
+ link=cheat.sh/scala
+ [[ 2 == 2 ]]
+ [[ 1 == \1 ]]
+ link+=/~closure
+ [[ i != '' ]]
+ link+=/bir
+ httpGet cheat.sh/scala/~closure/bir
+ case "$configuredClient" in
+ curl -A curl -s cheat.sh/scala/~closure/bir
+ exit 0

Bug is existent on all platforms.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.