自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(416)
  • 收藏
  • 关注

转载 c# Mono.Cecil IL方式 读MethodBody

using Kufen.Common.Definitions;using Mono.Cecil;using System;using System.Collections.Generic;using System.Linq;using System.Text.RegularExpressions;using System.Web;namespace K...

2019-09-17 10:47:00 700

转载 C# IL 生成EXE

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ilasm /exe /output=C:\datacapture.exe /Resource=dataCapture.res dataCapture.il转载于:https://www.cnblogs.com/gaocong/p/11466646.html

2019-09-05 16:01:00 390

转载 js 动态加载 jq

var script=document.createElement("script"); script.type="text/javascript"; script.src="https://code.jquery.com/jquery-1.12.4.min.js"; document.getElementsByTagName('head')[0].appendChild...

2019-09-02 16:40:00 506

转载 mysql 得到指定时间段的日期

set @startDate='2019-01-01';set @endDate='2019-04-01';SELECT ADDDATE(@startDate, INTERVAL @i:=@i+1 DAY) AS DAYFROM (SELECT a.aFROM (SELECT 0 AS a UNION ALL SELECT 1 UNION ALL SELECT...

2019-08-29 14:24:00 292

转载 powershell 开windows 端口

@echo off@echo 请以管理员身份运行set /p portRemark=请输入端口备注:set /p port=请输入端口号:powershell -command "New-NetFirewallRule -DisplayName '%portRemark%' -Direction Inbound -Action Allow -RemoteAddress...

2019-08-23 14:13:00 1226

转载 Cannot start service WMSvc on computer '.'.

批处理,管理员权限执形taskkill /im wmsvc.exe /fnet stop WMSVCnet start WMSVCpause转载于:https://www.cnblogs.com/gaocong/p/11392851.html

2019-08-22 10:25:00 967

转载 c# 并行循环支持 async

var bag = new ConcurrentBag<object>();var tasks = myCollection.Select(async item =>{ // some pre stuff var response = await GetData(item); bag.Add(response); // some po...

2019-08-22 09:14:00 386

转载 EF Core基本使用

mysql<ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.1" />dotnet ef dbcontext scaffold "connectString" "Pomelo.Enti...

2019-08-06 14:38:00 171

转载 Js ascii 16进制 url-encode

function fixedEncodeURIComponent (str) { return str.replace(/./g, function(c) { return '%' + c.charCodeAt(0).toString(16).toUpperCase(); });}转载于:https://www.cnblogs.co...

2019-07-20 17:36:00 465

转载 Please enable using preview .net core sdks

工具=》选项=》环境=》预览功能=》使用.net core sdk的预览转载于:https://www.cnblogs.com/gaocong/p/11132410.html

2019-07-04 14:50:00 453

转载 ps 允许执行不信任的脚本

set-executionpolicy remotesigned转载于:https://www.cnblogs.com/gaocong/p/11130915.html

2019-07-04 10:39:00 547

转载 mysql 某表某列支持 emoji

ALTER TABLE `customer_user` MODIFY COLUMN `UserName` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci转载于:https://www.cnblogs.com/gaocong/p/11124783.html

2019-07-03 10:15:00 195

转载 jenkins

.net core本地 iisbuild & deploycd "%WORKSPACE%\jenkinsTest"dotnet publish -o "D:\jenkins\publish\%JOB_NAME%\%BUILD_NUMBER%"C:\Windows\System32\inetsrv\appcmd.exe stop apppool /a...

2019-05-10 09:34:00 111

转载 成为真正的win10 超级管理员,解决win+r 不以管理员身份运行

secpol.msc本地策略=》安全选项禁用用户账户控制:以管理员批准模式运行所有管理员用户帐户控制:用于内置管理员帐户的管理员批准模式注意:需要重启计算机转载于:https://www.cnblogs.com/gaocong/p/10831458.html...

2019-05-08 13:58:00 3587

转载 bat curl 定时请求

@echo off:loopcall:sleep 30::调用方法call:sleep [毫秒] (1秒=1000毫秒)curl https://stage.coolfen.com/supplychain/api/healthecho.::pausegoto loop :sleepset tmp="%temp%\tmp.vbs"echo w...

2019-05-06 18:46:00 817

转载 jq 日期区间处理

<html lang="en"><head><meta charset="UTF-8"><title>Title</title><script src="./js/jquery-2.1.1.js"></script></head><body><di...

2019-04-28 15:24:00 216

转载 jq 日期区间处理

<html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script src="./js/jquery-2.1.1.js"></script></head><body...

2019-04-28 15:19:00 159

转载 ubuntu cli

查看安装包的路径 dpkg -L redis-server 防火墙ufwredis 相关service redis-server restart 转载于:https://www.cnblogs.com/gaocong/p/10775243.html

2019-04-26 16:53:00 241

转载 k8s的使用

1. 查看 kubectl 的状态 kubectl version2. 查看集群信息 kubectl cluster-info3. 查看节点信息 kubectl get nodes4. 创建一个发布kubectl create deployment k8sdemo --image=gaocongdocker/k8sde...

2019-04-25 16:25:00 194

转载 docker 的使用

docker 学习1. Docker 允许你在容器内运行应用程序, 使用 docker run 命令来在容器内运行一个应用程序。输出Hello worlddocker run ubuntu:15.10 /bin/echo "Hello world"以上命令完整的意思可以解释为:Docker 以 ubuntu15.10 镜像创建一个新容器,然后在容器里执行 ...

2019-04-25 16:21:00 96

转载 ocelot配置

动态配置{ "ReRoutes": [], "Aggregates": [], "GlobalConfiguration": { "ServiceDiscoveryProvider": { "Host": "198.13.32.202", "Port": 8500 }, "DownstreamScheme...

2019-03-19 17:47:00 287

转载 name转json

^(\{)?(?<=\n)(.*)(\})?$"$2":"",UserIdUserOrderIdChargeAccountBuyNumGoodsIdGameAreaGameServerPassCheckSign"UserId":"""UserOrderId":"""ChargeAccount":"""BuyN...

2019-02-27 19:09:00 163

转载 正则实战

html2wxml img处理 (<image(?:[^>]|\n)*)>$1/>转载于:https://www.cnblogs.com/gaocong/p/10246318.html

2019-01-09 19:10:00 96

转载 js 对象转&拼接

function pars(param, key, encode) { if (param == null) return ''; var arr = []; var t = typeof (param); if (t == 'string' || t == 'number' ||...

2018-12-17 17:15:00 561

转载 asp.net core cors中间件

using Microsoft.AspNetCore.Builder;using Microsoft.AspNetCore.Http;using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;namespace DDYWEBAPI...

2018-12-11 16:08:00 212

转载 c#扩展函数

分页 public static class IEnumerableExt { public static (IEnumerable<T> dataAfterPaging, Pageinfo pageinfo) Paging<T>(this IEnumerable<T> list, int PageIndex, in...

2018-12-11 16:06:00 316

转载 c# 正则匹配对称括号

https://stackoverflow.com/questions/7898310/using-regex-to-balance-match-parenthesis转载于:https://www.cnblogs.com/gaocong/p/9996725.html

2018-11-21 18:07:00 280

转载 sqllocaldb 2016安装

msiexec /i SqlLocalDB.msi /qn IACCEPTSQLLOCALDBLICENSETERMS=YES转载于:https://www.cnblogs.com/gaocong/p/9935639.html

2018-11-09 16:04:00 730

转载 权限 位运算

https://blog.youkuaiyun.com/qq_27880427/article/details/52692093转载于:https://www.cnblogs.com/gaocong/p/9928169.html

2018-11-08 11:43:00 117

转载 MongoDB 基本操作

//恢复备份数据到本地mongorestore -d Coolfen .\Coolfen转载于:https://www.cnblogs.com/gaocong/p/9870262.html

2018-10-29 13:50:00 93

转载 c# 根据字段名,得到对象中的属性值

public string GetModelValue(string FieldName, object obj) { try { Type Ts = obj.GetType(); object o = Ts.GetProperty(FieldN...

2018-10-12 09:17:00 451

转载 linq 把list分组为 List<List>

public class User{ public int UserID { get; set; } public string UserName { get; set; } public int GroupID { get; set; }}List<User> userList = new List<User>();us...

2018-10-10 14:34:00 313

转载 Docker for Windows 代理设置(linux container)

https://blog.youkuaiyun.com/mzhangsf/article/details/79747979转载于:https://www.cnblogs.com/gaocong/p/9606532.html

2018-09-07 18:47:00 602

转载 json转 PostMan bulk Edit application/x-www-form-urlencoded 需要的格式

{?\n\s*"([^"]+)"\s*:\s*"?([^,"]+)"?\s*,?}?$1:$2\nPostMan需要的格式。json转 bulk Edit application/x-www-form-urlencoded ([^:\s\d\[{]+):(.*)"$1":"$2",转载于:https://www.cnb...

2018-08-20 17:24:00 319

转载 jq ajax post body raw传json

$.ajax( { url: '', 'data': JSON.stringify({ }), 'type': 'POST', ...

2018-08-09 13:56:00 2058

转载 DATGRIDVIEW如何不选择第一行,第一列

DataBindingComplete事件中写ClearSelection();转载于:https://www.cnblogs.com/gaocong/p/9295895.html

2018-07-11 17:51:00 106

转载 文本框中的回车处理 js

<input id="txtOrderID" onkeypress="getKey(event)" /> <button onclick="refund()">提交</button> <script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.js"><...

2018-06-11 14:59:00 215

转载 redis使用

安装为windows服务redis-server.exe --service-install redis.conf --loglevel verbose 登录redis-cli -h 127.0.0.1 -p 6379 -a 123Asp.net core应用 Redis,Nuget :Microsoft.Extensions.Caching.Redis pub...

2018-06-03 18:41:00 80

转载 linq where in 排序

List<INGREDIENT> selectedIngredients = db.INGREDIENT .Where(i => model.SelectedIngredients.Contains(i.IngredientId)) .AsEnumerable()...

2018-06-02 21:15:00 215

转载 Console程序后台运行

[DllImport("User32.dll", EntryPoint = "FindWindow")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll", EntryPoint =...

2018-05-09 16:28:00 241

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除