摘要: package main import ( "errors" "fmt" "github.com/atotto/clipboard" "github.com/lxn/walk" . "github.com/lxn/walk/declarative" "net" "net/http" "os" "os 阅读全文
posted @ 2020-09-12 21:32 lgf133 阅读(168) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/axgle/mahonia" "os" "os/exec" "syscall" ) func main() { err:=os.Chdir("D:\\Desktop") if err != nil { panic(err 阅读全文
posted @ 2020-09-12 19:10 lgf133 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 流传的go版本内网获取都不准确,所以想到之前看到的python版本,通过拟一个UDP连接来获取 package main import ( "errors" "fmt" "io" "net" "net/http" "strings" ) func main() { fmt.Println(GetEx 阅读全文
posted @ 2020-09-08 16:56 lgf133 阅读(2719) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "fmt" "math/rand" "sort")func main() { s := make([]int, 0, 128) for i := 0; i < 128; i++ { s = append(s, rand.Intn(1000)) } fmt.P 阅读全文
posted @ 2020-09-06 12:54 lgf133 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 现象: go run helloWorld.go 需要 10s 以上才能出结果,对于 c / c++ 也是这样,同时 CPU 在平时使用时也出现平白无故飙升的情况,我曾一度以为是 windows 的问题(现实也确实是这样) 原因: 我之前的那个 win 10 系统,自购买开始,两年内没有过重装(好像 阅读全文
posted @ 2020-08-06 19:57 lgf133 阅读(2017) 评论(0) 推荐(0) 编辑
摘要: 本文是我在解决开机引导问题时踩过的坑的一些过坑感想,参考链接放在文尾 情景:Linux和win10都已安装,efi文件都存在于引导分区中,因为各种原因失去了 Linux 的引导项,无法启动 Linux,只有 win 10 按照:https://www.jianshu.com/p/5007e555ec 阅读全文
posted @ 2020-08-06 01:52 lgf133 阅读(1734) 评论(0) 推荐(0) 编辑
摘要: 如果开机出现 Failed to start Remount Root and Kenal File System Timed out waiting for device *** Dependency failed for *** 这些问题是由于恢复快照后,已有的磁盘 uuid 标志已经改变,导致 阅读全文
posted @ 2020-08-05 23:34 lgf133 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: 外网 external IP curl -s cip.cc | grep IP | cut -d ':' -f 2 | sed 's/^[ ]*//g' curl -s cip.cc >> 访问web服务网址,-s 隐藏统计信息 grep IP >> 找到包含 IP 的那一行 cut -d ':' 阅读全文
posted @ 2020-08-01 15:54 lgf133 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 选项页,新建情景模式,输入pac网址,给出我github存的一份(https://lgf133214.github.io/backup/pac.txt 记得改端口),之后应用选项,就可以正常使用了(之后换为 https://raw.githubusercontent.com/petronny/gfw 阅读全文
posted @ 2020-07-30 23:39 lgf133 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: 上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下 预览图 安装 工具:u盘、manjaro kde minimal 20.0.3、 win32DiskImager 提取码: qt9f 进bios、选择u盘启动、改语言、改时区、挂载分区(文件系统ext4、在200M左右的一个FAT分区上挂载/ 阅读全文
posted @ 2020-07-30 16:27 lgf133 阅读(876) 评论(0) 推荐(0) 编辑