自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(53)
  • 资源 (1)
  • 论坛 (1)
  • 收藏
  • 关注

原创 C# SM2

using Org.BouncyCastle.Asn1.GM;using Org.BouncyCastle.Crypto;using Org.BouncyCastle.Crypto.Digests;using Org.BouncyCastle.Crypto.Engines;using Org.BouncyCastle.Crypto.Generators;using Org.BouncyCastle.Crypto.Parameters;using Org.BouncyCastle.Crypto..

2021-03-22 10:32:21 139

原创 爬虫获取[www.pbc.gov.cn]cookie

const request = require('request');let req = p => new Promise((s, f) => request(p, (e, r) => e ? f(e) : s(r)));let headers = { Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,applic.

2021-03-11 20:30:30 28

原创 nodejs导出excel

const xlsx = require('xlsx');let wb = xlsx.utils.book_new();xlsx.utils.book_append_sheet(wb, xlsx.utils.json_to_sheet([{ a: 1, b: 2 }, { a: 3, b: 4 }]), 'a');xlsx.utils.book_append_sheet(wb, xlsx.utils.aoa_to_sheet([['a', 'b', 'c'], [4, 5, 6]]), 'b');.

2021-03-05 13:56:58 43

原创 iisexpress命令行运行

"C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:"d:\edata" /port:8012"C:\Program Files (x86)\IIS Express\iisexpress.exe" /config:"E:/edata/.vs/edata/config/applicationhost.config" /site:"edata" /apppool:"Clr4IntegratedAppPool"

2021-01-16 21:28:10 32

原创 chrome扩展

{//manifest.json "name": "name", "version": "1.0.1", "manifest_version": 2, "description": "description", "browser_action": { "default_icon": "icon.ico", "default_title": "name", "default_popup": "index.html" }, "permissions": [ .

2020-12-26 08:27:34 60

原创 docker制作运行

docker build -t $1:latest -f ${DOCKERFILE} --network host . #镜像制作docker tag $1:latest host:5000/${NAME}:${TAG}docker push host:5000/$1:$2 #上传仓库docker rmi -f $1:latestdocker rmi -f host:5000/$1:$2#!/bin/bashdocker image pull host:5000/$1:$2 #拉取镜像doc

2020-12-25 19:34:36 16

原创 防火墙firewall-cmd

firewall-cmd --list-all #查看防火墙firewall-cmd --state #状态firewall-cmd --list-ports #查看开放的端口firewall-cmd --query-port=80/tcp #查看firewall-cmd --permanent --add-port=80/tcp #添加端口firewall-cmd --permanent --remove-port=80/tcp #关闭端口firewall-cmd --reload #重新载入

2020-12-25 19:33:49 30

原创 linux配置jdk

mkdir /home/javacd /home/javawget -O jdk8 http://192.168.3.21/jdk-8u271-linux-x64.tar.gztar zxf jdk8 -C ./rm jdk8vim /etc/profileiexport JAVA_HOME=/home/java/jdk1.8.0_271export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAV

2020-12-25 19:33:07 14

原创 vue表格插槽

<tablecomponent :data="{items:[1,2,3]}"> <template slot="thead"> <label>table</label> <label>slot</label> </template> <template v-slot="{item}"> <label>table{{item}}&...

2020-09-13 07:26:21 318

原创 js proxy

function proxy(data) { if (!data) data = []; return new Proxy(() => 0, { get(t, k) { let r = [].concat(data); r.push(k); return proxy(r); }, apply(t, k, args) { return `${d.

2020-09-03 18:52:21 33

原创 spring boot自定义参数注解

@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.PARAMETER,ElementType.METHOD})public @interface Test {}@Configurationpublic class TestConfig implements WebMvcConfigurer { @Override public void addArgumentResolvers(List<HandlerMet.

2020-07-27 19:08:51 89

原创 Spring线程中使用@Autowired

@Componentpublic class ApplicationContextUtil implements ApplicationContextAware { private static ApplicationContext applicationContext = null; @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansE.

2020-06-29 20:11:32 304

原创 Newtonsoft.Json忽略empty

class ContractResolver : CamelCasePropertyNamesContractResolver{ protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization) { var a = ...

2020-04-18 08:50:48 69

原创 graphviz快速生成流程图

安装graphviz设置环境变量path=C:\Program Files (x86)\Graphviz2.38\bin命令:dot -T png d:/test.txt -o d:/test.png文档https://graphviz.gitlab.io/documentation/下载地址https://graphviz.gitlab.io/_pages/Download/Downl...

2020-03-30 18:30:48 308

原创 python http server

from aiohttp import webimport osimport timeasync def index_Handle(request): fp=open(os.path.abspath('./index.html'),'r',encoding="utf-8") text=fp.read() fp.close() return web.Resp...

2020-03-28 23:52:08 80

原创 windows查看进程命令行

wmic process get caption,commandline,processid /valuewmic process where caption="java.exe" get caption,commandline,processid /valuewmic process where processid=9764 get /format:value

2020-03-23 18:24:38 1959

原创 python设置win10壁纸

import osimport win32gui,win32conimport randomfrom PIL import Imageimport reds=[{"paths":["e:/壁纸/"],"isPart":False},{"paths":["e:/醒来/"],"isPart":True}];wallpaper="e:/壁纸/wallpaper.jpg";wid...

2020-02-10 19:30:04 391

原创 sqlserver分区

创建文件组alter database dbname add filegroup fq_01alter database dbname add file(name = 'fq_01',filename = 'f:\database\fq_01.mdf',size = 1mb,filegrowth = 1mb)to filegroup fq_01...创建分区函数create parti...

2020-01-20 14:40:06 51

原创 sqlserver获取时间

年月日select year(current_timestamp),month(current_timestamp),day(current_timestamp),convert(varchar(10), getdate(),120)时分秒 毫秒select datepart(hh,getdate()),datepart(mi,getdate()),datepart(ss,getdate...

2020-01-09 11:16:54 60

原创 A component is changing an uncontrolled input of type undefined to be controlled

A component is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or...

2020-01-02 12:30:58 730

原创 javascript计算时间差

class ts { constructor() { this._ms = ['Month', 'Date', 'Hours', 'Minutes', 'Seconds', 'Milliseconds']; } _f(a, b, r, i) { var m = this._ms; for (; i < m.length; i++) { ...

2019-11-22 09:37:08 53

原创 log4net使用环境变量

Environment.SetEnvironmentVariable("log_home", @"d:/log");ILoggerRepository repository = LogManager.CreateRepository("Repository");XmlConfigurator.Configure(repository, configFileInfo);ILog log = L...

2019-10-13 11:21:12 235

原创 条件拼接

class CL { constructor(conditions) { this._conditions = conditions; } toString() { this._depth = 0; this._index = 0; this._curr = this._conditions[0]; ...

2019-10-05 09:49:43 107

原创 表单提交另类阻止方式

<div onsubmit="return alert('???'),false"><form><input type="submit"/></form></div>

2019-09-25 22:25:37 84

原创 vue拦截表单提交

<form id="app" v-if="isReady" @submit.prevent="submit"> <input type="text" name="name" v-model.trim.lazy="model.name" /> <input type="number" name="num" v-model.number="model.nu...

2019-09-24 19:08:35 320

原创 c#执行js

using (var js = new JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngine()){ js.EmbedHostObject("console", new { log = new Action<object>(p => Console.WriteLine(p)) }); js.Execute(...

2019-09-21 15:57:12 318

原创 node-canvas使用自定义字体

const fs = require('fs');const { createCanvas, registerFont } = require('canvas');registerFont(env.url('iconfont/iconfont.ttf'), { family: 'iconfont' });for (let v of (await env.file.readAllText('i...

2019-09-12 20:32:02 532

原创 nginx反向代理

include abc.com.conf;abc.com.conf:upstream abc_com { server 192.168.0.5:1111 weight=1; ...}upstream any_abc_com { server 192.168.0.6:1111weight=1; ...}server{ ... ...

2019-09-09 22:23:44 47

原创 nodejs文件监控&执行命令

async function exec(a) { return new Promise((resolve, reject) => { try { var end = 0; var http = require("http").createServer(function (req, res) { ...

2019-08-19 10:03:40 672

原创 上传图转base64

<script>function readAsDataURL(file, callback) { var reader = new FileReader(); reader.onload = function (e) { callback({ name: file.name, base64Url: e.target.result }); };...

2019-08-15 12:43:54 28

原创 python调dotnet

import clrimport timeimport osimport sysos.system("title job"+sys.argv[1])clr.AddReference('library')from library import *method=Sync.Instance.GetType().GetMethod(sys.argv[1])last=0while Tru...

2019-08-13 20:06:42 107

原创 nodejs+react动态调用jsx

var React = require("react");var ReactDOMServer = require("react-dom/server");var jsx = `<div> <a href={this.props.href}>{this.props.text}</a> <div dangerouslySetInnerH...

2019-08-03 22:12:07 570 1

原创 JavaScript在原型上定义属性

Object.defineProperties(Number.prototype, { obj: { get: function () { return { add: p => this + p } } }, add: { value: function (p) { return this + p } }});console.log((1).obj...

2019-07-31 09:43:19 152

原创 使用html2canvas将html保存为图片

<div>使用html2canvas将html保存为图片</div><a download="使用html2canvas将html保存为图片.png"><img/></a><style>div { position:fixed; top:200%; background: -webkit-lin...

2019-06-29 11:38:22 85

原创 Scaffold-DbContext "Build failed"

Scaffold-DbContext "Build failed" 解决方法:确保项目可以无错误地构建安装EntityFrameworkCore:Scaffold-DbContext "server=.;database=test;uid=test;pwd=test;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -For...

2019-06-24 17:16:49 3510

转载 Uncaught TypeError: $.handleError is not a function

if (!jQuery.handleError) jQuery.extend({ handleError: function (s, xhr, status, e) { if (s.error) { s.error.call(s.context || s, xhr, status, e); }...

2019-06-14 10:26:56 354

原创 linux安装.net core

mkdir /home/admin/dotnetwget -O /home/admin/dotnet/temp https://............sdk.gztar zxf /home/admin/dotnet/temp -C /home/admin/dotnetrm /home/admin/dotnet/tempsudo ln -s /home/admin/dotnet/dotne...

2019-06-12 09:25:39 357

原创 mssql刷新视图

create proc 刷新视图asdeclare @name nvarchar(max)DECLARE vcursor CURSOR FOR SELECT name from sys.views order by create_date ascOPEN vcursorFETCH NEXT FROM vcursor INTO @nameWHILE @@FETCH_STATUS = ...

2019-05-28 13:26:07 283

原创 IIS 查询参数过长的解决办法

<system.web> <httpRuntime maxQueryStringLength="2097151"/> </system.web> <system.webServer> <security> <requestFiltering> <requestLim...

2019-05-22 09:00:23 396

原创 foobar2000提取音频

分割文件和FAQ歌曲信息乱码可尝试选择其它输出格式编码器:http://www.foobar2000.org/encoderpackAPE解码器:http://www.foobar2000.org/components/view/foo_input_monkey

2019-04-23 18:10:20 645

soChange 切换插件 soChange1.6.1

jquery 切换插件 支持焦点图片切换 选项卡切换 带按钮与分页索引按钮切换

2014-11-09

空空如也

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

TA关注的人 TA的粉丝

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