This howto describes installing entware for the Tomato open-source router firmware.
- USB stick - 1G or more in size
- USB-capable router running TomatoUSB.
<?php | |
set_time_limit(0); | |
/*输入账号密码*/ | |
$name = ''; | |
$password = ''; | |
//获取登陆cookie | |
$curl_post = 'email='.$name.'&password='.$password.'&done=/&submit=登 录'; | |
$cookie_file = dirname(__FILE__).'/cookie.txt'; | |
$curl = curl_init(); |
<?php | |
$bUrl = $_GET["url"]."&uk=".$_GET["uk"]; | |
@$bPage = file_get_contents($bUrl); | |
// fclose($bUrl); | |
preg_match_all('%\\\"dlink\\\"(.*?)&sh=1%si', $bPage, $dLink); | |
$dLink = substr(str_replace("\\\\/","/",$dLink[0][0]),12); | |
// preg_match_all('%server_filename=\"(.*?)\";%si', $bPage, $fIleName); | |
// $fIleName = substr($fIleName[0][0],17); | |
// $fIleName = substr($fIleName,0,strlen($fIleName)-2); | |
?> |
<?php | |
/** | |
* V2EX每日奖励自动领取脚本 - PHP / Selenium版 | |
* | |
* 使用前需要准备的: | |
* Oracle Java Runtime - http://java.com/ | |
* Selenium Server - http://seleniumhq.org/ | |
* PHP - http://php.net/ | |
* PHP-WebDriver - https://github.com/Element-34/php-webdriver | |
* Firefox - http://mozilla.org/ |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
signin_url = "http://www.v2ex.com/signin" | |
award_url = "http://www.v2ex.com/mission/daily" | |
main_url = "http://www.v2ex.com" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import string | |
try: | |
import pycurl2 as pycurl | |
except: | |
import pycurl | |
import urllib |
class V2exHandler(webapp2.RequestHandler): | |
def get(self, cmd): | |
return | |
if cmd == 'daily': | |
url = 'http://v2ex.com/signin' | |
cj = cookielib.CookieJar() | |
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) | |
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31'), | |
('Referer', 'http://v2ex.com/signin')] | |
res = opener.open(url) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import string | |
try: | |
import pycurl2 as pycurl | |
except: | |
import pycurl | |
import urllib |
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
1、 shadowsocks的timeout设置 | |
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
2、 检查操作系统的各种限制 | |
对于openvz的vps,特别需要检查一下 |
This howto describes installing entware for the Tomato open-source router firmware.
These instructions are for ARM devices only. For mipsel devices, then see the official entware readme instead at: https://github.com/Entware/entware
Thanks to qnapware - it works just as well on our routers too! Source: http://qnapware.zyxmon.org/binaries-armv7/installer/
Tested on Netgear Nighthawk R7000, with Shibby Tomato / AdvancedTomato v1.28 firmware. On an ext4
partition with it's journalling disabled.