Skip to content

Instantly share code, notes, and snippets.

View lbp0200's full-sized avatar
🎯
专注

萝卜皮 lbp0200

🎯
专注
View GitHub Profile
@lbp0200
lbp0200 / 文章1
Last active February 1, 2021 02:14
博客
内容才是重要的
@lbp0200
lbp0200 / README.md
Created December 6, 2019 02:14 — forked from bwann/README.md
Tunnelling SSH over SSL/TLS

How to tunnel SSH over SSL/TLS

laptop ssh -> laptop stunnel -> evil network -> internet -> your server -> your server ssh

Server (your shell server/home box/work box/whatever)

Sets up a stunnel process listening externally on port 2443/tcp, forwards to localhost 22/tcp

  • Install stunnel, e.g. yum install stunnel
  • Install server config snippet to /etc/stunnel/stunnel.conf
@lbp0200
lbp0200 / config.client.json
Last active January 16, 2023 16:18
免费分享我搭建的v2ray
{
"log": {
"loglevel": "error"
},
"inbounds": [
{
"tag": "laVPSSocksIn",
"protocol": "socks",
"listen": "0.0.0.0",
"port": 1080,
@lbp0200
lbp0200 / route.json
Last active December 25, 2018 09:30
v2ray 4.9版本 智能自动路由配置 兲朝IP、网站直连
```json
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
@lbp0200
lbp0200 / cn_ip.json
Created December 25, 2018 03:36
兲朝IP段 2018年12月25日 星期二更新
{
"type": "field",
"ip": [
"1.0.1.0/24",
"1.0.2.0/23",
"1.0.8.0/21",
"1.0.32.0/19",
"1.1.0.0/24",
"1.1.2.0/23",
"1.1.4.0/22",
@lbp0200
lbp0200 / polipo.service
Created May 30, 2018 15:22
服务托管openrc下的polipo
#!/sbin/openrc-run
pidfile="/run/$RC_SVCNAME.pid"
command="/usr/bin/polipo"
config="/etc/polipo.conf"
depend() {
need net
}

除下面的网站外,都可以显示广告

@@*$document,domain=~baidu.com|~91.com|~hao123.com
@lbp0200
lbp0200 / download.py
Created April 20, 2018 07:20
鸭题库主管护师复习包
import os.path, requests, json
catalogList = [
{
"Name": "高频考点",
"items": [
{
"Icon": "1",
"CatalogId": "25",
"Taxis": "1",
@lbp0200
lbp0200 / client.py
Last active February 12, 2018 10:30
Python 3 TCP Server MultiProgress base on CPU Number and ThreadPool in per Progress
from socket import socket, AF_INET, SOCK_STREAM
from random import randint
for i in range(5):
s = socket(AF_INET, SOCK_STREAM)
s.connect(('localhost', 19000))
r = randint(0,100)
s.send(b'Hello' )
print(s.recv(8192))
@lbp0200
lbp0200 / init.sh
Last active July 13, 2017 10:47
vultr startup script
apt update
#开启bbr
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
#安装必要软件