摘要: private static PhantomJSDriverService GetPhantomJSDriverService() { PhantomJSDriverService pds = PhantomJSDriverService.CreateDefaultService("D:/");// 阅读全文
posted @ 2022-04-08 16:59 极客船长 阅读(61) 评论(0) 推荐(0) 编辑
摘要: IF NOT EXISTS (SELECT 1 FROM [dbo].[geo_asso_type] WHERE [geo_asso_type_id] = 11) BEGIN INSERT INTO [dbo].[geo_asso_type] ([geo_asso_type_id] ,[bound_ 阅读全文
posted @ 2022-04-08 16:53 极客船长 阅读(195) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 放开超过指定时间的黑名单IP /// </summary> public static void ResetFireWallBlackIp(string ruleName, string hostip, string expireTS) { DateTime dt 阅读全文
posted @ 2022-04-08 10:18 极客船长 阅读(127) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// IIS日志分析器 /// </summary> /// <param name="filepath"></param> public static void IISlogAnalyzer(string filepath, Func<IISLogEvent, boo 阅读全文
posted @ 2022-04-08 10:16 极客船长 阅读(66) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取日志目录下面最新的日志文件 /// </summary> /// <returns></returns> public static string GetLatestLogFile() { string filepath = ConfigurationMana 阅读全文
posted @ 2022-04-08 10:15 极客船长 阅读(33) 评论(0) 推荐(0) 编辑
摘要: public static class ExpressionHelp { private static Expression<T> Combine<T>(this Expression<T> first, Expression<T> second, Func<Expression, Expressi 阅读全文
posted @ 2022-04-08 10:14 极客船长 阅读(14) 评论(0) 推荐(0) 编辑
摘要: @echo off @echo 开始卸载服务 %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe %~dp0IISLogAnalyzer.exe -u pause 注意bat文件要与exe文件在同一目录,且以管理员权限运行b 阅读全文
posted @ 2022-04-08 10:12 极客船长 阅读(199) 评论(0) 推荐(0) 编辑
摘要: @echo off @echo 开始安装服务 %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe %~dp0IISLogAnalyzer.exe pause 阅读全文
posted @ 2022-04-08 10:11 极客船长 阅读(351) 评论(0) 推荐(0) 编辑
摘要: List<string> blackIpList = (from d in ds.Tables[0].AsEnumerable() select d.Field<string>("blackip") ).ToList(); 阅读全文
posted @ 2022-04-08 10:10 极客船长 阅读(431) 评论(0) 推荐(0) 编辑