自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Jenkins支持docker-compose编译

https://github.com/wswind/jenkins-use-docker-compose-build转载于:https://www.cnblogs.com/wswind/p/11279536.html

2019-07-31 22:21:00 1074

转载 vsdbg 下载方法 使用下载工具下载后手动安装

vsdbg国内下载太慢了,这里提供一个使用下载工具下载后,手动安装的处理方法查看vs build控制台输出:1>C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy RemoteSigned...

2019-07-24 13:17:00 1580

转载 Asp.NET Core Nginx Ocelot ForwardedHeaders X-Forwarded-For

ocelot在部署时我使用了nginx作为转发,并配置了https证书,但是发现ocelot不支持Forward host header。https://ocelot.readthedocs.io/en/latest/introduction/notsupported.html这时候我就有了个疑问,Forward host header到底时什么含义?于是便有了本文。nginx等代...

2019-06-21 15:49:00 834

转载 ocelot性能测试

网上搜索发现多篇文章指出ocelot的性能有问题,可是在ocelot项目issue提问中,维护者指出,ocelot的性能问题不大。瓶颈在于.net的httpclient。我参考文章https://www.cnblogs.com/myzony/p/10401298.html制作了一个测试项目,并将代码传到了github,供有需要的人自行测试。wrk我在ubuntu wsl中未能编译...

2019-06-14 08:20:00 761

转载 Hyper V NAT 网络设置 固定IP / DHCP

Hyper V 使用时乍一看好像很方便,默认的Default Switch同时支持了NAT网络以及DHCP,虚拟机能够访问外网。但使用过程中发现这个IP网段经常变化,而且Hyper V没有提供管理其NAT网络与DHCP的图形化界面功能。如果开发者需要同时管理多个Linux VM进行实验,且在局域网中无法为他们单独分配固定IP时,使用可自行配置的NAT网络显得尤为重要。本文提供一种自...

2019-06-12 09:12:00 1337

转载 .net core 微服务架构

https://github.com/dotnet-architecturehttps://github.com/abpframework/abp/blob/master/docs/zh-Hans/Samples/Microservice-Demo.md转载于:https://www.cnblogs.com/wswind/p/10949053.html

2019-05-30 13:34:00 94

转载 Powershell ExecutionPolicy 执行策略

简单说明powershell对于脚本的执行有着严格的安全限制Get-ExecutionPolicy -List #查看当前的执行策略Set-ExecutionPolicy -Scope CurrentUser AllSigned #设置执行策略为要求所有脚本签名,范围为当前用户策略 Policies:Restricted / AllSigned / RemoteSigned /...

2019-05-23 13:06:00 2095

转载 centos ftp服务器搭建 vsftpd 匿名访问配置方法 ftp 550 Failed to open file 错误处理

vsftpd是linux下常用的ftp服务软件,配置起来其实不复杂,只是网上很多文章,配置后都无法成功。我使用它是用于局域网内部分享文件的,所以使用匿名的方式。ftp本身密码是明文传输的,如果需要安全,也不建议通过密码认证的方式,而建议直接使用sftp,通过winscp等工具访问服务器。vsftp配置失败往往是由于权限问题,这里我简单介绍一下注意的点。vsftpd在Linux中默认...

2019-05-16 16:39:00 1811

转载 powershell与linux bash对比

转自Github/PowershellBashPowerShellDescriptionlsdir, Get-ChildItemList files and folderstreedir -Recurse, Get-ChildItem -RecurseList all files and folderscdcd, Set-LocationCh...

2019-05-15 20:25:00 993

转载 .net core linux环境下 System.Data.SqlClient.SqlException: Connection Timeout Expired.

最近遇到了一个很奇葩的问题,我编写了一个.net core程序读取多个数据库数据源,进行数据同步处理。该程序在windows环境下运行完全正常,但在linux环境下运行报异常,提示System.Data.SqlClient.SqlException: Connection Timeout Expired. The timeout period elapsed during the p...

2019-05-05 21:31:00 688

转载 linux 通过源安装.net core

https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-2.2.203转载于:https://www.cnblogs.com/wswind/p/10813793.html

2019-05-05 16:37:00 88

转载 python 操作数据库 pyodbc

https://github.com/mkleehammer/pyodbc/wiki/Getting-started转载于:https://www.cnblogs.com/wswind/p/10774042.html

