摘要: 配置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 阅读(42) 评论(0) 推荐(0) 编辑
摘要: /* 不安全的单例 多线程访问时可能会创建多个对象 */ public sealed class Singleton { private Singleton instance; //将构造函数变为私有,使得外部不可调用 private Singleton() { } public static Si 阅读全文
posted @ 2021-07-09 17:03 windin 阅读(43) 评论(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 阅读(1474) 评论(0) 推荐(0) 编辑
摘要: 因为之前改过设置,今天打开VS运行程序调试时发现左边的断点列不见了,指向当前行的黄色的箭头也没了 终于找到了恢复方法: 如上图,勾选指示器边距,即可重新显示 参考:https://www.cnblogs.com/programsky/p/4739071.html 阅读全文
posted @ 2021-07-01 12:20 windin 阅读(390) 评论(0) 推荐(0) 编辑
摘要: ##YCM 托管库地址:https://github.com/ycm-core/YouCompleteMe 这里有英文描述的安装过程,分别对于:Win, Linux, BSD描述 以下是我的个人安装过程 ##环境配置 确认下列环境已经安装: 工具:Git 开发环境:MSVC(Visual Studi 阅读全文
posted @ 2021-06-30 15:04 windin 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: 在使用多个线程读写同一个变量时,可能会出现与预期不符的情况。 线程的执行顺序每次都可能不一样,因为顺序由操作系统调度顺序决定。 //多线程读写测试函数 private static void MultiThreadsRW() { int i; i = 0; Thread t1 = new Threa 阅读全文
posted @ 2021-06-28 14:14 windin 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 下载地址:https://portswigger.net/burp/releases/professional-community-2021-5-1 选择Burp Suite Professional Win64 下载 安装过程跳过 需要java运行环境 尝试安装jdk8,burp 2021不支持 阅读全文
posted @ 2021-05-15 14:31 windin 阅读(3548) 评论(1) 推荐(0) 编辑
摘要: \begin a+b=3 \end \(b-a=1\) \(a=1,b=2\) \[ a_1+a_2+...+a_n=S_n \] \begin f(n)=1+2+3+...+n \end \begin 1&0\\ 0&1\\ 2&3 \end \\是为了转义两个</i> \begin{bmatri 阅读全文
posted @ 2021-04-27 15:32 windin 阅读(50) 评论(0) 推荐(0) 编辑
摘要: vmware workstation新建虚拟机新虚拟机设置: 系统设置:Windows Server 2003 Enterprise 内存:1GB硬盘:40GB处理器:2个 2核心 (主机处理器:AMD R5800H 8核16线程)网络链接:桥接模式设置好后,启动虚拟机时主机蓝屏...解决方法:运行 阅读全文
posted @ 2021-04-26 22:29 windin 阅读(249) 评论(0) 推荐(0) 编辑
摘要: /* Consider the following algorithm to generate a sequence of numbers. Start with an integer n. If n is even, divide by 2. If n is odd, multiply by 3 阅读全文
posted @ 2021-02-02 21:39 windin 阅读(79) 评论(0) 推荐(0) 编辑