Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

allyourcodearebelongtous

Combine all three commands into one and put SSID and password prominently in front of the command line instead of in the parameter of "qrencode"

Combine all three commands into one and put SSID and password prominently  in front of the command line instead of in the parameter of "qrencode"
fixed typos
README.md Outdated
@@ -73,9 +73,17 @@ and then you need to prepare this as a list of strings (surround it with double
sed -i -e 's/\(.*\)/ "\1",/' qr_ascii.txt
```

But there is no need to create files or execute three command lines .
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this line I think


#### Simple one-liner with output to stdout, replace SSID and PASSWD accordingly

```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this use single backtick too?

#### Simple one-liner with output to stdout, replace SSID and PASSWD accordingly

```
echo SSID PASSWD | ( read p1 p2; qrencode -t ASCII -m 0 "WIFI:S:$p1;T:WPA2;P:$p2;;" ) | sed -e '/\(.*\)/p' | sed -e 's/\(.*\)/ "\1",/'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe $YOUR_SSID and $YOUR_PASSWORD is better?

@@ -73,9 +73,17 @@ and then you need to prepare this as a list of strings (surround it with double
sed -i -e 's/\(.*\)/ "\1",/' qr_ascii.txt
```

But there is no need to create files or execute three command lines .

#### Simple one-liner with output to stdout, replace SSID and PASSWD accordingly
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use just Simple one-liner with output to stdout

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments to your comments:
1.) "No need for this line I think"
agreed

2.) "Shouldn't this use single backtick too?"

I used triple backquotes because of the automagically appended "copy" button to the right of the line.

3.) "Maybe $YOUR_SSID and $YOUR_PASSWORD is better?"

I used "read p1 p2" to not distract the user and clarify, where exactly to put the ssid and the password in the command string. Alas, I agree, maybe the line should begin with "echo YOUR_SSID_HERE YOUR_PASSWORD_HERE | ..." without (!) the prepended "$"of your suggestion and the two variables appended by "_HERE"

4.) "Simple one-liner with output to stdout"

agreed

Thanks for your quick response to the pull request and of course thanks for your QR-code generator.

BTW: I like your "create_new_password_and_regenerate_qr_code.sh". I didn't read it until now and so your README.md makes a lot more sense regarding this shell script.

Cheers,
Hampf

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I forgot about the script myself...haven't used this one in a while :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants