This file contains hidden or 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
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
1、 shadowsocks的timeout设置 | |
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
2、 检查操作系统的各种限制 | |
对于openvz的vps,特别需要检查一下 |
ref: http://www.ubuntuupdates.org/ppa/google_chrome?dist=stable
$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# 天朝要用 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
然后
This file contains hidden or 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
cd | |
sudo apt-get update -y | |
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
exec $SHELL |
SSH into Root
$ ssh [email protected]
Change Root Password
This file contains hidden or 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
@echo off | |
color 0a | |
title windows7系统垃圾清理--- | |
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★ | |
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★ | |
echo.★☆ ☆★ | |
echo.★☆ ☆★ | |
echo.★☆ 清理系统垃圾文件,请稍等...... ☆★ | |
echo ★☆ ☆★ | |
echo.★☆ ☆★ |
This file contains hidden or 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
func Contains(obj interface{}, target interface{}) (bool, error) { | |
targetValue := reflect.ValueOf(target) | |
switch reflect.TypeOf(target).Kind() { | |
case reflect.Slice, reflect.Array: | |
for i := 0; i < targetValue.Len(); i++ { | |
if targetValue.Index(i).Interface() == obj { | |
return true, nil | |
} | |
} | |
case reflect.Map: |
This file contains hidden or 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
<!--[if lt IE 10]> | |
<script> // 如果推荐语使用默认值,可以删除此 script 标签 | |
// IEDIE_HINT = '<p>自定义的提示语</p>'; | |
// 改为推荐 IE11,在 XP 系统下提示操作系统过时 | |
</script> | |
<script src="http://wuyongzhiyong.b0.upaiyun.com/iedie/v1.1/script.min.js"></script> | |
<![endif]--> |
This file contains hidden or 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
lodge: | |
per_size: 30 | |
right_list_size: 10 | |
slack: | |
defaults: &defaults | |
url: https://slack.com | |
channel: #channel | |
# トークンは Slack API のページで発行できます。 | |
token: my_token |