cls1991 / ng Goto Github PK
View Code? Open in Web Editor NEWGet password of the wifi you're connected, and your current ip address.
License: Apache License 2.0
Get password of the wifi you're connected, and your current ip address.
License: Apache License 2.0
The specified item could not be found in the keychain.\n'
Please consider to change a name
I keep on getting the above error when running both ng ip and ng wp
I'm wondering if there is need to provide a patch for windows, just as #1 mentioned.
不错的项目, 想问下支持win10吗?
If it's supported of course.
希望你可以改一下你的README,加上一个Not the wifi which u never connect!
浪费时间
remster@DESKTOP-XXX:~/ng$ python ng.py ip
192.168.1.110
XXXXXX
remster@DESKTOP-XXX:~/ng$ python ng.py wp
Traceback (most recent call last):
File "ng.py", line 133, in <module>
cli()
File "/home/remster/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/remster/.local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/remster/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/remster/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/remster/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "ng.py", line 116, in wp
ok, err = _detect_wifi_ssid()
File "ng.py", line 41, in _detect_wifi_ssid
rs = _exec(command)
File "ng.py", line 25, in _exec
out, err = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
or
remster@DESKTOP-V1MD90G:~/ng$ python3 ng.py wp
Traceback (most recent call last):
File "ng.py", line 133, in <module>
cli()
File "/home/remster/.local/lib/python3.5/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/remster/.local/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/remster/.local/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/remster/.local/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/remster/.local/lib/python3.5/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "ng.py", line 116, in wp
ok, err = _detect_wifi_ssid()
File "ng.py", line 41, in _detect_wifi_ssid
rs = _exec(command)
File "ng.py", line 25, in _exec
out, err = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'nm-tool'
Modern linux distributions don't ship with ifconfig
and therefore ng ip
won't work.
The tool to use is ip addr
(or ip a
) instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.