自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Free Labor 的专栏

生活就像一杯白開水,每天都要去品償他!

  • 博客(93)
  • 资源 (5)
  • 收藏
  • 关注

原创 How to use pgbench to test performance for PostgreSQL?

pgbench是一个用于测试 PostgreSQL 数据库性能的基准测试工具。通过模拟多个客户端并发执行 SQL 查询,它可以帮助你评估数据库的性能。以下是使用pgbench。

2025-03-26 13:13:54 927

原创 How to delete a package on private NuGet server?

【代码】How to delete a package on private NuGet server?

2025-02-14 13:32:38 163

原创 How to use the ‘git log‘ command to get change log for each file?

这段脚本的目的是从 Git 仓库中提取提交日志信息,并将其格式化为 CSV 文件。

2024-11-29 00:10:01 443

原创 Clean Docker Images and Container by Cron Job

【代码】Clean Docker Images and Container by Cron Job。

2024-11-28 09:18:26 340

原创 How to use gitlab-runner to execute CI?

【代码】How to use gitlab-runner to execute CI?

2024-11-27 19:16:43 646

原创 docker-build.sh and docker-run.sh

平常在docker上调试应用程式,由于指令繁多,需要经常查看资料。为简化步骤,编写docker-build.sh和docker-run.sh文件。

2024-08-14 15:39:10 389 1

原创 .NET SDK/Runtime installation on Linux

【代码】.NET SDK/Runtime installation on Linux。

2024-08-14 15:22:18 152

原创 .NET App accesses MSSQL to report TLS issue on Linux and Docker

1.使用.NET6开发一程式,它需要访问MSSQL,在Linux和Docker下都报:A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed)

2024-08-14 15:16:39 367

原创 How to debug a appliction on local Linux or WSL?

由于K8S权限控制,当部署在上面的应用程式出现问题后,无法还原用户出问题的场景。所以需要把程式部署到本地的Linux或WSL。

2024-08-13 22:57:59 236

原创 How to push a docker image to harbor on wsl?

【代码】How to push a docker image to harbor on wsl?

2024-08-13 22:29:29 300

原创 Run .NetCore App on Linux

【代码】Run .NetCore App on Linux。

2024-08-13 22:19:14 114

原创 Compact vdisk of wsl2

【代码】Compact vdisk of wsl2。

2024-08-13 22:15:09 164

原创 wsl2 move to disk D

【代码】wsl2 move to disk D。

2024-08-13 22:09:32 162

原创 How to run angular CICD on gitlab-runner of wsl?

前提文件1.test.ts},"test": {...,},(\d+(?:\.\d+)?)%7.Command。

2024-08-13 22:02:15 411

原创 Docker commands on Linux (WSL)

【代码】Docker commands on Linux (WSL)

2024-08-13 21:43:36 375

原创 CompreFace Study

此文旨在记录学习CompreFace的过程。提示:以下是本篇文章正文内容,下面案例可供参考例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。

2024-08-13 20:53:35 591

原创 移动光猫(UNG853H)获取超级帐号和密码

移动光猫(UNG853H)获取超级帐号和密码

2024-07-31 11:06:28 6419 2

原创 How to authenticate on mulitple IdentityServer4?

背景:客户为增加系统可靠性,在公司内部分别部署了多套IndentityServer4,分别使用不同的AP、DB server和域名,我分别叫它们:IDS-A和IDS-B,程式都相同。例如:HR业务系统使用IDS-A,RD业务系统使用IDS-B,当用户登录HR业务系统后,打开RD业务系统仍需要重新登录。在登录其中一台IDS时,呼叫另一台IDS的API,那么用户将获得IDS-A和IDS-B的cookie,即实现了SSO。注册IDS服务(如下代码)时,并没有指定 issuer,如果指定,业务系统都无需修改。

2024-06-13 09:57:13 300

原创 How to limit request by IP on nginx?

这个配置指令将为每个客户端 IP 地址创建一个限制区域,并将其与请求速率设置关联。当 Nginx 收到请求时,会根据客户端的 IP 地址和限制区域来判断请求是否超过了设置的速率限制。是一个 Nginx 配置指令,用于定义请求限制区域和速率限制。

2024-05-23 16:37:16 290 1

原创 How to start a docker container on Linux?

【代码】How to start a docker container on Linux?

2024-05-23 16:04:44 132

原创 How to record real IP of user on nginx?

由于没有WAF权限,所以在 docker上启动了两个container,一个模拟WAF(r-proxy),一个模拟应用(webapp)。1.r-proxy (nginx下的 default.config, /etc/nginx/conf.d/default.conf)docker上如何启动container,查看另一篇文章。2.webapp (无需设置)

2024-05-23 15:50:06 223

原创 EFCore sharing

EF Core

2023-09-07 11:56:29 237

原创 [Angular] Import TranslateModule in Angular 16

Angular 更新至V16版后,支援 standalone,故移除了 NgModule,而TranslateModule 又要在AppModule中 import,那该如何做呢?

2023-07-24 22:10:42 1532

原创 [Angular] 主从表结构,从表记录在主表固定栏位上呈现

主从表结构,有时为了方便数据呈现,在UI上不显示从表资料,那么需要动态把从表的资料加载到主表的固定栏位上。例如:主表是人员信息,从表是银行卡信息,一个人在同一家银行可能有多张银行卡,且一个人可能在多家银行开户。

