Skip to content

Instantly share code, notes, and snippets.

View raffeyang's full-sized avatar
😀

Raffe Yang raffeyang

😀
View GitHub Profile
@raffeyang
raffeyang / damai-dev.sgmodule
Last active April 15, 2024 10:50 — forked from broven/MitM All Hostnames
surge module
#!name=damai-dev
#!system=mac
[URL Rewrite]
^http://waptest\.damai\.test http://127.0.0.1:6001 header
@raffeyang
raffeyang / git_ssh_proxy.md
Created August 19, 2023 14:14 — forked from chenshengzhi/git_ssh_proxy.md
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@raffeyang
raffeyang / README.md
Created July 20, 2023 04:59 — forked from maboloshi/README.md
[Mac下配置Aria2] #macOS #aria2

Mac下配置Aria2

安装和设置 Aria2

# 使用 Homebrew 安装 aria2
brew install aria2

# 创建配置文件aria2.conf和空对话文件aria2.session
mkdir ~/.aria2 && cd ~/.aria2
touch aria2.conf
@raffeyang
raffeyang / StageManagerOptions.md
Created February 26, 2023 04:15 — forked from GreyAsteroid/StageManagerOptions.md
Stage Manager Options

defaults write com.apple.WindowManager GloballyEnabled -bool [True/False] Adjusts whether Stage Manager is enabled or not.

defaults write com.apple.WindowManager AutoHide -bool [True/False] Adjusts auto hide behavior. This option controls the "Show Recent Apps" and "Hide Recent Apps" GUI option.

defaults write com.apple.WindowManager AutoHideOverlapThreshold -int [-2147483647...2147483647] Unsure what this option does. Should be noted that when AutoHide is set to False and this option is set to -17 or lower Stage Manager behaves as if AutoHide is set to True.

defaults write com.apple.WindowManager LeftStripMaximumRowCount -int [-2147483647...2147483647]

@raffeyang
raffeyang / GPG and git on macOS.md
Created November 21, 2022 09:44 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@raffeyang
raffeyang / Quick Search.sgmodule
Last active December 4, 2022 01:06
Quick Search
#!name=Quick Search
#!desc=Safari Search Add-ons by Raffe Yang
[URL Rewrite]
^https:\/\/duckduckgo.com\/\?q=bd\+([^&]+).+ https://www.baidu.com/s?wd=$1 302
^https:\/\/duckduckgo.com\/\?q=db\+([^&]+).+ https://m.douban.com/search/?query=$1 302
^https:\/\/duckduckgo.com\/\?q=gh\+([^&]+).+ https://github.com/search?q=$1 302
^https:\/\/duckduckgo.com\/\?q=tb\+([^&]+).+ https://s.taobao.com/search?q=$1 302
^https:\/\/duckduckgo.com\/\?q=gg\+([^&]+).+ https://www.google.com/search?q=$1 302
^https:\/\/duckduckgo.com\/\?q=zh\+([^&]+).+ https://www.zhihu.com/search?type=content&q=$1 302
@raffeyang
raffeyang / Zoho Mail SMTP.sgmodule
Last active July 10, 2023 04:33
Zoho Mail SMTP
#!name=Zoho Mail SMTP
#!desc=Zoho Mail SMTP for Apple Mail
[Rule]
DOMAIN,imappro.zoho.com,DIRECT
DOMAIN,smtppro.zoho.com,DIRECT
IN-PORT,993,DIRECT
DEST-PORT,465,DIRECT