在 主流代理软件 被针对的现在,推荐一个小众好用的代理软件 — Brook | 逗比根据地

在 主流代理软件 被针对的现在,推荐一个小众好用的代理软件 — Brook | 逗比根据地

在前段时间开会期间,大量主流代理协议软件被针对、干扰、封IP等,我觉得我或许要把目光放到小众代理软件上,或许有奇效,正好昨天Brook更新了新版本,更新了新协议,我就更新了我以前写的脚本和教程,顺便试一下效果,发现速度很快(至少我这里测试效果速度比SSR快),考虑到我以前写的Brook教程都挤到最前面去了,所以我再简单介绍一下。


Brook简单介绍

Brook 是一个高效的 Socks5 代理软件,官方支持Windows、Linux、MacOS、IOS、Android、树莓派等设备,同时是使用 Golang 语言编写,安装、使用异常简单。

Brook 支持 自写Brook协议+高混淆强度Stream协议、Shadowsocks原版协议、SOCKS5协议、TCP/UDP转发、SOCKS5代理转HTTP代理等功能。

Brook 支持 UDP转发,无需任何设置。

支持单端口和多端口(每个端口可以单独设定密码),这点类似于 Shadowsocks 和 ShadowsocksR 的单用户服务端。

Github项目:https://github.com/txthinking/brook

如何使用?

服务端 一键脚本

『原创』一个优秀的跨平台 Socks5代理软件 —— Brook 一键安装管理脚本

服务端 手动教程

一个优秀的跨平台 Socks5代理软件 —— Brook 服务端教程

客户端 使用教程

Brook代理 Windows/Android版客户端简单使用教程

客户端支持PAC(默认支持不需要任何设置,客户端会自动更新最新GFWList PAC)

速度测试

注意:以下测试仅代表我本地的情况,其他地区仅供参考。

环境为:联通运营商,同一个VPS,同一个时间(因为是错开时间测试的,会相差几分钟)

ShadowsocksR 测试

ShadowsocksR配置:aes-128-ctr / auth_aes128_md5 / tls1.2_ticket_auth

<img class=”alignnone size-medium” src=”https://img.doub.pw/brook-jc4/brook-jc4-02.png” width=”529″ height=”180″ />

Brook 测试

Brook配置:Brook协议(就是默认)

<img class=”alignnone size-medium” style=”border-color: #dddddd; background-color: #fbfbfb;” src=”https://img.doub.pw/brook-jc4/brook-jc4-01.png” width=”521″ height=”167″ />

责任声明:本站一切资源仅用作交流学习,请勿用作商业或违法行为!如造成任何后果,本站概不负责!
在 主流代理软件 被针对的现在,推荐一个小众好用的代理软件 — Brook | 逗比根据地

shell脚本:监控HTTP服务的状态(测试返回码)

by 丁丁历险

51CTO技术博客 / 2017-11-03 13:32

#定义函数check_http: 

#使用curl命令检查http服务器的状态 #-m设置curl不管访问成功或失败,最大消耗的时间为5秒,5秒连接服务为相应则视为无法连接

#-s设置静默连接,不显示连接时的连接速度、时间消耗等信息 

#-o将curl下载的页面内容导出到/dev/null(默认会在屏幕显示页面内容) 

#-w设置curl命令需要显示的内容%{http_code},指定curl返回服务器的状态码

   #!/bin/bash   #Author:丁丁历险(Jacob)   #设置变量,url为你需要检测的目标网站的网址(IP或域名)   url=http://192.168.4.5/index.html       #定义函数check_http:   #使用curl命令检查http服务器的状态   #-m设置curl不管访问成功或失败,最大消耗的时间为5秒,5秒连接服务为相应则视为无法连接   #-s设置静默连接,不显示连接时的连接速度、时间消耗等信息   #-o将curl下载的页面内容导出到/dev/null(默认会在屏幕显示页面内容)   #-w设置curl命令需要显示的内容%{http_code},指定curl返回服务器的状态码   check_http(){   status_code=$(curl -m 5 -s-o /dev/null -w %{http_code} $url)   }       while :   do          check_http          date=$(date +%Y%m%d-%H:%M:%S)    #生成报警邮件的内容          echo "当前时间为:$date          $url服务器异常,状态码为${status_code}.          请尽快排查异常." > /tmp/http$$.pid             #指定测试服务器状态的函数,并根据返回码决定是发送邮件报警还是将正常信息写入日志          if [ $status_code -ne 200 ];then                 mail -s Warning root > /var/log/http.log          fi          sleep 5   done   

