Skip to content

Instantly share code, notes, and snippets.

View Kikyo-chan's full-sized avatar
🏠
Working from home

kikyo Kikyo-chan

🏠
Working from home
  • Yamanashi
View GitHub Profile
@jkordani
jkordani / fixme.bash
Last active August 26, 2024 07:53
Script to fix MD5Sum errors and something about dep11 icons
#!/bin/bash
## first parameter is optionnal mirror list file
if [[ $1 != "" ]]
then
mirrorlist=$1
else
mirrorlist="/etc/apt/mirror.list"
fi
@liberal-boy
liberal-boy / Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装.md
Last active October 18, 2024 15:18
Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装

TCP + TLS + Web

背景

  • 目前 Vmess + WebSocket + TLS (以下简称 wss)方式,因其特征如同 HTTPS 流量,可以隐藏 V2Ray 路径,主动侦测会得到正常 HTTP 网站响应,具有良好的伪装能力,目前被广泛用于反审查。

  • 但是如此强大的伪装能力,需要付出严重的性能代价:TLS 1.3 握手需要消耗 1-rtt,WS 握手也需要消耗 1-rtt,增大了握手延迟。V2Ray 增加了 mux 以减少握手的发生,然而实际使用中 mux 体验并不好,很多用户选择关闭。

  • 最近兴起了一个新的反审查工具——Trojan,这个工具将一个类似 Socks 的协议直接通过 TLS 传输,并将认证失败的流量交由 Web 服务器处理。降低 WS 延迟的同时,提供与 wss 方式一样的伪装能力。但是该工具较为年轻,没有路由功能,各平台图形化客户端也不完善。

@PlagueHO
PlagueHO / Restore-GitTagForDsc.ps1
Created January 6, 2020 08:01
Restores the Git Tags for DSC Community Resource modules that were backed up when running Convert-GetTagForDsc
<#
.SYNOPSIS
Restore a set of backed up Git tags from the backup file
created by Convert-GitTagForDsc.ps1 in the $ENV:Temp folder.
.PARAMETER BackupFile
The full path to the backup file created by Convert-GitTagForDsc.ps1.
.PARAMETER Remote
The name of the Git remote repository for your fork.
#!/bin/bash
# Fixes a downloaded apt mirror
# See: https://github.com/apt-mirror/apt-mirror/issues/113#issuecomment-464932493
## first parameter is optional mirror list file
if [ "$1" != "" ]
then
mirrorlist=$1
else
@nohwnd
nohwnd / Uninstall-Pester.ps1
Last active January 26, 2025 12:21
Remove built-in version of Pester 3 (or -All) from Windows 10 Program Files and Program Files (x86).
#Requires -RunAsAdministrator
function Uninstall-Pester ([switch]$All) {
if ([IntPtr]::Size * 8 -ne 64) { throw "Run this script from 64bit PowerShell." }
#Requires -RunAsAdministrator
$pesterPaths = foreach ($programFiles in ($env:ProgramFiles, ${env:ProgramFiles(x86)})) {
$path = "$programFiles\WindowsPowerShell\Modules\Pester"
if ($null -ne $programFiles -and (Test-Path $path)) {
if ($All) {