Skip to content

Instantly share code, notes, and snippets.

@wrmack
wrmack / Win11.md
Last active December 28, 2024 21:18
Windows 11 on MacBook M1

Windows 11 on MacBook M1 (ARM)

Steps I went through to install a Windows Insider Preview VHDX on a Macbook Pro using UTM. I needed Windows because I was developing an app to submit to the Microsoft Store. With the following setup I was able to develop an electron-based app and submit it to the Microsoft Store.

  1. Download the VHDX from Windows Insider Previews. You need to register for the Insider Program and sign in.
    • under Select edition select the Canary channel and press Confirm
    • select language and confirm
    • press Download
  2. Open UTM and press + to create a new virtual machine
    • Virtualize
  • Windows
@Skrilltrax
Skrilltrax / usb3-fastboot-fix.bat
Created May 27, 2020 18:02
Fix the USB 3 issues in fastboot
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
pause
@moelody
moelody / feedbro-locale-zh_CN.json
Last active February 8, 2025 10:57
feedbro中文翻译
{
"meta": {
"manifest_version": 3,
"locale_version": "1.3",
"locale_name": "简体中文",
"locale_type": "zh_CN",
"locale_last_updated": "2020-08-07 18:00:00 UTC",
"locale_author_name": "moelody",
"locale_author_email": "[email protected]",
"locale_source_url": "https://gist.github.com/moelody/3159316ce726fc629fae15278bbce429"
@imhet
imhet / Mac OS 上关闭 SIP.md
Created November 4, 2019 15:59
Mac OS 上关闭 SIP

SIP 是 System Integrity Protection 的简写,译为系统完整性保护。 SIP 是 OS X El Capitan 时开始采用的一项安全技术,目的是为了限制 root 账户对系统的完全控制权,也叫 Rootless 保护机制。

Mac 系统中 SIP 状态默认是开启的。近期更新了系统版本导致该状态重新被打开,在终端运行一些命令时提示 "Operation not permitted" 。

查看 SIP 状态

终端输入 csrutil status 即可看到 SIP 的状态是 disable 还是 enable 。

关闭或开启 SIP

@shhider
shhider / open-chrome-tab-in-safari.md
Last active August 12, 2024 11:32
[Open Chrome Tab In Safari]

01. 实现脚本

通过 AppleScript 脚本实现,脚本代码如下:

tell application "Google Chrome"
    set current_tab to active tab in the front window
    set the_url to the URL of current_tab
 tell application "Safari" to open location the_url
@juniorcesarabreu
juniorcesarabreu / How to Install Older version of Chrome Extensions.md
Last active December 6, 2024 09:17
How to Install Older version of Chrome Extensions
@stu43005
stu43005 / donate_crack.md
Created March 24, 2017 05:21
[Cracked] Checker Plus for Gmail

破解 Checker Plus for Gmail 的 donate 功能限制

步驟

  1. 找到該 Extension 的 ID (通常從 Chrome WebStore 安裝的皆為oeopbcgkkoapgobdbedcemjljbihmemj)
  2. 訪問以下網址 chrome-extension://[ExtensionID]/donate.html?action=coinbaseSuccess
  • 帶入預設ID則為 chrome-extension://oeopbcgkkoapgobdbedcemjljbihmemj/donate.html?action=coinbaseSuccess
  1. 破解完成~