本文出自 “丁丁历险” 博客,请务必保留此出处http://manual.blog.51cto.com/3300438/1977834

Shared via Inoreader

shell脚本:监控HTTP服务的状态(测试返回码)

在 Mac OS X 终端里使用 Solarized 配色方案 | vpsee.com

在 Mac OS X 终端里使用 Solarized 配色方案 | vpsee.com

[hi@vpsee.com]$ su root –

相信长期浸泡在终端和代码的小伙伴们都有一套自己喜爱的配色方案。以前一直在用简单、适合阅读的 Terminal.app 配色方案换到 MacBook Pro with Retina display 后发现这个配色时间看长了眼睛有点累。不断有人推荐 Solarized,看了一些截图,感觉还不错,决定试一下。

Solarized 是目前最完整的 Terminal/Editor/IDE 配色项目,几乎覆盖所有主流操作系统(Mac OS X, Linux, Windows)、编辑器和 IDE(Vim, Emacs, Xcode, TextMate, NetBeans, Visual Studio 等),终端(iTerm2, Terminal.app, Putty 等)。类似的项目还有 Tomorrow Theme.

要在 Mac OS X 终端里舒服的使用命令行(至少)需要给3个工具配色,terminal、vim 和 ls. 首先下载 Solarized:

Terminal/iTerm2

Mac OS X 自带的 Terminal 和免费的 iTerm2 都是很好用的工具,iTerm2 可以切分成多窗口,更方便一些。

如果你使用的是 Terminal 的话,在 solarized/osx-terminal.app-colors-solarized 下双击 Solarized Dark ansi.terminal 和 Solarized Light ansi.terminal 就会自动导入两种配色方案 Dark 和 Light 到 Terminal.app 里。

如果你使用的是 iTerm2 的话,到 solarized/iterm2-colors-solarized 下双击 Solarized Dark.itermcolors 和 Solarized Light.itermcolors 两个文件就可以把配置文件导入到 iTerm 里。

Vim

Vim 的配色最好和终端的配色保持一致,不然在 Terminal/iTerm2 里使用命令行 Vim 会很别扭:

$ cd solarized  $ cd vim-colors-solarized/colors  $ mkdir -p ~/.vim/colors  $ cp solarized.vim ~/.vim/colors/    $ vi ~/.vimrc  syntax enable  set background=dark  colorscheme solarized  

iterm2 and solarized

ls

Mac OS X 是基于 FreeBSD 的,所以一些工具 ls, top 等都是 BSD 那一套,ls 不是 GNU ls,所以即使 Terminal/iTerm2 配置了颜色,但是在 Mac 上敲入 ls 命令也不会显示高亮,可以通过安装 coreutils 来解决(brew install coreutils),不过如果对 ls 颜色不挑剔的话有个简单办法就是在 .bash_profile 里输出 CLICOLOR=1:

$ vi ~/.bash_profile  export CLICOLOR=1  

vim and solarized

在 Mac OS X 终端里使用 Solarized 配色方案 | vpsee.com

Nginx Module for Google

by FISHERMAN

Nginx Module for Google Mirror

Build Status Gitter

Description

