Skip to content

Instantly share code, notes, and snippets.

View Ran-Xing's full-sized avatar
💭
I may be slow to respond.

星冉 Ran-Xing

💭
I may be slow to respond.
View GitHub Profile
@z1076
z1076 / post.go
Last active February 26, 2022 14:30
[Golang网络请求 / resty]
//普通POST请求
resp, err := http.Post(
"http://xxxx.com",
"application/x-www-form-urlencoded",
strings.NewReader(bodyStr))
if err != nil {
fmt.Println(err)
}
defer resp.Body.Close()
@shaneutt
shaneutt / go-ssh-reverse-tunnel.go
Created October 17, 2021 22:31 — forked from codref/go-ssh-reverse-tunnel.go
Go SSH reverse tunnel implementation (SSH -R)
/*
Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command:
ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123
which opens a tunnel between the two endpoints and permit to exchange information on this direction:
server:8080 -----> client:8080
@Ran-Xing
Ran-Xing / active_response_update.sh
Last active January 15, 2022 08:27
Active Response Update 升级主动响应脚本
#!/usr/bin/env sh
##### INIT #####
set -ex
active_response_path=$(
cd "$(dirname "$0")"
pwd
)
read line
@1277353463
1277353463 / README.md
Created March 20, 2022 02:58 — forked from oevery/README.md
auto.js 学习强国自动脚本

原项目

原修改者项目

我修改的地方:

  • 添加假装分享,全局变量可自行开关,默认开启。

  • 修改最后一条视频循环收藏分享两次为最后两条视频分别分享收藏。

@lucasmenares
lucasmenares / Disable Device Enrollment Program (DEP) notification on macOS Ventura (Apple Silicon Chips).md
Last active June 30, 2025 01:36
Disable Device Enrollment Program (DEP) notification on macOS Sonoma/Ventura (Apple Silicon Chips)

This worked for me on M1 Pro 2021 with MacOS Ventura, original method was for Big Sur but I changed it using a different type of domain block since the old method doesn't work anymore:

First of all, if you want to trigger the notification you can use this command: sudo profiles show -type enrollment

Now we will start. First block your Mac from reaching the domain iprofiles.apple.com. For this you can use your hosts file like:

echo "0.0.0.0 iprofiles.apple.com" | sudo tee -a /etc/hosts

or blocking them from your firewall.

@jetfir3
jetfir3 / download_fusion.sh
Last active February 3, 2026 17:49
Download VMware Fusion Pro Without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Fusion for macOS without a Broadcom account.
#
# This script allows you to download various versions of VMware Fusion
# from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3)
# or from the archive.org VMware Workstation archive (versions 8.x.x+).
#
# Options:
# -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org).