Skip to content

Instantly share code, notes, and snippets.

第一步sudo -i
第二步.ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
第二步.(1).centos 系统安装 Curl 方法: yum update -y && yum install curl -y (2).yum install wget 下载wget工具
第三步.wget -N --no-check-certificate https://raw.githubusercontent.com/ComeBey/more-user-ssr/master/hasan.sh && chmod +x hasan.sh && bash hasan.sh
第四步:bash hasan.sh
@mischief1
mischief1 / Debian9 bbr
Created June 3, 2019 06:29 — forked from ComeBey/Debian9 bbr
Debian9 bbr
debian9 复制这条代码安装bbr加速如下:
方法一wget -N --no-check-certificate https://bit.ly/2VWUksq && chmod + hasan.sh && bash hasan.sh
备用代码:wget -N --no-check-certificate https://raw.githubusercontent.com/ComeBey/bbr/master/hasan.sh && chmod + hasan.sh && bash hasan.sh
@mischief1
mischief1 / a-v2ray-wss-cdn-without-proxy.md
Created June 2, 2020 10:23 — forked from phlinhng/a-v2ray-wss-cdn-without-proxy.md
v2ray wss不开cloudflare proxy套用cdn (让同一个域名既能直连也能通过cdn中转)

动机

在v2ray+ws+tls+web的情况下,不管cloudflare dns有没有开启云朵(proxy),都可以透过address填cf节点ip,ws头部host填域名的方式连接上v2Ray服务器。写这篇的目的是想测试在没有web的情况下使用同一招,让同一个域名既能直连也能通过cdn中转。

有web时的连接方法

地址: cloudflare.com (或1.1.1.1或任何cloudflare节点IP)
端口: web服务器的端口 (通常为443)
tls: 开
不安全连接: 不允许
混淆: websocket
@mischief1
mischief1 / trojan-go-quickstart.sh
Created June 2, 2020 10:23 — forked from phlinhng/trojan-go-quickstart.sh
trojan-go-quickstart.sh
#!/bin/sh
echo "Getting the latest version of trojan-go"
latest_version="$(curl -s "https://api.github.com/repos/p4gefau1t/trojan-go/releases" | jq '.[0].tag_name' --raw-output)"
echo "${latest_version}"
trojango_link="https://github.com/p4gefau1t/trojan-go/releases/download/${latest_version}/trojan-go-linux-amd64.zip"
mkdir -p "/usr/bin/trojan-go"
mkdir -p "/etc/trojan-go"
@mischief1
mischief1 / brook crontab
Created July 2, 2020 23:08 — forked from ComeBey/brook crontab
CentOS7 brook crontab定时重启
一>校准时间同步本地时间
1.date -s "2019-09-21 19:00:38"
2.cp空格 /usr/share/zoneinfo/Asia/Shanghai 空格/etc/localtime
3.(一) yum -y install ntp ntpdate 安装ntpdate工具
(二) ntpdate cn.pool.ntp.org 设置系统时间与网络时间同步
(三) hwclock --systohc 将系统时间写入硬件时间
const musicNotify = () => {
const m = '/storage/emulated/0/Download/WeiXin/平凡之路.mp3'
media.playMusic(m);
sleep(media.getMusicDuration());
}
const to_mall_cart = () => {
shopping_cart_btn=id('img_shopping_cart').findOne()