tips
本文总结了工作过程中可能遇到的各种问题的解决方法的链接。
typora破解版下载链接:https://blog.csdn.net/weixin_43580824/article/details/131371951
code的c++的代码规范格式
c++插件设置搜索format,C_Cpp: Clang_format_fallback Style中填入,详见clang-format-fallback-style目录的config.json
参考文档:
1 | { |
code中列出所有的插件列表:
code --list-extensions
- 以下的
VS Code
插件都不适合升到最高版本,可能会出现各种各样的问题,下面是推荐的版本:C++
:1.18.5
CMake Tools
:1.16.32
- 以下的
gcc不同版本的切换:https://www.jianshu.com/p/f66eed3a3a25
彻底卸载计算机中的python:https://blog.csdn.net/qq_38463737/article/details/107205696
pip相关
清除下载缓存:
pip cache purge
windows下的包管理器scoop
- 如何安装:
- https://blog.csdn.net/Apple_Coco/article/details/113281197
- https://blog.dejavu.moe/posts/windows-scoop
- 推荐使用第二个,使用管理员打开powershell,注意区分开用户本身和全局安装的路径
- 若最后一步提示管理员权限失败,参考:https://stackoverflow.com/questions/74763204/installing-scoop-fails-running-the-installer-as-administrator-is-disabled-by-d
- 关于
Hash Check Failed
问题:加-s
参数,详见https://github.com/lzwme/scoop-proxy-cn/blob/main/README.md#关于-hash-check-failed-的问题 - 换国内的
scoop
更新源scoop config SCOOP_REPO https://gitee.com/scoop-bucket/scoop.git
- 换国内
bucket
的scoop-cn
源- 参照两个
github
仓库链接配置即可,推荐使用第一个,数量更齐全 - https://github.com/lzwme/scoop-proxy-cn
- 仓库提供的镜像被墙了,可使用 gitee 镜像:https://gitee.com/mybasegy/scoopcn。个人建议使用原 github 仓库的 ssh 链接:git@github.com:lzwme/scoop-proxy-cn.git,请注意自己为 github 配个 ssh 密钥。
- https://github.com/duzyn/scoop-cn
- 为了保险,将这个
bucket
的名字设置为main
,防止update
的时候报no bucket main
的错误
- 参照两个
- 用
scoop
安装oh-my-posh
:https://sspai.com/post/69911 scoop
可以安装aria2
加快下载速度,但是不建议自定义其配置,用默认就行- 关闭警告可以开:
scoop config aria2-warning-enabled False
- 删除
config
使用scoop config rm <...>
- 关闭警告可以开:
- 清理命令(其他的请自行搜索)
- 清理软件的旧版本:
scoop cleanup *
- 清理下载缓存:
scoop cache rm *
- 更新scoop本身:
scoop update
- 更新某些app:
scoop update <appName>
- 禁用某些程序更新:
scoop hold <appName>
- 允许某些程序更新:
scoop unhold <appName>
- 清理软件的旧版本:
- 如何安装:
powshell增强,自动补全、主题美化、Git扩展:https://cloud.tencent.com/developer/article/2317806
- 相关powershell配置文件见
.\oh-my-posh-theme\Microsoft.PowerShell_profile.ps1
,将其拷贝到~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
- 在windows中添加alias命令别名:https://zhuanlan.zhihu.com/p/74881435
- 相关powershell配置文件见
bandizip安装
- 6.25绿色专业版,有右键菜单:https://www.52pojie.cn/thread-1477693-1-1.html
- 不推荐使用Scoop包管理器安装,因为是便携版,没有右键菜单
pip安装报错
Linux应用层编程可以开发的一些项目:https://blog.csdn.net/sinat_16643223/article/details/105761275
typora实现页内链接:https://blog.csdn.net/Manchester__united/article/details/113257595
Linux下配置github:https://blog.csdn.net/qq_33975041/article/details/104275499
Linux下安装python2(2.7.9)(可靠回答):https://ubuntuforums.org/showthread.php?t=2486174
清理wsl2占据空间的问题(虚拟空间,会吃磁盘):https://zhuanlan.zhihu.com/p/614993276
1
2
3
4diskpart
# 在新开的终端里面
select vdisk file="D:\Ubuntu\ext4.vhdx"
compact vdisk1
2
3
4diskpart
# 在新开的终端里面
select vdisk file="D:\Ubuntu20.04\ext4.vhdx"
compact vdiskcmake编译器选择指定的版本:https://www.cnblogs.com/lidabo/p/15400964.html
搭建自己的博客:
解决博客网络图片加载不出来:https://blog.csdn.net/mqdxiaoxiao/article/details/96770756
(在md文章正文前面添加:<meta name="referrer" content="no-referrer"/>
).gitignore不起作用:https://blog.csdn.net/Saintmm/article/details/120847019
hexo给主页设置分页:https://blog.csdn.net/qq_39181839/article/details/109477431
hexo访客数和访问次数统计:https://echowinde.github.io/2022/06/08/hexo-diary-1/
Git使用分支管理不同的项目:https://blog.csdn.net/Jone_hui/article/details/114068497
Git删除分支:https://www.freecodecamp.org/chinese/news/how-to-delete-a-git-branch-both-locally-and-remotely/
Git分支重命名:https://blog.csdn.net/qq_37148270/article/details/107106392
Linux下离线安装python:https://blog.csdn.net/m0_37711292/article/details/131593577
利用SCP协议将本地文件传输到云服务器:”scp 本地文件路径 Linux云服务器用户名@云服务器实例公网IP地址:Linux云服务器文件路径”
如果传文件夹可以打tar包,也可以加上-r参数,一定放在scp和本地文件路径之间腾讯云Centos升级gcc:https://blog.csdn.net/higer2008/article/details/123322867
json-server,伪造一些json数据挂到服务器上:
将静态网页挂载到服务器上:https://blog.csdn.net/weixin_51563198/article/details/119673234
wsl下载更新网络错误:https://zhuanlan.zhihu.com/p/661429025
wsl登录
getpwnam(username) failed 0
:https://github.com/microsoft/WSL/issues/9340wsl永久修改hostname:
wsl安装微软雅黑字体(解决窗体title乱码问题)
离线安装pip:
Zenity,在Shell下迈向图形化的GUI工具:https://blog.csdn.net/DarlingTeng/article/details/106266964
Linux配置git:https://blog.csdn.net/qq_26620783/article/details/97265409
Docker搭建httpbin服务:https://blog.csdn.net/DahlinSky/article/details/104369657
(配置好了在面板上就可以方便的管理)给自己的博客添加网易云音乐:https://music.163.com/#/outchain/0/8897180109/m/use/html
Hexo 每天自动提交网站url到搜索引擎、百度、必应、谷歌:https://blog.csdn.net/Lott0419/article/details/113564110
这个是部署之后也不立刻提交,而是在一个固定的时间点提交,点击star就可以提交一次url,非常好用Github博客配置CDN加速(不是域名):https://zhuanlan.zhihu.com/p/97389072,还有自己去看B站视频
使用Cloudflare进行CDN加速之后“网站重定向次数过多”:将SSL/TLS加密模式从 灵活 改为 完全
在自己的服务器上配置teamspeak服务器并且绑定域名:https://bambovc.com/index.php/archives/30/
使用MCSM非常方便的搭建我的世界服务器:https://mcsmanager.com/
给自己的mc服务器绑定域名:https://tutujanjan.com/如何给minecraft服务器绑定域名
在docker上部署个人云盘nextcloud:https://zhuanlan.zhihu.com/p/108301496/
github的ssh连接超时:https://blog.csdn.net/the__future/article/details/130038818
解决Qt(从5.15以后只能在线安装)在线安装过慢:https://zhuanlan.zhihu.com/p/645793252
vscode的CMake-tools插件kits的json文件位置:
~/.local/share/CMakeTools
ccache清除缓存文件夹:使用命令
ccache -s -v
查看缓存的位置,删除即可windows下安装npm和cnpm:https://blog.csdn.net/qq_40323256/article/details/100825982
npm配置环境变量:https://blog.csdn.net/InOneStep/article/details/110235287
在npm官方发布自己的包
npm换源
官方源
1
npm config set registry https://registry.npmjs.org
镜像源
1
npm config set registry https://registry.npmmirror.com
在windows的git-bash中使用tree命令:https://blog.csdn.net/qq_33154343/article/details/100064726
我的世界通过forge核心进行服务器搭建:https://www.mintimate.cn/2020/02/08/Minecraft-Mod服务器搭建)
安装配置zsh(linux下推荐,windows下建议使用posh)
zsh安装好用插件
修复zsh历史错误:https://blog.csdn.net/henryhu712/article/details/123836534
1
2
3
4cd ~
mv .zsh_history .zsh_history_bad
strings -eS .zsh_history_bad > .zsh_history
fc -R .zsh_historypython项目的requirements.txt:https://blog.csdn.net/pearl8899/article/details/113877334
python
一次性删除所有的第三方包:使用pip freeze > log
将第三方包的内容导入到log
文件中,然后通过pip uninstall -r log
即可删除,如果不想输入y
可以加上-y
参数
python执行报错SyntaxError:https://blog.csdn.net/flyfish1986/article/details/114702706
使用gulp压缩hexo博客文件(兼容ES6标准):https://blog.inkuang.com/2021/405
windows下cmd的命令大全(cmd不是powershell,可以在C程序中的system()函数调用):https://zhuanlan.zhihu.com/p/468515490(https://zhuanlan.zhihu.com/p/468515490)
- 创建目录:
md ...
- 删除目录:
rd ...
- 创建文件(没有直接的命令,利用重定向):
echo > ...
- 删除文件:
del ...
- 创建目录:
vscode通过ssh连接远程服务器:https://blog.csdn.net/qq_29856169/article/details/115489702
linux编译并且安装内核:https://blog.csdn.net/weixin_43567188/article/details/119407019
linux删除多余的内核版本:https://blog.csdn.net/jays_/article/details/90738580
linux下使用tar压缩或者解压:https://blog.csdn.net/stf1065716904/article/details/81909320
linux下使用zip压缩或者解压:https://blog.csdn.net/soback00/article/details/132853862
windows下使用tar压缩或者解压:https://blog.csdn.net/weixin_42672685/article/details/132900030
在linux下如何使用tar和zip命令压缩、解压、分割、合并文件(分割和合并的操作对于
tar
和zip
是一样的):https://blog.csdn.net/qq_41979513/article/details/98763608cmake的build和install命令,不使用make
- build:
cmake --build ./
- install:
cmake --build ./ --target install
- build:
oh-my-zsh更新换源
- 更新命令:
omz update
- 进入
oh-my-zsh
安装目录:cd ~/.oh-my-zsh
git config --edit
- 将
url
改为https://gitee.com/mirrors/oh-my-zsh.git
- 更新命令:
ubuntu重启后进入initramfs导致无法开机:https://blog.csdn.net/weixin_44002151/article/details/134212707
windows下powershell中类似find命令的替代:https://blog.csdn.net/yao_zhuang/article/details/115645435
windows下配置临时变量:https://blog.csdn.net/qq_23212697/article/details/69177654
虚拟机网卡掉了,没网:https://blog.csdn.net/qq_40344790/article/details/120645806
Office tool plus下载:https://otp.landian.vip/zh-cn/
Office 2021专业(增强版)安装教程:https://www.mrdadong.com/archives/office-2021
Office从C盘迁移到其他盘:https://www.bilibili.com/video/BV1LT411g7Ae/
按照上一条视频内容以后报错”操作系统当前的配置不能运行此应用程序“
- https://blog.csdn.net/m0_57941956/article/details/125575736
- 看到最后面,发现目录需要匹配,也就是需要创建在
Program Files/
目录下面,而不能直接放在D
盘根目录下
1
mklink /j "C:\Program Files\Microsoft Office" "D:\Program Files\Microsoft Office"
windows配置命令别名alias:https://segmentfault.com/a/1190000015928399
vmware workstation pro个人版安装:https://blogs.vmware.com/workstation/2024/05/vmware-workstation-pro-now-available-free-for-personal-use.html
Linux 下安装 docker 教程(不建议在 Wsl2 上安装,极可能会出问题):https://www.cnblogs.com/Liyuting/p/17022739.html
ubuntu 完全卸载 docker 及再次安装:https://blog.csdn.net/qq_45495857/article/details/113743109
docker 无法删除镜像 hello-world 等的解决办法:https://blog.csdn.net/yyj108317/article/details/105875836
Linux 系统配置 clash-gui 界面:https://chh3213.github.io/2023/11/12/linux%E7%B3%BB%E7%BB%9F%E9%85%8D%E7%BD%AEclash-gui%E7%95%8C%E9%9D%A2/
在低版本 Ubuntu 22.04|20.04|18.04 上安装 Node.js 20:https://cn.linux-console.net/?p=20486
Docker Hub Search:https://docker.fxxk.dedyn.io/
Docker 国内镜像源下架的解决办法(推荐 1Panel 镜像):https://mixuying.com/archives/1719753069678