Skip to content

Instantly share code, notes, and snippets.

@nufeng1999
nufeng1999 / gjxt.md
Created November 16, 2021 14:11
[构建系统]

make

Cmake

Ninja

Conan

Gradle

@nufeng1999
nufeng1999 / fluttertesterr.md
Created January 13, 2022 04:26
[Flutter Test error]The value of a rendering debug variable was changed by the test

debugPaintSizeEnabled = true;
raise --- The value of a rendering debug variable was changed by the test

@nufeng1999
nufeng1999 / wprintferr.md
Last active January 27, 2022 14:30
[GCC 独立于环境msys2 和cygwin的 wprintf 显示不正常,clang 无这种情况] #wprintf

独立于环境msys2 和cygwin的 wprintf 显示不正常
mingw64 mingw-w64-x86_64-gcc 11.2.0-4
/bin/x86_64-w64-mingw32-gcc-11.exe
/bin/x86_64-w64-mingw32-gcc.exe
x86_64-w64-mingw32-clang


基于目标 msys2 和cygwin 环境下的gcc 是正常显示的
msys gcc 11.2.0-2
clang

@nufeng1999
nufeng1999 / mvwsl.md
Last active April 1, 2024 00:35
[让 WSL 不再占用C盘空间的搬移大法]

让 WSL 不再占用C盘空间的搬移大法

1,查找wsl安装在C盘的位置

C:\Users\%USERNAME%\AppData\Local\Packages

找到下面类似的文件夹

CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc

@nufeng1999
nufeng1999 / check_wsl_env.md
Last active August 26, 2023 00:05
[检查WSL环境]检查WSL环境 #.wslconfig #wsl.conf

检查WSL环境
1.正确配置.wslconfig
2.正确配置wsl.conf
3.检查 cygwin.com 是否能ping通,是否有掉包或延迟
4.配置 /etc/apt/sources.list 使用 aliyun 的源
5.删除服务 /usr/lib/systemd/system/gdm*
6.删除 /etc/init.d/gdm3

@nufeng1999
nufeng1999 / netstat.md
Last active September 28, 2023 06:25
[Windows 下查看进程占用端口的情况] Powershell 下列出进程占用端口的情况
netstat -ano | Select-String -Pattern LISTENING | ForEach-Object { $p_id = $_.ToString().Split()[-1];$p_port=$_.ToString().Split(' ')[6];Get-Process -Id $p_id | Select-Object @{Name='PID';Expression={$p_id}},  @{Name='ProcessName';Expression={$_.ProcessName}}, @{Name='LocalPort';Expression={$p_port}} }