本歌单由Listen1创建, 歌曲数:2,歌单数:1,点击查看更多
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
# 因为路由器重启后,crontab的定时任务会被清空,所以需要在开机时用命令添加定时检测任务, /jffs/scripts/这个目录下的脚本在重启后都会重新执行。 | |
#!/bin/sh | |
#每周一早上6点05分,重新拨号 | |
/usr/sbin/cru a repppd "5 6 * * 1 /bin/sh /koolshare/scripts/repppd.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
#重启梅林固件的拨号 | |
# 刷的官改固件,脚本可以放到/koolshare/scripts 下,重启的话也不会丢失,官方固件的话可以放到/jffs 下 | |
#vi /koolshare/scripts/repppd.sh | |
#!/bin/sh | |
/usr/bin/logger -c "断开拨号连接" | |
killall pppd | |
/usr/bin/logger -c "延时10秒" | |
sleep 10 | |
/usr/bin/logger -c "重新拨号" |
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
# 小红书记录 | |
## 第一次 打开 | |
### post fp-it.fengkongcloud.com/v3/cloudconf | |
request: | |
{ | |
"data": { | |
"smid": "2020052707241168070c1d7a7f71343dcde192a7d2c5db00a1935d016596c9", |
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
import socket | |
import socks | |
import requests | |
socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 1086) | |
socket.socket = socks.socksocket | |
print(requests.get('http://ifconfig.me/ip').text) |
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
5.01 方法 | |
访问 http://192.168.1.1/servmngr.html | |
打开 Telnet 选项,保存 [默认看不到内容,正常,鼠标全选整个网页就能看到了,原因字体背景颜色是白色] | |
Telnet 账号密码默认:admin|admin | |
Telnet 192.168.1.1 回车,输入用户名,回车,输入密码。 | |
〉输入bash回车 变成 # | |
###操作前先备份 备份 备份#### | |
# cp /fhconf/backpresetting.conf /fhconf/backpresetting.backup |
https://gist.github.com/phuslu/5432976
$ vi /etc/sysctl.conf
# 系统所有进程一共可以打开的文件数量, 每个套接字也占用一个文件描述字
fs.file-max = 1491124
# 系统同时保持TIME_WAIT套接字的最大数目,http 短链接会产生很多 TIME_WAIT 套接字。
net.ipv4.tcp_max_tw_buckets = 7000
# 关闭 tcp 来源跟踪
net.ipv4.conf.default.accept_source_route = 0
I have a Linux box running Ubuntu 10.04 with three interfaces: eth0, eth1 and eth2.
I am planning to use it as a WAN router for 4 public subnets assigned by two different ISP's.
Here are the subnets (I have converted the ISP assigned subnets to class C private subnets):
ISP 1
WAN 192.168.0.176/30 gateway 192.168.0.177
LAN 192.168.3.192/29
如果在你的日志中看到很多 error: too many open files
,这时就应该优化你的系统了。
本教程适用于所有 Shadowsocks 服务端 (Python 版、libev 版、还有其他)
以下教程适用于 Debian7 系统:
新建 /etc/sysctl.d/local.conf
这个文件并添加下面的内容:
fs.file-max = 51200