Giter Site home page Giter Site logo

xiaqijian.github.io's Introduction

Hi there, I'm leo! 👋

  • 😄 前端开发工程师

Languages and Tools:

⚡ Technologies

These are some of the technologies and tools that I work with:

JavaScript Nodejs HTML5 CSS3 Sass TypeScript Git GitHub VSCode

📚 Most Use

xiaqijian.github.io's People

Contributors

xiaqijian avatar

Watchers

 avatar  avatar

Forkers

yafrws

xiaqijian.github.io's Issues

v2ray一键

脚本

bash <(curl -L -s https://install.direct/go.sh)

此脚本会自动安装以下文件:

/usr/bin/v2ray/v2ray:V2Ray 程序;
/usr/bin/v2ray/v2ctl:V2Ray 工具;
/etc/v2ray/config.json:配置文件;
/usr/bin/v2ray/geoip.dat:IP 数据文件
/usr/bin/v2ray/geosite.dat:域名数据文件

此脚本会配置自动运行脚本。自动运行脚本会在系统重启之后,自动运行 V2Ray。目前自动运行脚本只支持带有 Systemd 的系统,以及 Debian / Ubuntu 全系列。

运行脚本位于系统的以下位置:

/etc/systemd/system/v2ray.service: Systemd
/etc/init.d/v2ray: SysV

脚本运行完成后,你需要:

编辑 /etc/v2ray/config.json 文件来配置你需要的代理方式;
运行 service v2ray start 来启动 V2Ray 进程;
之后可以使用 service v2ray start|stop|status|reload|restart|force-reload 控制 V2Ray 的运行。

前端开发中,多个项目使用的公共组件如何存放?

  1. git submodule 或 git subtree 。前者适合独立性很高或已经很稳定的组件。但若组件还不完善,常需要在主项目中同时开发,建议考虑 git subtree。

  2. 用 npm 或 bower 或类似的 package 管理工具,一般人不建议自己搭建类似方案。当然也许你需要建 private registry,不过我个人认为大多数情况下,你做的 package 不会涉及商业机密或企业核心利益,所以放在 public registry 也无妨。只要注意不要把密钥之类的东西放进去。

  3. 前两者也可结合使用。比如主项目用npm,并将node_modules checkin到git源码,node_modules下用symbol link连接到组件的目录,然后组件目录用git subtree来管理。

git subtree教程

https://segmentfault.com/a/1190000012002151

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.