Skip to content

Instantly share code, notes, and snippets.

@vcheckzen
vcheckzen / unm.ps1
Last active May 13, 2024 13:46
UnblockNeteaseMusic
# Requires -RunAsAdministrator
$PROGRAM_NAME = 'UnblockNeteaseMusic'
# $AUTHOR_NAME = '1715173329'
$PROJECT_NAME = 'UnblockNeteaseMusic'
$REPO_NAME = 'server'
$BRANCH_NAME = 'enhanced'
$INSTALLATION_PATH = "$env:APPDATA\$PROGRAM_NAME"
$BIN_PATH = "$INSTALLATION_PATH\bin"
$TMP_PATH = "$INSTALLATION_PATH\tmp"
@vcheckzen
vcheckzen / stc.ps1
Last active October 2, 2019 16:55
Windows 10 1903 and Later Search To Center
$BASE_PATH = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Search'
$RADIUS_PATH = "$BASE_PATH\Flighting\Override"
function CustimizedNewItemProperty($Path, $Name, $Value) {
$null = New-ItemProperty -Path $Path -Name $Name -PropertyType DWord -Value $Value
}
function ToCenter($Radius) {
$null = ToDefault
$null = New-Item -ItemType String -Path $RADIUS_PATH
@vcheckzen
vcheckzen / steam.sh
Last active November 18, 2019 03:02
ArchiSteamFarm Installer
#!/usr/bin/env bash
# NETWORK
PROXY="$1"
# COLOR SCHEMA
COLOR_HINT=36m
COLOR_WARNING=31m
# DIRECTORY
@vcheckzen
vcheckzen / yarn-network-issues.sh
Created February 8, 2021 08:44
yarn configs on network issues
# https://classic.yarnpkg.com/en/docs/yarnrc/#toc-disable-self-update-check
yarn config set disable-self-update-check true
yarn config set registry https://registry.npm.taobao.org/
{
"inbounds": [
{
"port": 443,
"listen": "0.0.0.0",
"protocol": "vless",
"settings": {
"decryption": "none",
"clients": [
{
#!/usr/bin/env bash
jq() {
python3 -c "$(
cat <<EOF
import sys, json
json.dump($1$2, sys.stdout, separators=(',', ':'), ensure_ascii=False)
EOF
)"
@vcheckzen
vcheckzen / port-scan.md
Created February 19, 2022 09:38
Network Port Open State Detection

Network Port Open State Detection

netcat

# tcp
nc -vzt google.com 443

# udp
nc -vzu dns.google 53
@vcheckzen
vcheckzen / ncsi.reg
Last active August 14, 2023 17:25
Windows Network Connectivity Status Indicator for China
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet]
"ActiveDnsProbeContent"="114.114.114.114"
"ActiveDnsProbeContentV6"="2409:8088:2000:2002::98"
"ActiveDnsProbeHost"="public1.114dns.com"
"ActiveDnsProbeHostV6"="dns.ipv6dns.com"
"ActiveWebProbeContent"="ok"
"ActiveWebProbeContentV6"="ok"
"ActiveWebProbeHost"="data.bilibili.com"
@vcheckzen
vcheckzen / Instruction.md
Last active October 20, 2024 17:28
[Reproduce] Android 11+ Without Root Enable Adb WiFi On Boot Not Needing A Computer

简介

本教程是对 [1], [2], [3] 的复现,实现了 Android 11+ 开机解锁屏幕后自动开启 ADB WiFi 的 5555 端口,无需 ROOT 和电脑。如需无人值守,请将屏幕锁设置为 。本文不解释是什么,为什么,只介绍怎么做。

注意:本方法只适用于 WIFI 不会变化的场景,如果要在多个 WIFI 下使用,每个都要设置一次。

安装必要软件

  1. Termux
  2. Termux:Tasker
@vcheckzen
vcheckzen / restart-xray
Last active July 29, 2024 17:58
Run xray in tmp for mipsel_mips32
#!/bin/sh
BASEDIR="$(dirname "$0")"
(
cd "$BASEDIR" || exit 1
./kill-xray
sleep 3
./start-xray
)