Skip to content

Instantly share code, notes, and snippets.

View moeshin's full-sized avatar
💤
zZz...遇到困难摆大烂

MoeShin moeshin

💤
zZz...遇到困难摆大烂
View GitHub Profile
@johnvilsack
johnvilsack / get-vmwarefusion.sh
Last active October 9, 2026 20:59
Direct Download VMWare Fusion - Download, Install, and Update VMWare Fusion Automatically.
Direct Download VMWare Fusion - Download, Install, and Update VMWare Fusion Automatically.
#!/usr/bin/env bash
# VMware Fusion Latest Version Downloader, Installer, and Updater
# This script automatically finds, downloads, and optionally installs the highest version available
#
# Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f
#
# Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>]
@jetfir3
jetfir3 / download_fusion.sh
Last active October 11, 2026 17:38
Download VMware Fusion Pro Without a Broadcom Account
#!/bin/bash
# Download VMware Fusion DMGs from a third-party Internet Archive collection.
# Compatible with macOS's Bash 3.2. No Homebrew, jq, or Python required.
set -euo pipefail
export LC_ALL=C
ARCHIVE_ITEM="vmwareworkstationarchive"
DOWNLOAD_DIR="${HOME}/Downloads"
VERSION=""
MODE=""
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "sing-box config schema",
"type": "object",
"properties": {
"log": {
"$ref": "#/$defs/log.schema.json"
},
"dns": {
"$ref": "#/$defs/dns.schema.json"
@chowder
chowder / README.md
Last active September 26, 2026 16:56
Exporting Microsoft Authenticator TOTP secrets

Background

Workplaces may enforce TOTP 2FA to be enabled Office 365 accounts, which require the Microsoft Authenticator app to be installed.

Regular TOTP applications (such as Aegis, Authy, or LastPass) cannot be used as Microsoft uses a proprietary scheme called phonefactor. Furthermore, the application requires Google Services Framework (GSF) to be installed (likely to provide device notifications), and will refuse to work when it is not present on the device.

Forunately, after the registration is complete, the underlying mechanism the app uses to generate TOTP codes is regular otpauth, and its secrets can be exported with a little bit of effort.

Extracting the keys

@delthas
delthas / sni.go
Last active May 8, 2026 02:18
Disable SNI in Go HTTPS requests
url := "https://perdu.com"
hostname := "perdu.com"
sni := false
var serverName string
if sni {
serverName = hostname
} else {
// disable sending the ServerName by using an IP
@kuasha420
kuasha420 / steam-apfs-case-sensitive.md
Last active April 8, 2025 14:58
Update `brew` command

Steam Client on APFS Case Sensitive Mac OS Drive

If you are using APFS Case Sensitive File system and trying to use Steam, it will flicker & silently fail or show the following error message:

steam requires that '~/library/application support/steam/steam.appbundle/steam/contents/macos' be on a case-insensitive filesystem.

To fix the issue, follow the instruction here.

Run from your user account, NOT ROOT!

@vhxubo
vhxubo / FastGit.user.js
Last active February 2, 2024 16:09
GitHub Clone or download、releases 下载加速
// ==UserScript==
// @name FastGit
// @version 0.8
// @description GitHub Clone or download、Releases 下载加速
// @author Vhxubo
// @license MIT
// @icon https://github.githubassets.com/favicon.ico
// @homepage https://gist.github.com/vhxubo/d67fbd5bb3b7308b2e3690ca58e12c12
// @namespace https://gist.github.com/vhxubo/d67fbd5bb3b7308b2e3690ca58e12c12
// @match https://github.com/*/*
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active October 10, 2026 02:14
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@eagletmt
eagletmt / main.go
Last active August 1, 2026 10:36
List installable Android SDK packages (similar to sdkmanager --verbose --list)
package main
import (
"encoding/xml"
"fmt"
"io/ioutil"
"log"
"net/http"
)
@msubel
msubel / uuid_v4_excel_formula.txt
Last active September 28, 2026 11:31
An Excel Formula to generate a UUID v4
=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0;POWER(16;8)-1);8);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;4)-1);4);"-";"4";DEC2HEX(RANDBETWEEN(0;POWER(16;3)-1);3);"-";DEC2HEX(RANDBETWEEN(8;11));DEC2HEX(RANDBETWEEN(0;POWER(16;3)-1);3);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;8)-1);8);DEC2HEX(RANDBETWEEN(0;POWER(16;4)-1);4)))