DNS劫持 DNS污染

DNS劫持 DNS污染 http://www.williamlong.info/archives/3356.html 我们知道,某些网络运营商为了某些目的,对DNS进行了某些操作,导致网民使用正常的上网设置无法通过域名解析出正确的IP地

golang strconv

golang strconv https://github.com/polaris1119/The-Golang-Standard-Library-by-Example/blob/master/chapter02/02.3.md strconv — 字符串和基本数据类型之间转换 这里的基本数据类型包括: 布尔、整型 (包括有/无符号、二进制、八进制、十进制和十六进制) 和浮点型等。 2.3.1 strconv

Go unit test, 单体测试

Go unit test, 单体测试 执行某一个测试文档 1 2 3 4 5 go test foo_test.go go test -v foo_test.go # 执行某一个文件中的某一个或几个函数 go test path/to/foo_test.go -run "^TestFunc0$" Go 语言推荐测试文件和源代码文件放在一块

私有地址

私有地址 REC 1918留出了3块IP地址空间 (1个A类地址段,16个B类地址段,256个C类地址段) 作为私有的内部使用的地址。在这个范围内的IP

drill, dns tool, dig/drill, dnsutils to ldns dig -> dirll

drill, dns tool, dig/drill, dnsutils to ldns dig -> dirll drill if you can, dig if you have to, nslookup if you must https://imdjh.github.io/toolchain/2015/10/07/drill-if-you-can-dig-if-you-have-to.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 # install drill ## aws linux yum install ldns-utils ## archlinux sudo pacman -S ldns # ubuntu sudo apt install ldnsutils #

maven 依赖 继承

maven 依赖 继承 Project A 被 Project B 调用 比如 A 里有 mockito的jar包, B要引用A , 从而不需要在B里直接引用mockito的jar包,而且A 包里的自建代

cd pushd

cd pushd http://os.51cto.com/art/200910/158752.htm cd - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 # list current dir pwd /foo # cd to /bar cd /bar pwd /bar # 可以在 $OLDPWD 变量里查看旧目录 echo $OLDPWD # cd - return to previous dir /foo cd - pwd /foo # cd -,

golang io

golang io https://github.com/polaris1119/The-Golang-Standard-Library-by-Example/blob/master/chapter01/01.1.md

golang flag 获取命令行参数

golang flag 获取命令行参数 1 flag.String("port", ":8080", "http listen port") 像flag.Int、flag.Bool、flag.String这样的函数格式都是一样的,第一个参数表示参数名称

golang tcp socket

golang tcp socket Golang的主要 设计目标之一就是面向大规模后端服务程序,网络通信这块是服务端 程序必不可少也是至关重要的一部分。在日常应用中,我们也可

linux tc

linux tc http://blog.csdn.net/qinyushuang/article/details/46611709 TC 在Linux中,流量控制都是通过TC这个工具来完成的。通常,要对网卡进行流量控制的配置,需要进行如下的步骤: ◆ 为网卡配置一个队列; ◆

archlinux steam

archlinux steam sudo pacman -S steam sudo pacman -S ttf-liberation sudo pacman -S wqy-zenhei sudo pacman -S lib32-alsa-plugins sudo pacman -S lib32-curl sudo pacman -S lib32-libxtst sudo pacman -S lib32-gtk2 sudo pacman -S lib32-libpulse STEAM_RUNTIME=0 steam https://wiki.archlinux.org/index.php/steam#Installation https://wiki.archlinux.org/index.php/Steam#Using_native_runtime

领域模型 贫血模型 充血模型

领域模型 贫血模型 充血模型 http://blog.darkmi.com/2011/12/21/2069.html 领域模型 领域模型是对领域内的概念类或现实世界中对象的可视化表示。又称概念模型、领域对象模型、分析对象模型。它专注于

什么时候考虑使用静态

什么时候考虑使用静态 静态方法比较少用,因为他在一启动就实例化了,比较占资源,当然,配合单例模式还是比较好用的 比较多的用在数据连接上,我避免使

rsync

rsync install rsync 1 2 pacman -S rsync sudo apt install rsync 1 rsync -azP source dest options https://blog.csdn.net/m0_37886429/article/details/77285738 -a 同步所有, 包括修改时间、群组、权限、特殊文件、也包括递归。 -h, –human-readable 输出易读格式。 以人类可读的格式输出。 -r

nftables

nftables 这里有张图 https://wiki.nftables.org/wiki-nftables/index.php/Netfilter_hooks nftables 是一个新式的数据包过滤框架,旨在替代现用的 iptables、ip6tables、arptables 和 ebtables 的新的包过滤框架。nf

http proxy, whistle, w2, http 调试代理

http proxy, whistle, w2, http 调试代理 whistle HTTP, HTTPS, Websocket debugging proxy tool in linux, like Fiddler for windows install whistle 1 2 npm install -g whistle yarn global add whistle w2 command 1 2 3 4 w2 help w2 start w2 stop 把代理指向127.0.0.1:8899 浏览器访问