Home
Wade Tester
Cancel

Openresty 脚本一定需要优化!用ab测试!然后改进!

我们的项目上了openresty,效果那是相当不错,基本实现了我12年的时候的想法:编程友好、性能又好的防火墙 上去之后,发现一个问题: ab测试下,每秒的极限请求是200. -_-! 后来经过优化,提高到了 5000~ 20000.  优化的点: 1. 不要在 .lua脚本中引入第三方库(例如:package.path = package.path..";/usr/local/o...

Ruby Webrickbuiltinhttpproxy代理服务器

refer to: https://stackoverflow.com/questions/12187509/how-do-i-write-a-simple-https-proxy-server-in-ruby https://ruby-doc.org/stdlib-2.5.0/libdoc/webrick/rdoc/WEBrick/HTTPProxyServer.html webric...

在godaddy主机上操作github项目。workundergithubandgodaddyhost

如题。 也基本上算是自己第一次写的PHP代码。 (this is my first PHP experience. ) 后来发现 fluxbb版本不吻合,于是自己的代码没办法直接merge过去。只好手动修改。发现居然可以直接在godaddy上操作 github的push/pull. 很给力。所以直接新建了一个项目。 ( however I found that the fluxbb vers...

Vuejs 在vuejs中使用mochachai进行单元测试

参考:  https://vuejs.org/v2/guide/unit-testing.html 入门: https://vue-test-utils.vuejs.org/api/wrapper/#name 这个是我问的问题:  https://stackoverflow.com/questions/58677875/vue-only-export-metho...

Js 使用jest来进行单元测试

官方网站:  https://github.com/facebook/jest 基本用法 1. npm install --save-dev jest 2. 我们创建一个项目,包含3个文件:  2.1  package.json :  { "name": "test_jest", "version": "1.0.0", "descript...

Linux 设置linux的时区setlinuxtimezone和locales

很多时候,你的LINUX时间显示的不对,不是时间不对,而是时区错了。  (most of the time, the root cause you found the time is not correct is that your linux is not setup with the correct timezone)  解决办法: for short:  ...

Linux Caddy 设置域名的跳转,reverse_proxyhandle

refer to: https://caddy.community/t/reverse-proxy-a-single-url/9152 https://caddyserver.com/docs/caddyfile/directives/handle 目的: vitalik.eth.mysite.com  会自动跳转到 ipfs.mysite.com/ipfs/aabbccc&#...

在新做的linux系统上安装第三方包installlibsonbarelinux

参考: http://www.jasonrowland.com/2009/12/30/bare-ubuntu-configuration-for-ruby-on-rails/ ubuntu 22 # 注意: 先删掉这个: libicu70, 不知道它是干嘛的. refer to:   https://segmentfault.com/q/10100000426588...

Blockchain 特别无语,不要相信本地proxy直接使用远程香港服务器自带proxy效果

结论 不如以后链上开发直接放到 HONGKONG服务器上啊。 过程 特别无语,卡了很久。解决了诡异(版本)问题之后,还是无法访问, 提示无法连接远程node: 无力之下,跳转到的hongkong 服务器,一次成功: 链上效果

Linux 压力测试工具ab的使用apachebech

安装:apt-get install apache2-utils 使用: ab -n 5000 -c 200  localhost:3456/ -n 总共发送多少 -c 多少并发 sinatra表现不错. 

Gitpatchapply某一个或者多个commitapplyapatchgeneratedfromaspecificcommit

refer to: http://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit 如何在另外一个机器上 apply某个 path?   我们遇到一个情况, 在某个机器上,需要一个紧急部署,但是又不希望手工去修改(因为已经有了一个commit 了)。这样的情况下,可以使用g...

Chrome Win10如何安装chrome插件omegaextentionproxychomepproxy

实在无路可走了。奈何日常工作需要。 1. 本地启动socks5服务器  例如跑在  127.0.0.1 的1090 端口 2. 通过 pproxy 启动 http 服务器   pproxy -r socks5://127.0.0.1:1090 -vv 3. chrome -> 设置 ,  输入 代理  , 然后就进入到设置页面...

Penetrationtesting渗透测试笔记

测试邮件的账户:VRFY, EXPN、 洋葱路由器 , 取得隐身效果 谷歌街景, 地图, WEB摄像头 使用应用社交网络获得信息 利用google进行黑客活动:  cache: 显示缓存版本 link: 列出所有包含某访问XX的链接的页面 info: 列出页面的相关信息 使用 archive.org 可以找到不复存在的网站。  渗透测试的几个步骤: 踩点(找到信息),枚举...

腾讯的云主机测试非常不错有很多真机

见:  http://remote.utest.qq.com/deviceSearch?type=remote&brand=Xiaomi 非常好. 上来注册还给100U币. 

Omegaproxy 快捷键天啊我今天摸索了下才知道shortcutswitchproxyomegaswitchyomega

1. 在设置中,可以看到有快捷键 alt + shift + o (貌似无法更改) 2. 默认打开是这样的: 然后输入   /   (或者  ? ) ,就可以看到对应的数字 如果要切换多个代理的话,直接 输入 上图红框中的即可。 一键切换 如下图所示,可以设置一键切换(我过去4,5年的时间啊5555)

Linuxsystemadmin查看某个端口号:netstat Npl

如题。 感谢杰杰教我。

Linux Pythonproxypproxyprivoxysthp Https >socks5让docker或者啥使用socks5proxyapt Getcurlwget

refer to: https://superuser.com/questions/423563/convert-http-requests-to-socks5 最初的目的是为了在docker中可以使用proxy 然后发现在windows下,就算host使用了vpn, proxy也不受影响 docker 似乎仅仅支持http/ https 服务器,不支持socks5服务器 ( 见 使用了好...

Todo测试并提高nginx的并发访问

这里可以看到我对nginx的优化过程, 使用了proxy_cache: 但是使用 ab 测试一直不好用 . 通过对比, 发现跟 reponse.body的size有很大关系.  10K以下, 每秒 10K个响应 70k 左右, 每秒 150个响应 34 怀疑: 1. 并发的性能跟 response.body的大小有直接关系 2. 跟我们vps的网络环境有关系. 青云主机不是上来...

修改本机hostnamechangehostnameinlinux

Run this command in Terminal: $ sudo scutil --set HostName larryx.local This is also helpful if you’re in Terminal and have a really long hostname at your prompt. If you want to view your current h...

Privoxy Docker 安装socks转换httpsproxy

refer to:  https://zhuanlan.zhihu.com/p/421952002  success!! 2025-03-16: success ,  follow zhihu's link. failed:  https://github.com/docker/for-mac/issues/1238 这个我没看,可以当备份 https...