Skip to content

Instantly share code, notes, and snippets.

@imneonizer
imneonizer / how-to-download-from-pan-baidu.md
Created October 28, 2021 08:59
How to download from pan.baidu without account

How to download from pan.baidu.com

Disclaimer:

  • This methods uses a 3rd party website: https://baidu.kinh.cc/.
  • I don't know chinese and after one day of searching for a method I finally found this. I don't know how safe this website is but it does the job.
  • Do it on your own responsibility. I have no idea about possible copyright (if there is such a thing in China) and other stuff regarding to this.

Steps

1. Open the website mentioned above and fill out fields as following:

@mportesdev
mportesdev / python_source_import.rst
Last active December 11, 2023 03:29
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
@maboloshi
maboloshi / README.md
Last active May 1, 2024 03:10
[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 May 7, 2024 08:23
學術倫理 解答,臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 ,請大家留言補充更多解答 或是修正答案 感謝!
使用方法: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 两种。

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

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

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

@wkliwk
wkliwk / btt.sh
Last active May 8, 2024 07:54
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"
@BeMg
BeMg / spike.md
Last active January 14, 2024 16:34
spike tutorial

Spike tutorial

前言

spike 是 risc-v 的模擬器,讓 risc-v 的指令可以跑在任意的機器上,而不需要處理器有支援。本文主要在於紀錄如何在spike原有的基礎上,加上新的指令,以及如何測試新的指令。

大致上的 spike 流程為

c source code -> riscv-gcc -> riscv object code -> spike -> pk -> run on cpu

@simonhf
simonhf / cache-line-example.c
Last active February 1, 2024 23:30
Experiment with __builtin_prefetch()
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/time.h>
#include <locale.h>
#define NUMBYTES (1024*1024*1024)
char bytes[NUMBYTES];
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 8, 2024 14:34
crack activate Office on mac with license file