07 2021 档案

摘要:背景 刚才修改了Python目录名,重新添加了环境变量,命令行可以正常执行python。 打开Vim开始编辑文件,发现一输入或刚输入几个字符就闪退了。 解决 重新打开禁用了插件加载,运行正常,逐个开启检查发现Ultisnip开启时,导致这种情况,:PlugStatus (Vim-Plug管理器命令) 阅读全文
posted @ 2021-07-31 15:49 windin 阅读(4622) 评论(0) 推荐(0)
摘要:通过随意填写email,无意中伪造了一次github的提交记录 编辑.gitconfig文件: [user] #github: name = abc email = <target email address> 或执行命令:git config user.email <target email ad 阅读全文
posted @ 2021-07-20 14:34 windin 阅读(906) 评论(0) 推荐(0)
摘要:配置ssh: 生成对应github和码云账户的ssh密钥: ssh-keygen -t rsa -C '<mail>' 命名私钥为:id_rsa_gitee, id_rsa_github 命名公钥为:id_rsa_gitee.pub, id_rsa_github.pub 分别对应码云和github的 阅读全文
posted @ 2021-07-12 12:13 windin 阅读(85) 评论(0) 推荐(0)
摘要:/* 不安全的单例 多线程访问时可能会创建多个对象 */ public sealed class Singleton { private Singleton instance; //将构造函数变为私有,使得外部不可调用 private Singleton() { } public static Si 阅读全文
posted @ 2021-07-09 17:03 windin 阅读(58) 评论(0) 推荐(0)
摘要:通过分支切换: 确保当前库已经是最新状态 创建一个分支: git checkout --orphan latest_branch 添加所有文件: git add -A 提交更改: git commit -am "commit message" 删除分支: git branch -D main 将当前 阅读全文
posted @ 2021-07-06 10:25 windin 阅读(1721) 评论(0) 推荐(0)
摘要:因为之前改过设置,今天打开VS运行程序调试时发现左边的断点列不见了,指向当前行的黄色的箭头也没了 终于找到了恢复方法: 如上图,勾选指示器边距,即可重新显示 参考:https://www.cnblogs.com/programsky/p/4739071.html 阅读全文
posted @ 2021-07-01 12:20 windin 阅读(590) 评论(0) 推荐(0)