什么时候考虑使用静态

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

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 浏览器访问

HTTP Transfer-Encoding

‘HTTP Transfer-Encoding’ 本文作为我的博客「HTTP 相关」专题新的一篇,主要讨论 HTTP 协议中的 Transfer-Encoding。这个专题我会根据自己的理解,以尽量通

Invalid HTTP server response [411] – Length Required

‘Invalid HTTP server response [411] – Length Required’ http://www.coderanch.com/t/625696/Web-Services/java/Invalid-HTTP-server-response-Length As William asked, please share how you are setting content length in SOAP header. I searched online for error and found that there can be one more reason for this failure. Reason - The remote WSEndpoint did not like the HTTP Chunking feature activated. Try disabling this feature for WS client. netty HttpPostRequestEncoder bodyRequestEncoder = new HttpPostRequestEncoder(factory, request, false);

netty 文件上传

netty 文件上传 http://blog.csdn.net/mcpang/article/details/41140409 【初学与研发之NETTY】netty4之文件上传 标签: netty4文件上传 2014-11-15 04:35 6005人阅读 评论(29) 收藏 举报 分类: JAVA (48) Netty (6) 版

MessageFormat

MessageFormat MessageFormat用法 博客分类: java MessageFormatMessageFormat.format MessageFormat用来格式化一个消息,通常是一个字符串,比如: String str = “I’m not a {0}, age is {1,number,short}", height is

英语, English

英语 English 句子成分 主语 Subject 谓语 Predicate 宾语 Object 主语 Subject 指句子中动作的执行者或状态的承受者,通常是名词、代词或相当于名词的词或短语。 在祈使句中,主语通常是隐含

统计文件行数, 文件数

统计文件行数, 文件数 Linux下有三个命令: ls、grep、wc。通过这三个命令的组合可以统计目录下文件及文件夹的个数。 统计当前目录下文件的

Linux批量重命名文件

Linux批量重命名文件 1 2 3 4 5 6 7 8 9 #在前面添加 _hoho_ for i in \`ls\`; do mv -f $i \`echo "_hoho_"$i\`; done #修改前面5个字母为zhaozh for i in \`ls\`; do mv -f $i \`echo $i | sed 's/^...../zhaozh/'\`; done L

ansible basic command

ansible basic command commands 1 2 3 4 5 6 7 8 # 临时的 inventory file ansible -i '192.168.50.111,' all -m shell -a 'whoami' -u root ansible-galaxy collection install community.general # localhost ansible localhost -m shell -a 'ls' # 指定私钥 --key-file ansible -i 'wiloon.com,' all -m shell -a 'systemctl stop enx-api' -u root --key-file ~/.ssh/id_ed25519_w10n hibernate 1 ansible -i '192.168.50.31,' all -m shell -a 'sudo

java 队列, Queue, Deque

java 队列, Queue, Deque 名称 deque 是 “double ended queue (双端队列)” 的缩写, 通常读为 “deck”。 大多数 Deque 实现对于它们能够包含的元素

netctl

netctl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 pacman -S wpa_actiond pacman -S dialog systemctl stop dhcpcd systemctl disable dhcpcd cp /etc/netctl/example/wireless-wpa sudo chmod u+x /etc/netctl/* emacs wireless-wpa sudo netctl start xxxxxx sudo netctl enable wireless-wpa wireless #http://www.wiloon.com/?p=7520

archlinux netctl wifi

archlinux netctl wifi Essay Address: http://blog.csdn.net/sunnypotter/article/details/23201339 # 如果之前systemctl enable dhcpcd.service systemctl dhcpcd.service systemctl disable dhcpcd.service 然后 cd /etc/netctl cp examples/wireless-wpa . # A simple WPA encrypted wireless connection vim wireless-wpa # Modify Interface=wlp8s0 # iw dev查看, 或ip link 或ifconfig Connection=wireless Security=wpa IP=dhcp

小平岛 玉皇顶

小平岛 玉皇顶 小平岛之巅是玉皇顶,海拔73米,与之相连的是城山头,海拔53米。在它的半腰处有一堵30多米长的残垣断壁,面对大海,青石累累。据说

archlinux init

archlinux init openssh ssh key neovim ln -s … vi… vim to nvim sudo nopassword for wiloon python for ansible pacman -Syu yay for telegraf after install mesa, to confirm it works 被正确加载 1 2 3 4 5 glxinfo | grep "OpenGL renderer" # OpenGL renderer string: AMD Radeon Graphics (radeonsi, phoenix, LLVM 19.1.7, DRM 3.61, 6.14.9-arch1-1) # 看内核模块是否加

Invalid partition table

Invalid partition table syslinux root和boot在 逻辑分区上 启动时会提示 Invalid partition table 回国后正常进入syslinux http://bbs.sjtu.edu.cn/bbscon,board,GNULinux,file,M.1398935226.A.html