Skip to content

Instantly share code, notes, and snippets.

@imba-tjd
imba-tjd / .Windows Optimization.md
Last active May 19, 2026 08:32
记录我使用的软件和优化Windows的操作

系统设置

@imba-tjd
imba-tjd / BookMarks.md
Last active April 21, 2026 14:26
BookMarks
@imba-tjd
imba-tjd / .Cloud.md
Last active May 19, 2026 08:45
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

如果你想补充内容,建议优先给 free-for-dev 提PR,还能混个高星repo的contributor,没必要加到本列表里。
If you want to make improvements, I would recommend you contributing to free-for-dev rather than this list.

其他人的集合

@imba-tjd
imba-tjd / IMBALIST.TXT
Last active May 10, 2026 12:39
🚫 我的uBO屏蔽列表以及HE规则
[Adblock Plus 2.0]
! Title: IMBALIST
! Homepage: https://gist.github.com/imba-tjd/2c9817233ac6798d4f2bfe057f781ca5
! Expires: 10 days
! 使用方法:将 https://gist.githubusercontent.com/imba-tjd/2c9817233ac6798d4f2bfe057f781ca5/raw/IMBALIST.TXT 添加到uBO的规则列表中
! humblebundle领取key页面
www.humblebundle.com##.download-mosaic
www.humblebundle.com##.coupon.whitebox-redux
www.humblebundle.com##.js-subproduct-whitebox-holder > .whitebox-redux
@imba-tjd
imba-tjd / Entries.md
Last active October 23, 2022 11:33
那些被错误使用的词语

起因

用错词语其实是很普遍的事,但是有的人一直不愿意改成正确的,甚至还引以为傲?

一些我能接受的不改的理由:

  • 语言是会慢慢演变的,用的人多了就变成正确的用法了,比如“空穴来风”
  • 语言是用于交流的工具,双方能理解就足够了

我虽然也同意这几点,但是总是觉得不爽。

Win下不安装MSVC使用Cython

vcruntime140.dll:涉及memset, strchr, wcschr等函数会用到

无法使用vcruntime140_app,会报ImportError: DLL load failed

ucrtbase不保证API不变,但是它是单个dll,更简洁;商店应用只能用ucrt,也是最正常的方式

编译用python setup.py build_ext -i -DMS_WIN64,结果在build和同级目录(-i)中,可用-c指定编译器。之后再bdist_wheel能成功,但不能直接bdist_wheel,因为好像不能在此verb的参数中定义宏。在setuptools.Extension中能定义宏,Extension.extra_compile_args能指定编译器,但暂时不想学。

https://github.com/soimort/translate-shell
https://github.com/ssut/py-googletrans
https://github.com/hanmin0822/MisakaTranslator
https://github.com/PantsuDango/Dango-Translator
https://github.com/lmk123/crx-selection-translate
https://github.com/project-yuki/YUKI
https://github.com/UlionTse/translators/blob/master/translators/apis.py 有谷歌batchexecute的API
https://github.com/afc163/fanyi
https://github.com/Isayama-Kagura/TsubakiTranslator
https://github.com/CopyTranslator/CopyTranslator
@imba-tjd
imba-tjd / cmdw.cs
Last active December 3, 2022 06:11
我也忘记这代码是做什么的了
using System.Diagnostics;
class CMDW {
static void Main(string[] args) {
Process.Start(new ProcessStartInfo("cmd") {
Arguments = string.Join(" ", args),
UseShellExecute = false,
CreateNoWindow = true
}).WaitForExit();
}
}
  • vertical scroll bar的行为,选Use bar mode
  • preview features,不要开Use new dark theme
  • font,调[All Text Tool Windows]
  • nuget package manager,格式选PackageReference,不清楚现在是不是默认值
  • debugging,勾上Automatically close the console when debugging stops