ngx_http_google_filter_module is a filter module which makes google mirror much easier to deploy.
Regular expressions, uri locations and other complex configurations have been built-in already.
The native nginx module ensure the efficiency of handling cookies, gstatic scoures and redirections.
Let’s see how easy it is to setup a google mirror.
location / {
google on;
}
What? Are you kidding me?
Yes, it’s just that simple!

Demo site https://g2.wen.lu

Demo Site

Dependency

  1. pcre regular expression support
  2. ngx_http_proxy_module backend proxy support
  3. ngx_http_substitutions_filter_module mutiple substitutions support

Installation

Download sources first
#
# download the newest source
# @see http://nginx.org/en/download.html
#
wget http://nginx.org/download/nginx-1.7.8.tar.gz

#
# clone ngx_http_google_filter_module
# @see https://github.com/cuber/ngx_http_google_filter_module
#
git clone https://github.com/cuber/ngx_http_google_filter_module

#
# clone ngx_http_substitutions_filter_module
# @see https://github.com/yaoweibin/ngx_http_substitutions_filter_module
#
git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module
Brand new installation
#
# configure nginx customly
# replace </path/to/> with your real path
#
./configure
<your configuration>
--add-module=</path/to/>ngx_http_google_filter_module
--add-module=</path/to/>ngx_http_substitutions_filter_module
Migrate from existed distribution
#
# get the configuration of existed nginx
# replace </path/to/> with your real path
#
</path/to/>nginx -V
> nginx version: nginx/ <version>
> built by gcc 4.x.x
> configure arguments: <configuration>

#
# download the same version of nginx source
# @see http://nginx.org/en/download.html
# replace <version> with your nginx version
#
wget http://nginx.org/download/nginx-<version>.tar.gz

#
# configure nginx
# replace <configuration> with your nginx configuration
# replace </path/to/> with your real path
#
./configure
<configuration>
--add-module=</path/to/>ngx_http_google_filter_module
--add-module=</path/to/>ngx_http_substitutions_filter_module
#
# if some libraries were missing, you should install them with the package manager
# eg. apt-get, pacman, yum ...
#

Usage

Basic Configuration
resolver is needed to resolve domains.
server {
# ... part of server configuration
resolver 8.8.8.8;
location / {
google on;
}
# ...
}
Google Scholar
google_scholar depends on google, so google_scholar cannot be used independently.
Nowadays google scholar has migrate from http to https, and ncr is supported, so the tld of google scholar is no more needed.
location / {
google on;
google_scholar on;
}
Google Language
The default language can be set through google_language, if it is not setup, zh-CN will be the default language.
location / {
google on;
google_scholar on;
# set language to German
google_language de;
}
Supported languages are listed below.
ar    -> Arabic
bg -> Bulgarian
ca -> Catalan
zh-CN -> Chinese (Simplified)
zh-TW -> Chinese (Traditional)
hr -> Croatian
cs -> Czech
da -> Danish
nl -> Dutch
en -> English
tl -> Filipino
fi -> Finnish
fr -> French
de -> German
el -> Greek
iw -> Hebrew
hi -> Hindi
hu -> Hungarian
id -> Indonesian
it -> Italian
ja -> Japanese
ko -> Korean
lv -> Latvian
lt -> Lithuanian
no -> Norwegian
fa -> Persian
pl -> Polish
pt-BR -> Portuguese (Brazil)
pt-PT -> Portuguese (Portugal)
ro -> Romanian
ru -> Russian
sr -> Serbian
sk -> Slovak
sl -> Slovenian
es -> Spanish
sv -> Swedish
th -> Thai
tr -> Turkish
uk -> Ukrainian
vi -> Vietnamese
Spider Exclusion
The spiders of any search engines are not allowed to crawl google mirror.
Default robots.txt listed below was build-in aleady.
User-agent: *
Disallow: /
If google_robots_allow set to on, the robots.txt will be replaced with the version of google itself.
  #...
