go env -w GOPROXY= go env -w GO111MODULE=on Read More
posted @ 2020-02-19 21:53 kekemuyu Views(371) Comments(0) Diggs(0) Edit
git clone 整个仓库后使用,以下命令就可以取得该 tag 对应的代码了。 git checkout tag_name 但是,这时候 git 可能会提示你当前处于一个“detached HEAD" 状态。 因为 tag 相当于是一个快照,是不能更改它的代码的。 如果要在 tag 代码的基础上做 Read More
posted @ 2020-01-21 12:39 kekemuyu Views(7535) Comments(0) Diggs(0) Edit
git log --pretty=oneline tagA...tagB If you just wanted commits reachable from tagB but not tagA: git log --pretty=oneline tagA..tagB or git log --pre Read More
posted @ 2020-01-21 12:21 kekemuyu Views(1483) Comments(0) Diggs(1) Edit
从根目录开始查找所有扩展名为.log的文本文件,并找出包含”ERROR”的行find / -type f -name “*.log” | xargs grep “ERROR" Read More
posted @ 2019-12-25 15:01 kekemuyu Views(136) Comments(0) Diggs(0) Edit
uboot烧录 将uboot写入到sd卡8k偏移处。 sudo dd if=u-boot-sunxi-with-spl_480800.bin of=/dev/sdb bs=1024 seek=8 Read More
posted @ 2019-12-24 22:40 kekemuyu Views(405) Comments(0) Diggs(0) Edit
fmt.Println("%v",x); Read More
posted @ 2019-12-13 08:01 kekemuyu Views(3116) Comments(0) Diggs(0) Edit
查询go支持cpu架构 Read More
posted @ 2019-12-07 15:26 kekemuyu Views(474) Comments(0) Diggs(0) Edit
使用dpkg-reconfigure locales,选择字符集。 Read More
posted @ 2019-11-01 23:37 kekemuyu Views(818) Comments(0) Diggs(0) Edit
iptable双网卡共享上网 iptable双网卡共享上网 iptables -t nat -F iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPT iptables -t nat -A POSTROUTING -o (外网网卡) -j MASQUE Read More
posted @ 2019-10-25 14:58 kekemuyu Views(426) Comments(0) Diggs(0) Edit
查看串口设备 dmesg | grep ttyS* Read More
posted @ 2019-10-21 16:52 kekemuyu Views(331) Comments(0) Diggs(0) Edit