GithubHelp home page GithubHelp logo

scripts's Introduction

常用脚本

仅限在公司开发环境下常用的script。将其clone至用户主目录:

cd ~; git clone [email protected]:tridentdotio/scripts.git; chmod -R 777 scripts

.vimrc

简单的vim配置文件,执行以下命令使其生效:

ln -s ~/scripts/.vimrc ~/.vimrc

reload.sh

重启 nginx php-fpm mysql。

proxy.sh

用SSH账号登录远程VPS服务器建立端口转发隧道,搭配Chrome的Proxy SwitchySharp代理切换插件。

执行以下命令加hosts

sudo sh -c "echo '208.113.171.195 candler.dreamhost.com' >> /etc/hosts"

测试是否能能够用私钥成功登陆服务器:

需要代理的时候手动运行:

~/scripts/proxy.sh

如果没有提示错误信息,则已建立到服务器的SOCKS5代理端口:7171

然后需要给Chrome安装代理插件:Proxy SwitchySharp。在没有设置代理的情况下本身无法访问Chrome的扩展网站,所以先在浏览器本身的代理设置里设置好代理。 代理服务器是 127.0.0.1 端口是 7171 类型是 SOCKS5

代理后再到Chrome的扩展中心搜索SwitchySharp并安装。安装后在该插件中设置远程规则文件:

https://raw.githubusercontent.com/tridentdotio/scripts/master/switchyrules.txt

switchyrules.txt

配置SwitchySharp的代理切换规则。

scripts's People

Contributors

chnvcode avatar

Watchers

James Cloos avatar 林贵斌 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.