Skip to content

Instantly share code, notes, and snippets.

View yueyuzhao's full-sized avatar
🎯
Focusing

yueyu yueyuzhao

🎯
Focusing
View GitHub Profile
@yueyuzhao
yueyuzhao / nginx
Created April 19, 2019 00:11
/etc/init.d/nginx
#! /bin/sh
# chkconfig: 2345 55 25
# Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and
# run 'update-rc.d -f nginx defaults', or use the appropriate command on your
# distro. For CentOS/Redhat run: 'chkconfig --add nginx'
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
@yueyuzhao
yueyuzhao / across.client.js
Created August 28, 2018 13:06
代理翻墙 (nodejs实现)
// 客户端实现
const net = require('net')
const tls = require('tls')
const localServer = new net.Server()
localServer.on('connection', (socket) => {
socket.pause()
const context = {