syntax: headers = ngx.resp.get_headers(max_heade …
作者存档:phpor
如何从零开始写一个 Chrome 扩展? – 知乎
https://www.zhihu.com/question/20179805
Chrome扩展:拦截网页JS并替换
https://jingyan.baidu.com/article/d169e18662aa60436611d …
saltstack pillar 维护
默认情况下,pillar信息是维护在文件中的,虽然方便,如果要自动化的话,就不太方便,如果能存到数据库会方便维 …
持续构建之maven + Jenkins + Nexus
一般来讲,maven deploy时要部署到Nexus,需要在pom.xml 中添加如下类似的东东: [cra …
docker swarm 模式下证书过期后daemon无法启动
报错信息:
1 |
Error creating cluster component: error while loading TLS Certificate |
相关文章: https://gi …
xfire 代理设置
xfire 可以通过如下方式设置代理:
1 2 |
client.setProperty(CommonsHttpMessageSender.HTTP_PROXY_HOST, httpProxyHost); client.setProperty(CommonsHttpMessageSender.HTTP_PROXY_PORT, httpProxyPort); |
需要 …
java问题
java 用很多内存,占用全部的cpu:
1 2 3 4 5 6 7 8 9 |
{Heap before GC invocations=3629 (full 101): PSYoungGen total 699392K, used 350208K [0x0000000780000000, 0x00000007c0000000, 0x00000007c0000000) eden space 350208K, 100% used [0x0000000780000000,0x0000000795600000,0x0000000795600000) from space 349184K, 0% used [0x00000007aab00000,0x00000007aab00000,0x00000007c0000000) to space 349184K, 0% used [0x0000000795600000,0x0000000795600000,0x00000007aab00000) ParOldGen total 2097152K, used 2097081K [0x0000000700000000, 0x0000000780000000, 0x0000000780000000) object space 2097152K, 99% used [0x0000000700000000,0x000000077ffee728,0x0000000780000000) Metaspace used 69136K, capacity 72006K, committed 73560K, reserved 1114112K class space used 7517K, capacity 8088K, committed 8320K, reserved 1048576K |
& …
golang 中的只读变量
示例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package proxy import ( "net" ) type direct struct{} // Direct is a direct proxy: one that makes network connections directly. var Direct = direct{} func (direct) Dial(network, addr string) (net.Conn, error) { return net.Dial(network, addr) } |
上面是 golang.org/x/n …
Mac 上给网卡添加多个ip地址
示例:
1 |
sudo ifconfig lo0 127.0.0.2/32 alias |
关键是: alias