Skip to content

Instantly share code, notes, and snippets.

@b0gdanw
b0gdanw / ESD to ISO on macOS.txt
Last active December 22, 2024 06:39
Converting ESD files to ISO images on macOS
ESD to ISO on macOS
https://gist.github.com/b0gdanw/e36ea84828dbd19e03eff6158f1fc77c
Converting ESD files to ISO images on macOS
- download Parallels Desktop 18 for Mac Image from https://www.parallels.com/products/desktop/download/
- at the moment https://download.parallels.com/desktop/v18/18.2.0-53488/ParallelsDesktop-18.2.0-53488.dmg
- open/mount the dmg
- copy prl_esd2iso and libwimlib.1.dylib from /Volumes/Parallels\ Desktop\ 18/Parallels\ Desktop.app/Contents/ to /usr/local/bin/ and /usr/local/lib/
sudo ditto /Volumes/Parallels\ Desktop\ 18/Parallels\ Desktop.app/Contents/MacOS/prl_esd2iso /usr/local/bin/prl_esd2iso
@imneonizer
imneonizer / how-to-download-from-pan-baidu.md
Last active April 21, 2025 04:04
How to download from pan.baidu without account
@mportesdev
mportesdev / python_source_import.rst
Last active March 26, 2025 02:43
Importing Python source code from a script without the .py extension

Importing Python source code from a script without the .py extension

Generally, to import a python module programatically when you know the file's path, you could do something like this:

import importlib.util
import sys
@kaushikcfd
kaushikcfd / MLIR-From-C.md
Last active February 14, 2025 02:55
Calling MLIR kernels from C

Step 1. Lower axpy.mlir to axpy.ll

mlir-opt -lower-affine -convert-loop-to-std -convert-std-to-llvm='emit-c-wrappers=1' axpy.mlir | mlir-translate --mlir-to-llvmir -o axpy.ll

Step 2. Get bitcode for the caller C.

clang -emit-llvm call_axpy.c -S -o call_axpy.bc
@maboloshi
maboloshi / README.md
Last active March 29, 2025 14:24
[Mac下配置Aria2] #macOS #aria2

Mac下配置Aria2

安装和设置 Aria2

# 使用 Homebrew 安装 aria2
brew install aria2

# 创建配置文件aria2.conf和空对话文件aria2.session
mkdir ~/.aria2 && cd ~/.aria2
touch aria2.conf
@BookGin
BookGin / 臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 .txt
Last active March 28, 2025 16:20
學術倫理 解答,臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 ,請大家留言補充更多解答 或是修正答案 感謝!
使用方法:Ctrl + F 直接輸入題目關鍵字搜尋即可
請大家留言補充更多解答 或是修正答案,感謝各位的貢獻!
臺灣學術倫理教育資源中心
https://ethics.moe.edu.tw/exam/
其他資源:
@woq
woq / mix2s.md
Last active October 1, 2021 07:12
Mix2S MIUI EU / Magisk / Tachi / Mipay

准备

  • 外网访问能力
    • MIUI EU首次设置一定会设置Google Service, 推荐用无线局域网代理功能搞定
  • MIUI EU适配机型的系统包
    • https://xiaomi.eu / 大概2GB左右(201906) 需要你有外网访问能力 注意校验hash或者MD5
  • TWRP 最新版本
    • http://twrp.me / 大概50M左右(201906) 需要你有外网访问能力 注意校验hash或者MD5
  • Magisk 18.1
  • 如果你要用Tachi 目前推荐使用18.1 Stable 版本 ,曾在其他机型上测试了最新的稳定版19.x 无法使用.

解锁

@RisingInIris2017
RisingInIris2017 / Proxifier_SSR-V2rayN.md
Last active April 4, 2024 14:39
Proxifier+SSR/V2rayN代理软件教程

写在前面

现在很多人都有魔法上网手段,常用的魔法上网工具有 SSR 和 V2rayN 两种。

这两种工具已经相当强大,能够使我们坐地日行八万里,访问我们喜爱的网站。

但是这两种工具也有美中不足之处:似乎它们只支持浏览器访问网页时走代理,

而对于除了浏览器以外的应用程序,就并没有通过代理,导致一些被墙的软件不能很好地使用。

@philippeoz
philippeoz / ngrok.sh
Last active March 24, 2025 17:48
SSH with Ngrok
#########################
# ON SERVER #
#########################
# install openssh-server
sudo apt install openssh-server
# start openssh-server
sudo service ssh start
@wkliwk
wkliwk / btt.sh
Last active March 24, 2025 22:10
BTT reset trial time
# BetterTouchTool reset trial time
# ** All preference will reset
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist"
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
echo "Done"
echo "remove ~/Library/Application\ Support/BetterTouchTool/"
rm -rf ~/Library/Application\ Support/BetterTouchTool/
echo "Done"