利用 NGINX 的 Stream 模塊 sni_preread 功能,可以做到讓 Trojan 和其他網站在同一台機器上共享 443 端口。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //+---------------------------------------------------------------------+ | |
| //| Blessing 3 v3.9.6.09 | | |
| //| February 09, 2014 | | |
| //| Copyright ?2007-2011, J Talon LLC/FiFtHeLeMeNt | | |
| //| In no event will authors be liable for any damages whatsoever. | | |
| //| Use at your own risk. | | |
| //| | | |
| //| This EA is dedicated to Mike McKeough, a member of the Blessing | | |
| //| Development Group, who passed away on Saturday, 31st July 2010. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Website you intended to retrieve for users. | |
| const upstream = 'api.openai.com' | |
| // Custom pathname for the upstream website. | |
| const upstream_path = '/' | |
| // Website you intended to retrieve for users using mobile devices. | |
| const upstream_mobile = upstream | |
| // Countries and regions where you wish to suspend your service. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [General] | |
| # ShadowRocket 现已支持 DoH / DoT | |
| # 您可以根据需求自行决定选用 DNS 服务器的种类和组合方式,例如:混用服务器来实现最佳解析速度;单独 DoH 使用来达到最佳安全性和最低污染度。 | |
| dns-server = https://doh.pub/dns-query, https://dns.alidns.com/dns-query | |
| bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.168.0.0/16, 192.88.99.0/24, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32, 0.0.0.0/31, ::ffff:0.0.0.0/31 | |
| skip-proxy = localhost, *.local, injections.adguard.org, local.adguard.org, captive.apple.com, guzzoni.apple.com, 0.0.0.0/8, 10.0.0.0/8, 17.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.168.0.0/16, 192.88.99.0/24, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32 | |
| bypass-system = true | |
| ipv6 = true | |
| update-url = https://git.io/JfV0x | |
| [Rule] |
Systems that has AmbientCapabilities support (usually kernel >= linux4.3)
[Unit]
Description=FRP Server Daemon
LLDB comes with a great set of commands for powerful debugging.
Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help for more information on a command. Type help to get help for a specific option in a command too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| final class CustomIntensityVisualEffectView: UIVisualEffectView { | |
| /// Create visual effect view with given effect and its intensity | |
| /// | |
| /// - Parameters: | |
| /// - effect: visual effect, eg UIBlurEffect(style: .dark) | |
| /// - intensity: custom intensity from 0.0 (no effect) to 1.0 (full effect) using linear scale | |
| init(effect: UIVisualEffect, intensity: CGFloat) { | |
| theEffect = effect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // GlowFilter.swift | |
| // based on ENHGlowFilter from http://stackoverflow.com/a/21586439/114409 | |
| // | |
| // Created by Matthew Hayes on 12/27/15. | |
| // | |
| import Foundation | |
| import UIKit | |
| import CoreImage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| workdir=$(pwd) | |
| filepath=$1 | |
| format=$2 | |
| outdir=$3 | |
| book_convert(){ | |
| filepath=$1 | |
| format=$2 | |
| tmp_dir="$HOME/Downloads/eCoreCmdtmp/$(uuidgen)" | |
| mkdir -p $tmp_dir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 微信读书下载 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description 下载微信读书的书籍资源 | |
| // @author tang | |
| // @match https://weread.qq.com/web/reader/* | |
| // @grant unsafeWindow | |
| // @grant GM_setValue | |
| // @grant GM_getValue |
NewerOlder