2019-04-26 14:18:00 287

转载 seaweedfs

最新版本:https://github.com/chrislusf/seaweedfs/releaseswiki:https://github.com/chrislusf/seaweedfs/wiki优秀讲解:https://tonybai.com/2015/08/22/intro-of-using-weedfs/./weed master> weed volume -di...

2019-04-24 18:54:00 171

转载 asp.net core 视图组件化

视图组件可以通过partial view或viewcomponent实现partialviewhttps://docs.microsoft.com/zh-cn/aspnet/core/mvc/views/partial?view=aspnetcore-2.2https://github.com/aspnet/AspNetCore.Docs/tree/master/aspnetcor...

2019-04-22 11:02:00 214

转载 linq group by / distinct

https://www.cnblogs.com/qixu/p/6033532.htmlhttp://www.cnblogs.com/A_ming/archive/2013/05/24/3097062.htmlhttps://docs.microsoft.com/zh-cn/dotnet/api/system.linq.enumerable.distinct?view=netframe...

2019-04-20 08:08:00 178

转载 CentOS 使用第三方软件源 安装最新版本软件(git python ...) SCL IUS

使用centos 经常发现官方提供的软件包版本过低,很多时候大家会选择下载源码自行编译,带来了很多麻烦。centos安装最新版本软件包,例如git,python等,可以通过红帽官方提供的software collection,或者社区提供的ius实现。IUSIUS是一个社区维护的软件源,全名是Inline with Upstream Stable,官网为https://ius.io...

2019-04-18 14:54:00 487

转载 efcore 级联删除

https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete#required-relationshipsOptional relationshipsFor optional relationships (nullable foreign key) itispossible to save a nul...

2019-04-17 14:31:00 613

转载 记unit of work与事务提交

https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-applicationhttp...

2019-04-15 14:48:00 191

转载 msys2 环境配置记录

命令行添加镜像地址首次安装后,配置软件源sed -i "1iServer = http://mirrors.ustc.edu.cn/msys2/mingw/i686" /etc/pacman.d/mirrorlist.mingw32sed -i "1iServer = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64" /etc/pacma...

2019-04-03 17:07:00 990

转载 通过命令更新git for windows

git update-git-for-windows参考:https://github.com/PanJiaChen/vue-element-admin/issues/24https://stackoverflow.com/questions/13790592/how-to-upgrade-to-the-latest-version-of-git-on-windows-still-...

2019-03-28 14:21:00 802

转载 centos / debian 安装iptables服务

debian:#使用可参考 https://www.debian.cn/archives/991#配置文件位于 /etc/iptables#重新配置使用dpkg-reconfigure iptables-persistentapt install iptables-persistent netfilter-persistent --helpnetfilter-persiste...

2019-03-21 09:23:00 1247

转载 dotnet core 发布环境变量配置 dev/stage/prod

https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/environments?view=aspnetcore-2.2https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish?tabs=netcore21转载于:https://www.cn...

2019-03-11 13:09:00 823

转载 linq 使用or构建动态查询

