Skip to content

Instantly share code, notes, and snippets.

@imbajin
imbajin / StartHotspot.ps1
Last active May 28, 2026 11:10
Minimum auto-start-spot in Win11 (WIFI)
Start-Sleep -Seconds 25
$profile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()
if ($null -eq $profile) {
"$(Get-Date) no internet profile" | Out-File -Append "C:\Scripts\hotspot.log"
exit 1
}
$tethering = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($profile)
@imbajin
imbajin / test-llm.js
Created February 4, 2026 09:32
TEST-LLM Questions
// 测试题目 1 (答案期望 1)
问题:一个圆台形的木块,上、下底面的半径分别为 4 和 8,高为 3,用它加工成一个与圆台等高的四棱台,棱台下底面为一边长等于 9 的矩形,且使其体积最大。
现再从余下的四块木料中选择一块车削加工成一个球,则所得球的半径最大值是?(加工过程中不计损耗)
// 测试题目2 (答案期望是 1/80)
Let x_i be the positive real roots of the equation
\cos x \cosh x + 1 = 0.
Find the value of
\sum_{i=1}^{+\infty} x_i^{-6} \left( \frac{\sin x_i - \sinh x_i}{\cos x_i + \cosh x_i} \right)^2.
You must answer me in Chinese.
@imbajin
imbajin / pelican-bicycle.svg
Created August 12, 2025 06:06
duckduckgo - claude4.1 opus
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@imbajin
imbajin / k8s-load.sh
Created December 7, 2021 15:01
k8s-load graphscope error
2021-12-07 22:55:04,573 [ERROR][rpc:222]: Runstep failed with code: ANALYTICAL_ENGINE_INTERNAL_ERROR, message: Error occurred during preprocessing, The traceback is: Traceback (most recent call last):
File "/home/graphscope/.local/lib/python3.8/site-packages/gscoordinator/coordinator.py", line 349, in run_on_analytical_engine
response = self._analytical_engine_stub.RunStep(request)
File "/home/graphscope/.local/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/home/graphscope/.local/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INTERNAL
details = "ArrowError occurred on worker 0: ArrowError occurred on worker 0: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:425: readTableFromLocation -> Arrow error: Invalid
@imbajin
imbajin / Hbase_cell_too_big.md
Last active March 1, 2023 14:41
HG-Server-Error

Server运行一段时间后写入Hbase提示Cell过大的问题

Server运行一段时间后, 导入数据突然出现提示大量Hbase单Cell超过10Mb的异常, 导入任何数据源都可以触发, 不管是覆盖写入还是更新写入 并且数据源确认没有过长的数据, 而且重启Server之后, 这个错误就不报了... :(

怀疑是HG-Server运行时间长了之后什么隐蔽的问题导致, 但是不确定如何定位.

# 日志截取如下 ,其他都是重复日志 ,输出内容完全一样
2019-07-06 12:50:36 852477567 [hconnection-0x474f77f0-shared-pool14-t6147] [WARN ] org.apache.hadoop.hbase.client.AsyncRequestFutureImpl [] - id=4, table=hugegraph:graph_v, attempt=1/16, failed=8328ops, last exception=org.apache.hadoop.hbase.DoNotRetryIOException: org.apache.hadoop.hbase.DoNotRetryIOException: Cell with size 11438200 exceeds limit of 10485760 bytes