摘要: public sealed class CacheManager { private HttpApplicationState appPool = null; /// /// 构造函数 /// public CacheManager() { this.appPool = HttpContext.Current.Application; } /// /// 构造函数 /// /// HttpApplicationState 对象 public CacheManager(HttpApplicationSta... 阅读全文
posted @ 2014-02-08 10:40 哥,我还要 阅读(209) 评论(0) 推荐(0) 编辑
摘要: nginx利用limit模块设置IP并发防CC攻击分类:系统2013-01-21 09:02759人阅读评论(0)收藏举报来源:http://blog.xencdn.net/nginx-limit-conn-how-to/http://bbs.linuxtone.org/forum.php?mod=viewthread&tid=21954&extra=page%3D1%26filter%3Dtypeid%26typeid%3D1%26typeid%3D1nginx利用limit模块设置IP并发防CC攻击在nginx.conf 中的http字段下面加入一如下一行limit_req 阅读全文
posted @ 2013-12-11 14:31 哥,我还要 阅读(498) 评论(0) 推荐(0) 编辑
摘要: mysql:SELECT * FROM EVENT WHERE eventId IN(443,419,431,440,420,414,509) ORDER BY INSTR(',443,419,431,440,420,414,509,',CONCAT(',',eventId,',')) 阅读全文
posted @ 2013-12-02 10:36 哥,我还要 阅读(410) 评论(0) 推荐(0) 编辑
摘要: #警告:在运行脚本后,勿必单独运行 iptables -F#因为脚本包含的默认规则为“禁止所有访问”#当其它规则被清除后,系统表现为无法访问状态,需要重启系统恢复#iptables -L 查看当前已应用的规则#eth0 外网网卡#eth1 内网网卡#lo 本地环路#加载模块modprobe ip_tables#清除规则iptables -Fiptables -t nat -Fiptables -t mangle -F#默认规则:禁止所有数据出入#当没有匹配规则时生效iptables -P INPUT DROPiptables -P FORWARD DROPiptables -P OUTPU.. 阅读全文
posted @ 2013-12-02 09:30 哥,我还要 阅读(513) 评论(2) 推荐(0) 编辑
摘要: 最近做了一个红底高根鞋的电商网站Cheap Red Bottom ShoesChristian Louboutin Loafers BestsellersChristian Louboutin ShoesFree Shipping Red Bottom Heels 阅读全文
posted @ 2013-10-18 14:10 哥,我还要 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 最近做了一个红底高根鞋的电商网站Cheap Red Bottom ShoesChristian Louboutin Loafers Bestsellers Christian Louboutin Shoes Free Shipping Red Bottom Heels 阅读全文
posted @ 2013-05-16 01:05 哥,我还要 阅读(181) 评论(1) 推荐(0) 编辑
摘要: UPDATE[dbo].[my_table] SET[my_table].test_rand=T.randNumFROM(SELECTid, CAST(RAND(CHECKSUM(NEWID())) * 1000000 ASINT) ASrandNumFROM[my_table].test_rand)TWHERE[dbo].[my_table].id = T.id 阅读全文
posted @ 2013-05-07 21:20 哥,我还要 阅读(135) 评论(0) 推荐(0) 编辑
摘要: public static string NoHTML(string html){ string[] strArray2 = new string[] { "font", "span", "div", "p" }; foreach (string str in strArray2) { string pattern = string.Format("</?{0}[^>]*?>", str); html = Regex.Replace(html, pattern, "& 阅读全文
posted @ 2013-04-06 16:04 哥,我还要 阅读(288) 评论(0) 推荐(0) 编辑
摘要: iis7.5中做 handlerweb.config 改成这样<system.webServer> <handlers> <add verb="*" path="photo/*" name="photoHandlerEx" type="ImageCenter.Core.PhotoURLWrite,ImageCenter.Core"/> <add verb="*" path="upload/*" name="uploadURL 阅读全文
posted @ 2013-03-26 19:09 哥,我还要 阅读(405) 评论(0) 推荐(0) 编辑
摘要: <style>.add-button {background: transparent url('data:image/gif;base64,R0lGODlhCQAJAIABAP///////yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc 阅读全文
posted @ 2012-10-06 21:01 哥,我还要 阅读(391) 评论(0) 推荐(0) 编辑