You can certainly do it within a Where clause (extension method). If you need to build a complex query dynamically, though, you can use aPredicateBuilder. var query = collection.Where( c =&g...

2019-03-08 16:51:00 295

转载 winscp 使用root身份登录

参考:https://www.haiyun.me/archives/winscp-sftp-sudo-root.html一般root账户在服务器上会被禁止ssh,此时普通用户通过sudo执行管理员权限命令。这时如果需要使用winscp,就很麻烦。本文提供一个方法可使用普通用户通过sudo提权使用winscp首先确认自己的普通账户sudo 能够免密码执行,然后在服务器上查看 ...

2019-03-06 21:11:00 916

转载 centos 7 安装最新版本git

https://serverfault.com/questions/709433/install-a-newer-version-of-git-on-centos-7You could use aIUS repository(https://ius.io/) as provided on Git official site here:https://git-scm.com...

2019-03-05 23:02:00 161

转载 centos firewall-cmd常用命令

firewall-cmd --list-allfirewall-cmd --zone=public --add-port=12345/tcp --permanent firewall-cmd --zone=public --remove-port=12345/tcp --permanentfirewall-cmd --zone=public --add-rich-rule '...

2019-03-05 17:07:00 191

转载 windows 如何创建.gitignore 文件 / .ssh 文件夹?解决windows必须键入文件名提示

windows不允许.gitignore之类的文件,也不允许.ssh命名的文件夹名。会提示必须输入文件名。要解决这个问题我以前一直是通过bash使用linux命令创建的。最近发现了一个更简便的方法与大家分享:创建.gitignore文件输入.gitignore.即可越过此限制,回车后文件名会修改为.gitignore。参考:https://winscp...

2019-02-26 15:50:00 459

转载 linux 关键发行版及其关系图

转载于:https://www.cnblogs.com/wswind/p/10424713.html

2019-02-23 22:47:00 192

转载 win10 跳过max path 260限制

参考:https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 中设置 LongPathsEnabled值为1...

2019-02-23 12:57:00 1207

转载 sqlserver 2017 linux还原windows备份时的路径问题解决

windows的备份由于路径问题,在Linux上会报错File 'YourDB_Product' cannot be restored to 'Z:\Microsoft SQL Server\MSSQL11.GLOBAL\MSSQL\Data\YourDB\YourDB_Product.ndf'. Use WITH MOVE to identify a valid locatio...

2019-02-21 09:18:00 332

转载 linux git server 简易搭建 (ssh访问)

git的服务器搭建,如果无需权限控制,仅团队内部使用,初始化一个服务器仓库,其他人通过ssh访问这个文件夹即可。如需复杂的管理,建议使用gitlab。yum install git -yid gituseradd gitsu gitcdmkdir .ssh && chmod 700 .sshtouch .ssh/authorized...

2019-02-19 09:38:00 126

转载 使用vim鼠标右键无法粘贴问题解决

问题:Debian中通过终端使用vim,无法通过鼠标粘贴。这是由于一项默认的鼠标配置导致。解决方法:vi /usr/share/vim/vim80/defaults.vim查找set mouse=a改为set mouse=rThe mouse can be enabled for different modes:n Normal modev Visual mod...

2019-02-18 10:08:00 947

转载 gitweb配置

基于ssh的git服务器搭建可浏览:https://www.cnblogs.com/wswind/p/10373881.html安装gitweb和apacheyum -y install gitwebyum -y install httpd配置gitweb库地址/etc/gitweb.conf$projectroot = '/opt/git'配置...

2019-02-15 10:43:00 246

转载 linux查看端口号监听状态

lsof -i:<port>netstat -tunlp | grep <port>转载于:https://www.cnblogs.com/wswind/p/10368238.html

2019-02-13 09:51:00 282

转载 linux / centos 安装SQL Server 2017 设置默认语言与排序规则Chinese_PRC_CI_AS

安装安装很简单参照官方教程https://docs.microsoft.com/zh-cn/sql/linux/quickstart-install-connect-red-hat?view=sql-server-2017需要注意的是,如果安装时没有指定环境变量参数,会按默认设置安装,字符集会是拉丁字符集,默认语言是英语,此时国内用户可能需要进行另外设置。为了解决这个问题,我们可...

2019-02-12 16:05:00 678

转载 centos 安装部署.net core站点

安装 net coresudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpmsudo yum update -y#sdk runtime二选一sudo yum install dotnet-sdk-2.2sudo yum install aspnetcore-...

2019-02-01 19:58:00 130

转载 windows聚焦图片文件重命名脚本

windows 聚焦(spot light)服务是win10中系统提供的锁屏界面壁纸win10聚焦图片路径为:%localappdata%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets将图片拷贝出来后,可以通过cmd指令进行重命名ren * *.png也可以通过...

2019-01-27 22:29:00 158

转载 windows查看内存频率

命令行查看:wmic memorychip任务管理器查看:任务管理器-性能-内存-速度转载于:https://www.cnblogs.com/wswind/p/10328173.html

2019-01-27 22:04:00 493

转载 abp CrudAppService 自定义分页、排序

public class GetAllTasksInput : PagedAndSortedResultRequestDto{ public TaskState? State { get; set; }}public class TaskAppService : AsyncCrudAppService<Task, TaskDto, int, GetAllTasksIn...

2019-01-25 15:15:00 1008

转载 abp AutoMap Custom Mapping

[DependsOn(typeof(AbpAutoMapperModule))]public class MyModule : AbpModule{ public override void PreInitialize() { Configuration.Modules.AbpAutoMapper().Configurators.Add(config ...

2019-01-24 14:04:00 240

空空如也

空空如也

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

TA关注的人

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