2023-07-24 20:57:53 284

原创 [Angular] Export excel from table or json

【代码】[Angular] Export excel from table or json。

2023-07-24 19:30:24 1428

原创 [Angular] Custom a DatePipe to support special time zone conversion from user

【代码】[Angular] Custom a DatePipe to support special time zone conversion from user。

2023-07-24 13:06:18 922

原创 How to start a gitlab-runner in wsl?

Becasue I've installed the Ubuntu 18.04 LTS in my wsl, I click the icon to start.1.Start wls2 and docker 2.Download the gitlab-runner docker image3.Show docker images 4.Start the docker container (Docker run)5.Go to the gitlab-runner container

2022-06-14 09:29:32 416

原创 How to start the dotnetsdk docker image for test?

Following the last articleHow to run a Docker on Windows 10 with WSL?https://blog.youkuaiyun.com/wish366/article/details/125011890 1. Start wsl2 and docker 2.Download the dotnetsdk docker image 2.1 If it's showing the error: x509: certificate signed by

2022-06-08 21:01:44 231

原创 How to upload a UT coverage report of angular to SonarQube?

1. Preconditions: you've deployed a SonarQube service.2. In order to test the processes, I'll install the sonar-scanner in your local computer, it's located on the left of the image above. Becasue I use a Windows system, I get the package from the webs

2022-05-31 19:46:46 190

原创 nz-modal of ng-zorro supports browser height

If you know the setting, maybe it will very easy.Please see the code, we only set some css to support it.<nz-modal [nzStyle]="{height:'100vh', top:0}"> … </nz-modal>vh,是指CSS中相对长度单位,表示相对视口高度(Viewport Height),1vh = 1% * 视口高度。...

2022-05-31 18:55:08 511

原创 How to run a Docker on Windows 10 with WSL?

1.Install Linux on Windows with WSLPlease refer to the URL:Install WSL | Microsoft DocsWSL: windows subsystem for linuxYou must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.If not, please upgrade your Windo..

2022-05-27 23:54:52 265

原创 How to use a rancher CLI to run kubectl command?

How to use a rancher CLI to run kubectl command?

2022-05-20 14:25:22 238

原创 DB migration automatically with DB first (using PostgreSQL) in .NET 5

Please see the content first:DB first (using PostgreSQL) in .NET 5We knowed that our program's release path is from DEV to QAS to PRD.1. Create new objects in your DB of DEV, and export all sql scripts into a file.for exapmle: I have exported a file.

2022-05-12 13:39:59 192

原创 A CSP(Content Security Policy) issue on Web UI

A Content Security Policy issue

2022-03-26 16:00:02 1490

原创 DataTable 列转行

接上篇JSON to DataTable_Free Labor 的专栏-优快云博客1. Json fileappsettings.json "UploadData": [ { "item_a": "", "item_b": "", "item_c": "", "d1": "Jan-22", "d2": "Jan-22", "d3": "Jan-22", "d4": "Jan-22", "d5": "Jan-22", "d6": "Feb-22", https://blog.youkuaiyun.com/wish3

2022-03-01 12:10:21 872

原创 JSON to DataTable

1. Json fileappsettings.json "UploadData": [ { "item_a": "", "item_b": "", "item_c": "", "d1": "Jan-22", "d2": "Jan-22", "d3": "Jan-22", "d4": "Jan-22", "d5": "Jan-22", "d6": "Feb-22",

2022-03-01 11:52:43 606

原创 [NgZorroAntdMobileModule] 使用ImagePicker组件上传图片并压缩

直接上代码:app.module.tsimport { NgxImageCompressService } from 'ngx-image-compress';import { NgModule } from '@angular/core';import { BrowserModule } from '@angular/platform-browser';import { BrowserAnimationsModule } from '@angular/platform-browser

2022-01-06 19:11:07 869

原创 Using command to move file in Rancher

Rancher

2021-11-20 15:02:20 345

原创 DB first (using PostgreSQL) in .NET 5

1.Create a projectunder your solution, there is DbFirst.API2. Install EntityFrameworkCore, Microsoft.EntityFrameworkCore.Design,Microsoft.EntityFrameworkCore.Tools, Npgsql.EntityFrameworkCore.PostgreSQL by NuGet4. Installdotnet-efdotnet tool in...

2021-09-17 14:05:05 263

原创 Using NiFi to sync data between table to table

1.Add aExecuteSQL processor1.1 Add Controller Service (DBCPConnectionPool)1.2Input SQL select query2. Add aConvertAvroToJSONProcessor3. Add aConvertJSONToSQLProcessor4. Add aPutSQLProcessorAttach Ni...

2021-09-16 16:13:48 228

How to limit request by IP on nginx?

How to limit request by IP on nginx?

2024-05-23

A NiFi template

using NiFi to sync data between table to table.

2021-09-16

ThreadSample.7z

原创文章范例:多线程实现方法 (threadpool and async method) in .Net Core. https://blog.youkuaiyun.com/wish366/article/details/116754427?spm=1001.2014.3001.5501

2021-05-13

ASP.NET徹底研究

ASP.NET徹底研究,供高级程序员使用,新手勿用

2007-09-15

web.config加密工具

web.config加密工具,本人无偿共享,支持中国共享软件发展

2007-09-15

Web开发一些图示

Web开发一些图示,本人经典收藏

2007-09-15

空空如也

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

TA关注的人

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