This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
wget https://github.com/tcp-nanqinlang/lkl-haproxy/releases/download/1.1.1/tcp_nanqinlang-haproxy-centos.sh | |
bash tcp_nanqinlang-haproxy-centos.sh | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
重置密码 | |
``` | |
passwd root | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
学派吧-受到客户需求。帮忙寻找一个 linux 服务器测试工具。今天特别找了几个测试工具、经常测试 把这个工具在分享下 | |
对于简单的测试手中的 Linux VPS、服务器等信息还是有一点点参考比较价值用途的。 | |
第一、脚本下载地址 | |
1、官方地址 | |
``` | |
wget https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | |
chmod +x superbench.sh | |
./superbench.sh | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Centos安装流量监控工具iftop笔记 | |
一、概述 | |
iftop可以用来监控网卡的实时流量(可以指定网段)、反向解析IP、显示端口信息等,详细的将会在后面的使用参数中说明。官方网站:http://www.ex-parrot.com/~pdw/iftop/ | |
本博客其他随笔参考: | |
网站日志实时分析工具GoAccess使用 | |
工作中常用Linux命令--服务器运维 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transmission-web一键汉化 | |
```python | |
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh | |
``` | |
nohup查看杀死 | |
查看jobs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
连接成功后,会出现如上图所示,之后就可以复制粘贴代码部署了。 | |
CentOS6+/Debian6+/Ubuntu14+ ShadowsocksR一键部署管理脚本(2018.11.21更新): | |
脚本一(2018.11.20更新) | |
yum -y install wget | |
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
没有使用代理服务器 | |
REMOTE_ADDR = 您的 IP | |
HTTP_VIA = 没数值或不显示 | |
HTTP_X_FORWARDED_FOR = 无数值或不显示 | |
使用透明代理服务器(Transparent Proxies) | |
REMOTE_ADDR = 最后一个代理服务器 IP | |
HTTP_VIA = 代理服务器 IP | |
HTTP_X_FORWARDED_FOR = 您的真实 IP ,经过多个代理服务器时,这个值类似如下:118.168.8.66, 119.188.68.169, 119.188.68.231 | |
此类代理服务器仍然将您的信息转发给您的访问对象,无法达到隐藏真实身份的目的。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在利用python解决各种实际问题的过程中,经常会遇到从某个对象中抽取部分值的情况,切片操作正是专门用于完成这一操作的有力武器。理论上而言,只要条件表达式得当,可以通过单次或多次切片操作实现任意切取目标值。切片操作的基本语法比较简单,但如果不彻底搞清楚内在逻辑,也极容易产生错误,而且这种错误有时隐蔽得比较深,难以察觉。本文通过详细例子总结归纳了切片操作的各种情况。若有错误和不足之处请大牛指正! | |
一、 Python可切片对象的索引方式 | |
包括:正索引和负索引两部分,如下图所示,以a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]为例: | |
python索引方式.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
安装 | |
pip3 install pyinstaller 即可 | |
注意:别用pip3.6 install | |
打包 | |
进入你要打包的python目录 | |
按照你脚本程序中文件需求把python用到的文件放在一起 | |
进入cmd程序丑陋的黑窗口 | |
在光标后面键入pyinstaller yourfilename.py ,回车即可 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[使用天翼家庭云来提速家用宽带, 以及反编译天翼家庭云apk获得Signature算法](http://blog.ruterfu.com/2019/02/09/faster-upload-using-tianyicloud/) | |
[2019-4-1 天翼云盘(家庭云)模拟提速设置方法分享](http://koolshare.cn/thread-158372-1-1.html) | |
[天翼家庭云 APP 提速 Python 脚本](https://www.v2ex.com/t/555226#reply23) |
NewerOlder