location / {
google on;
google_robots_allow on;
}
#...
Upstreaming
upstream can help you to avoid name resolving cost, decrease the possibility of google robot detection and proxy through some specific servers.
upstream www.google.com {
server 173.194.38.1:443;
server 173.194.38.2:443;
server 173.194.38.3:443;
server 173.194.38.4:443;
}
Proxy Protocol
By default, the proxy will use https to communicate with backend servers.
You can use google_ssl_off to force some domains to fall back to http protocol.
It is useful, if you want to proxy some domains through another gateway without ssl certificate.
#
# eg.
# i want to proxy the domain 'www.google.com' like this
# vps(hk) -> vps(us) -> google
#

#
# configuration of vps(hk)
#
server {
# ...
location / {
google on;
google_ssl_off "www.google.com";
}
# ...
}

upstream www.google.com {
server < ip of vps(us) >:80;
}

#
# configuration of vps(us)
#
server {
listen 80;
server_name www.google.com;
# ...
location / {
proxy_pass https://www.google.com;
}
# ...
}
from https://github.com/cuber/ngx_http_go
ogle_filter_module

--

Shared via Inoreader

Nginx Module for Google

如何在Windows中使用FAT32格式化大于32GB的U盘 • 系统极客

如何在Windows中使用FAT32格式化大于32GB的U盘 • 系统极客

很多用户已经注意到了,在 Windows 中默认是无法使用 FAT32 文件系统来格式化大于 32GB 空间 U 盘的。

FAT32 文件系统虽然已经比较老旧了,还有安全性低等诸多限制,已经不适用于现代主流操作系统。但只要你不打算使用单个大小超过 4GB 的文件,将其作为跨设备和操作系统使用的外部驱动器文件系统格式还是不错的。如果你确实需要使用比较大的单个文件,那还是 NTFS 和 exFAT 比较合适。

目前主要的操作系统和大多数设备都支持 FAT32,使其可以成为需要在不同系统间访问的驱动器。但由于厂商在文件系统上推出的规格限制,造成 FAT32 只能格式化介于 2GB — 32GB 大小之间的 u 盘等外部驱动器。事实上,FAT32 文件系统理论所支持在空间大小限制为 16TB,而目前大部单个外部驱动器也才 8TB,所以用 FAT32 来格式化大于 32GB 空间 U 盘也是可行的。

下面系统极客将为大家介绍 2 种使用 FAT32 格式化大型 USB 驱动器的方法。

使用FAT32 Format格式化大空间FAT32 USB驱动器

如果你愿意使用免费的第三方工具,则可以使用 Ridgecrop Consultants 推出的 FAT32 Format 这一 GUI、绿色小工具来格式化超 32GB 的 FAT32 U 盘。

在 FAT32 Format 主界面中选择好要格式化的驱动器—分配单元大小(Allocation unit size)—输入卷标(Volume labe)—勾选快速格式化(Quick Format),再点击开始(Start)即可开始格式化。

注意:新版本的 FAT32 Format 在点击 Start 之后就会立即执行,U 盘中的所有内容都将被直接清空,不会再有提示让用户确认。

使用PowerShell格式化大空间FAT32 USB驱动器

如果你跟笔者一样喜欢装 X 或者不喜欢使用第三方工具,也可以使用 Windows 自带的「命令提示符」和 PowerShell 来格式化空间大于 32GB 的 FAT32 USB 驱动器。

1 按下 Windows + X 快捷键后选择「Windows Powershell(管理员)」

2 在 PowerShell 中执行如下命令即可开始格式化操作。

format /FS:FAT32 X:

注意:将 X 替换为你要格式化的 U 盘盘符。而且不能使用 /Q 参数来快速格式化,否则会提示「卷对 FAT32 来说太大。」而无法完成操作。

由于用 PowerShell 和命令提示符来格式化大于 32GB 的 U 盘时无法使用快速格式化,所以耗时会很长,还是建议大家使用第三方工具来完成操作。

如何在Windows中使用FAT32格式化大于32GB的U盘 • 系统极客