oooldking / script Goto Github PK
View Code? Open in Web Editor NEWSome Linux scripts
Some Linux scripts
Traceback (most recent call last):
File "tools.py", line 66, in
GetGeoioInfo(sys.argv[2])
File "tools.py", line 19, in GetGeoioInfo
ip_api = urllib2.urlopen(r'http://ip-api.com/json')
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 110] Connection timed out>
heifei是哪啊?
ubuntu 20.04 下无法使用
————————————————————————SuperSpeed 全面测速版—————————————————————————
使用方法: bash <(curl -Lso- https://git.io/superspeed)
查看全部节点: https://git.io/superspeedList
节点更新日期: 2019/12/23 脚本更新日期: 2020/01/28
——————————————————————————————————————————————————————————————————————
选择测速类型:
1. 三网测速 (各取部分节点) 2. 取消本次测速
3. 电信节点测速 4. 联通节点测速 5. 移动节点测速
请输入数字选择: 3
——————————————————————————————————————————————————————————————————————
ID 测速服务器信息 上传速度 下载速度 延迟
——————————————————————————————————————————————————————————————————————
测试完成, 本次测速耗时: 0 秒
当前时间: 2020-02-06 08:35:17
建议优化下写法
Line 19 in 76239cd
try:
urllib2.urlopen(r'http://ip-api.com/json')
except urllib2.URLError as e:
print e.code
原因是我的pi-hole默认屏蔽规则里有这个域名,so,巴啦啦报错
Traceback (most recent call last):
File "tools.py", line 68, in <module>
GetIpipInfo(sys.argv[2])
File "tools.py", line 14, in GetIpipInfo
ijson = json.load(f)
File "/usr/lib/python2.7/json/__init__.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
// ....pyton2.7错误...
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I tried the script on a lot of different vps and all of them always said not enough space when testing the io
似乎无法识别 AWS Graviton 2 处理器?
https://i.loli.net/2021/04/03/XpjQidC45B62Soc.png
https://aws.amazon.com/cn/ec2/graviton/
Upload Speed 是服务器 Upload到 那些测速站点吗, 也就是说 我想要看从服务器下载的流量带宽, 是看脚本里面的 upload 还是 download
脚本里面的speedtest server被写死
speed_test '3633' 'Shanghai CT'
有可能出现该server无效的测速失败的情况,通过speedtest.py --list
动态获取更好些
机器是:Linode nano
系统:Debian GNU/Linux 7 (64 Bit)
磁盘信息:25GB
运行结果:Total Space : 63.0 GB / 75.5 GB
OS: ArchLinux
变量
SHELL=/bin/bash
PWD=/root
LOGNAME=root
XDG_SESSION_TYPE=tty
HOME=/root
LANG=en_US.UTF-8
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=root
DISPLAY=localhost:11.0
SHLVL=1
XDG_SESSION_ID=36
XDG_RUNTIME_DIR=/run/user/0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
MAIL=/var/spool/mail/root
SSH_TTY=/dev/pts/3
错误信息
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
File "tools.py", line 16
print jjson[para.encode('utf-8')]
^
SyntaxError: invalid syntax
ASN & ISP : ,
Organization :
Location : , /
CentOS8无法测速啊
CPU Model : Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz
CPU Cores : 1 Cores 2497.106 MHz x86_64
CPU Cache : 16384 KB
OS : CentOS 8.0.1905 (64 Bit) KVM
Kernel : 5.4.0-rc6
Total Space : 1.7 GB / 9.8 GB
Total RAM : 109 MB / 476 MB (207 MB Buff)
Total SWAP : 0 MB / 0 MB
Uptime : 0 days 0 hour 20 min
Load Average : 0.07, 0.02, 0.00
TCP CC : bbr2
main: line 379: python: command not found
main: line 380: python: command not found
main: line 382: python: command not found
main: line 391: python: command not found
main: line 392: python: command not found
main: line 393: python: command not found
main: line 394: python: command not found
ASN & ISP : ,
Organization :
Location : , /
Region :
———————————————————————-
I/O Speed( 1.0GB ) : 1.0 GB/s
I/O Speed( 1.0GB ) : 1.1 GB/s
I/O Speed( 1.0GB ) : 961 MB/s
Average I/O Speed : 1037.1 MB/s
I need to create a bat file to delete all files except newest
汉化脚本:wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh
//////////////////////////反馈
I/O speed( 32M ) : 33554432字节(34 MB)已复制,0.465187 秒,72.1 MB/秒
I/O speed( 256M ) : 268435456字节(268 MB)已复制,2.58329 秒,104 MB/秒
I/O speed( 2G ) : 2147483648字节(2.1 GB)已复制,15.8099 秒,136 MB/秒
awk: cmd. line:1: BEGIN{print 33554432字节(34 + 268435456字节(268 + 2147483648字节(2.1}
awk: cmd. line:1: ^ invalid char '㥠in expression
awk: cmd. line:1: BEGIN{print 33554432字节(34 + 268435456字节(268 + 2147483648字节(2.1}
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: BEGIN{printf "%.1f", / 3}
awk: cmd. line:1: ^ unterminated regexp
awk: cmd. line:1: BEGIN{printf "%.1f", / 3}
awk: cmd. line:1: ^ unexpected newline or end of string
Average I/O speed : MB/s
测速端口在哪弄到的,能不能说下 我想多能几个
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.