Skip to content

Instantly share code, notes, and snippets.

@imba-tjd
imba-tjd / .Windows Optimization.md
Last active June 2, 2024 06:35
记录我使用的软件和优化Windows的操作
@imba-tjd
imba-tjd / BookMarks.md
Last active March 16, 2024 13:53
BookMarks
@imba-tjd
imba-tjd / .Cloud.md
Last active June 28, 2024 13:25
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@imba-tjd
imba-tjd / IMBALIST.TXT
Last active April 23, 2024 12:02
🚫 我的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能指定编译器,但暂时不想学。

@imba-tjd
imba-tjd / Routers.txt
Last active May 22, 2023 11:56
路由器
802.11a/b/g/n是WIFI4及之前的,n引入了MIMO和40M频宽;AC是WIFI5(802.11ac, 2013/2016),只支持5G;AX是WIFI6(802.11ax, 2018)
2.4G 40M频宽 单天线150M,5G单天线433M
AC1200是2x2 MIMO,2.4G 300M,5G 867M
AC1900是3x3,2.4G 600M,5G 1300M
AC2100是2.4G 2x2 300M,5G 4x4 1733M
AC2600是4x4
AX1800是2x2
Mesh(802.11k/v/r)自我修复,无缝漫游:能自动根据信号强弱切换路由器且不断网,多个路由之间真的平等,不区分WAN/LAN
WDS和有线要么线状要么星状,同名SSID切换时会断网且有低信号粘性,每加一级就速度减半
AC Wave2(2016)有MU-MIMO,支持同一时刻与多台终端交互,但要终端也都支持。AX改进了
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();
}
}