Skip to content

Instantly share code, notes, and snippets.

View fundon's full-sized avatar
🎯
Focusing

Fangdun Tsai fundon

🎯
Focusing
View GitHub Profile
@fundon
fundon / docs.md
Last active November 3, 2021 02:57
Docs 构建引擎
View docs.md

特点

  • 代码复制
  • 版本搜索
  • 多版本搜索
  • 实时搜索
  • 快速更新索引
  • 文档站点 TOC
  • 页面 TOC
  • MarkdownLint
@fundon
fundon / README.md
Created August 6, 2021 14:25 — forked from ctsrc/README.md
How to run FreeBSD 13.0-BETA1 for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc)
View README.md
@fundon
fundon / smol-hello.rs
Last active January 23, 2024 08:34
smol 16threads vs tokio 16threads
View smol-hello.rs
//! An HTTP server based on `hyper`.
//!
//! Run with:
//!
//! ```
//! cargo run --example hyper-server
//! ```
//!
//! Open in the browser any of these addresses:
//!
@fundon
fundon / hello.rs
Created April 29, 2020 07:17
smol spawn vs tokio spawn
View hello.rs
//! An HTTP server based on `hyper`.
//!
//! Run with:
//!
//! ```
//! cargo run --example hyper-server
//! ```
//!
//! Using https://github.com/mcollina/autocannon
//! ```
@fundon
fundon / oc.fish
Created March 4, 2020 09:59
Opencore Builder includes Drivers and Kexts
View oc.fish
#!/usr/bin/env fish
function build
set -l mode $argv[1]; set -q $mode ; and set mode Debug
xcodebuild -configuration $mode > /dev/null
end
function package
set -l mode $argv[1]
set -l repo $argv[2]
@fundon
fundon / .profile
Last active July 16, 2021 05:54
New macOS
View .profile
# ~/.profile
export HTTP_PROXY=http://127.0.0.1:9090
export HTTPS_PROXY=http://127.0.0.1:9090
export PATH="$HOME/.cargo/bin:$PATH"
View fix-build-ios-deploy.diff
diff --git a/ios-deploy.xcodeproj/project.pbxproj b/ios-deploy.xcodeproj/project.pbxproj
index c58f9d8..6c46afe 100644
--- a/ios-deploy.xcodeproj/project.pbxproj
+++ b/ios-deploy.xcodeproj/project.pbxproj
@@ -317,7 +317,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "echo \"\\\"# AUTO-GENERATED - DO NOT MODIFY\\n\\\"\" > src/ios-deploy/lldb.py.h\nawk '{ print \"\\\"\"$0\"\\\\n\\\"\"}' src/scripts/lldb.py >> src/ios-deploy/lldb.py.h";
+ shellScript = "awk '{ print \"\\\"\"$0\"\\\\n\\\"\"}' src/scripts/lldb.py > src/ios-deploy/lldb.py.h";
View gist:008e2a388473fb78f347c850344e1d9e
https://battle.net/download/getInstallerForGame?os=MAC&version=LIVE&gameProgram=WARCRAFT_3
https://battle.net/download/getInstallerForGame?os=mac&locale=enUS&version=PTR&gameProgram=WARCRAFT_3
@fundon
fundon / Documentation.md
Created July 5, 2017 08:13 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)
View Documentation.md

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@fundon
fundon / hackintosh.md
Last active January 10, 2018 15:44
hackintosh
View hackintosh.md

2017 台式机

https://www.tonymacx86.com

CPU : 英特尔 i7 7700k
主板: 华硕玩家国度(ROG)MAXIMUS IX HERO M9H主板
显卡: 华硕玩家国度 (ROG) STRIX-GTX1080-A8G-GAMING
硬盘: 英特尔 750 400G PCI-E NVMe SSD固态硬盘
机箱: 追风者(PHANTEKS)416PSTG 黑白色 中塔式机箱
电源: 美商海盗船(USCorsair)额定850W RM850i 电源 80PLUS金牌/C-Link/低载风扇停转