代码改变世界

go mod

2021-06-29 17:35 by divl, 57 阅读, 0 推荐, 收藏, 编辑
摘要:https://zhuanlan.zhihu.com/p/60703832 阅读全文

golang+read_file+call_shell+goroutine

2021-06-29 14:33 by divl, 30 阅读, 0 推荐, 收藏, 编辑
摘要:package main import ( "bufio" "bytes" "fmt" "os" "os/exec" "sync" ) //call shell func call_shell(script_name string, script_args string) (string, stri 阅读全文

vim for galang

2021-03-16 17:30 by divl, 57 阅读, 0 推荐, 收藏, 编辑
摘要:1. Install git yum install git 2. Install Vundle.vim 2.1 mkdir ~/.vim/bundle 2.2 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vund 阅读全文

Linux install go

2021-03-16 15:29 by divl, 60 阅读, 0 推荐, 收藏, 编辑
摘要:1. wget https://dl.google.com/go/go1.16.2.linux-amd64.tar.gz 2. tar -C /usr/local -xzf go1.16.2.linux-amd64.tar.gz 3. vim /etc/profile export PATH=$PA 阅读全文

为Git branch 打Tag

2020-09-03 17:19 by divl, 256 阅读, 0 推荐, 收藏, 编辑
摘要:A tag is a pointer to a commit, and commits exist independently of branches. Branches come into play only indirectly: At the time of creating a tag, b 阅读全文

JAVA_OPTS

2020-08-20 16:47 by divl, 1063 阅读, 0 推荐, 收藏, 编辑
摘要:/redcreen/archive/2011/05/04/2037057.html 不管是YGC还是Full GC,GC过程中都会对导致程序运行中中断,正确的选择不同的GC策略,调整JVM、GC的参数,可以极大的减少由于GC工作,而导致的程序运行中断方面 阅读全文

普通用户提权

2019-12-11 11:29 by divl, 922 阅读, 0 推荐, 收藏, 编辑
摘要:引用:/nf01/articles/10418141.html Capabilities的主要思想在于分割root用户的特权,即将root的特权分割成不同的能力,每种能力代表一定的特权操作。例如:能力CAP_SYS_MODULEa56爆大奖在线娱乐用户能够加载(或卸载) 阅读全文

workspaces only allow trusted client with self-signed cert

2019-11-26 17:47 by divl, 207 阅读, 1 推荐, 收藏, 编辑
摘要:1. 生成CA openssl genrsa -out CA_neonone.com.key 2048 openssl req -x509 -new -nodes -key CA_neonone.com.key -sha256 -days 1024 -out CA_neonone.com.pem 2 阅读全文

win7 安装openvpn 客户端

2019-11-11 23:10 by divl, 3 阅读, 0 推荐, 收藏, 编辑
摘要:1. 因为openvpn的驱动未签名,故需要先关闭系统的限制。 1.1 安装patch Windows6.1-KB3033929-x64.msu (如果已安装则跳过); 1.2 关闭系统检查。以管理员权限运行cmd; bcdedit.exe -set loadoptions DDISABLE_INT 阅读全文

jstack

2019-10-31 17:03 by divl, 235 阅读, 0 推荐, 收藏, 编辑
摘要:1. top 命令找出异常进程ID。 2. 根据进程ID找出异常线程ID; top -Hp ID 3. jstack 导出thread 将thread ID 换成16进制,在jstack 寻找。 阅读全文