Loading

摘要: 转载文章: Unit Testing with ILogger An effective logging system is essential for application monitoring and analysis. .NET Core supports a logging API tha 阅读全文
posted @ 2020-12-28 18:04 microestc 阅读(440) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1612020/202012/1612020-20201222172119788-368795237.png) ![](https://img2020.cnblogs.com/blog/1612020/202012/1612020-20201222172134006-913879452.png) 阅读全文
posted @ 2020-12-22 17:22 microestc 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 神通数据库打包到docker 镜像 神通数据库Docker 镜像 V7.0.8 ccr.ccs.tencentyun.com/images.sz/oscar:v7.0.8 镜像包仅 206M 新步骤 (除了1之外,以下任何一个都可以,根据需要选择) 注意须知 : 此镜像建立在ubuntu:18.04 阅读全文
posted @ 2020-12-05 22:56 microestc 阅读(2126) 评论(2) 推荐(1) 编辑
摘要: 查看系统概要信息 docker system df 查看系统详细信息 docker system df -v 清理系统缓存数据 docker system prune --volumes WARNING! This will remove: all stopped containers all ne 阅读全文
posted @ 2020-12-05 21:14 microestc 阅读(75) 评论(0) 推荐(0) 编辑
摘要: BlockingCollection 类 实现 IProducerConsumerCollection 的线程安全集合提供阻塞和限制功能。 我的理解是 生产者向集合内按照队列的形式添加元素,读取按照队列的方式读取,当集合中没有了元素,读取就会阻塞线程(GetConsumingEnumerable() 阅读全文
posted @ 2020-11-15 18:34 microestc 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 创建本机目录(保存gitlab数据) mkdir -p /data/gitlab 拉取 GitLab-CE docker镜像 docker pull gitlab/gitlab-ce 运行 gitlab 容器 export GITLAB_HOME=/data/gitlab sudo docker r 阅读全文
posted @ 2020-10-29 20:52 microestc 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 国产数据库 神舟通用 阅读全文
posted @ 2020-10-23 15:05 microestc 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 概述 Security Context(安全上下文)用来限制容器对宿主节点的可访问范围,以避免容器非法操作宿主节点的系统级别的内容,使得节点的系统或者节点上其他容器组受到影响。 Security Context可以按照如下几种方式设定: 访问权限控制:是否可以访问某个对象(例如文件)是基于 user 阅读全文
posted @ 2020-07-29 16:17 microestc 阅读(2738) 评论(0) 推荐(0) 编辑
摘要: A security context defines privilege and access control settings for a Pod or Container. Security context settings include, but are not limited to: Di 阅读全文
posted @ 2020-07-29 15:27 microestc 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 类型ExternalName 类型为 ExternalName 的服务将服务映射到 DNS 名称,而不是典型的选择器,例如 my-service 或者 cassandra。 您可以使用 spec.externalName 参数指定这些服务。 例如,以下 Service 定义将 prod 名称空间中的 阅读全文
posted @ 2020-07-06 15:34 microestc 阅读(12006) 评论(0) 推荐(1) 编辑
摘要: 转载自 https://www.howtoing.com/high-availability-storage-with-glusterfs-on-ubuntu-1804 已验证此教程可用,并作少许修改 Glusterfs是一个可扩展的网络文件系统,具有扩展到几PB的能力并可处理数千个客户端。 它是一 阅读全文
posted @ 2020-07-04 22:31 microestc 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: 使用说明 1.安装 Oscar EFCore提供程序包 Visual Studio 通过 NuGet 包管理器添加 打开 NuGet 包管理器,在 浏览器 选项的搜索框中输入 ShenTong.EntityFrameworkCore.Oscar 并勾选 包括预发行版,搜索并安装。 当前最新 1.0. 阅读全文
posted @ 2020-07-02 12:58 microestc 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 一. 服务端 安装 nfs server $ sudo apt-get update $ sudo apt-get install -y nfs-kernel-server 二. 创建目录,配置 IP 共享目录绑定 $ mkdir -p /data/nfs $ vim /etc/exports 追加 阅读全文
posted @ 2020-07-02 10:58 microestc 阅读(3124) 评论(0) 推荐(0) 编辑
摘要: 神通数据库DOCKER镜像 v7.0.8 修正 - microestc - 博客园 (cnblogs.com) 说明,该镜像默认创建一个数据库 OSRDB ,用户名 SYSDBA ,默认密码 szoscar55 (可以通过 环境变量修改),端口为2003 现功能只有这么多,如需 改端口或者新建其它数 阅读全文
posted @ 2020-07-01 18:19 microestc 阅读(2310) 评论(1) 推荐(0) 编辑
摘要: kubectl get nodes kubectl taint node xxx-nodename node-role.kubernetes.io/master- #将 Master 也当作 Node 使用 kubectl taint node xxx-nodename node-role.kube 阅读全文
posted @ 2020-06-30 15:52 microestc 阅读(3953) 评论(0) 推荐(0) 编辑
摘要: 1.安装 WSL2 2.安装 Docker Desktop 3.安装 Kind curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.8.1/kind-$(uname)-amd64 chmod +x 阅读全文
posted @ 2020-06-29 00:30 microestc 阅读(960) 评论(0) 推荐(0) 编辑
摘要: ubuntu2004.exe config --default-user root Ubuntu 18.04 LTS ubuntu1804.exe config --default-user root debian debian.exe config --default-user root 阅读全文
posted @ 2020-06-25 09:33 microestc 阅读(5747) 评论(0) 推荐(1) 编辑
摘要: 原文章地址:https://zhuanlan.zhihu.com/p/104951736 使用kubectl部署 1,部署ConfigMap 编写gemfield-mysql-configmap.yaml,内容如下 apiVersion: v1 kind: ConfigMap metadata: n 阅读全文
posted @ 2020-06-24 20:06 microestc 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 转载自 https://my.oschina.net/wangyunlong/blog/3059386 1.创建存储目录: mkdir -p /server/yaml/app/mysql;cd /server/yaml/app/mysql 2.创建pv cat mysql.pv.yaml apiVe 阅读全文
posted @ 2020-06-24 20:05 microestc 阅读(2713) 评论(0) 推荐(0) 编辑
摘要: 创建两个文件 images.properties k8s.gcr.io/pause:3.1=registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.1 k8s.gcr.io/kube-controller-manager:v1.18.3 阅读全文
posted @ 2020-06-15 14:59 microestc 阅读(2717) 评论(0) 推荐(0) 编辑
摘要: ubuntu config --default-user root debian config --default-user root 阅读全文
posted @ 2020-06-04 10:39 microestc 阅读(5774) 评论(0) 推荐(0) 编辑
摘要: ###直接帖代码 .csproj <PropertyGroup> <PackageId>ShenTong.EntityFrameworkCore.Oscar</PackageId> <PackageVersion>1.0.0-alpha-1.0</PackageVersion> <Authors>m 阅读全文
posted @ 2020-05-26 10:22 microestc 阅读(1752) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-09 00:01 microestc 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: docker volume create myvol docker volume inspect myvol [ { "CreatedAt": "2020-04-19T01:36:22+08:00", "Driver": "local", "Labels": {}, "Mountpoint": "/ 阅读全文
posted @ 2020-04-19 12:51 microestc 阅读(1814) 评论(0) 推荐(0) 编辑
摘要: services.AddGrpcClient<UserFinder.UserFinderClient>(options => { options.Address = new Uri(configuration.GetValue<string>("GrpcUrls:UserFind")); }).Co 阅读全文
posted @ 2020-03-20 00:24 microestc 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 例如 docker pull mcr.microsoft.com/dotnet/core/sdk:3.1-buster 改为 docker pull mcr.azk8s.cn/dotnet/core/sdk:3.1-buster 将 mcr.microsoft.com 改为 mcr.azk8s.cn 阅读全文
posted @ 2020-03-09 16:21 microestc 阅读(2811) 评论(1) 推荐(0) 编辑
摘要: Today, we’re announcing that the next release after .NET Core 3.0 will be .NET 5. This will be the next big release in the .NET family. There will be 阅读全文
posted @ 2020-02-28 14:43 microestc 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 方案一: sudo vim /etc/sysctl.conf 增加下面内容(环境变量) fs.inotify.max_user_watches = 1638400 fs.inotify.max_user_instances = 1638400 save the file sudo sysctl -p 阅读全文
posted @ 2020-01-09 13:39 microestc 阅读(1453) 评论(1) 推荐(0) 编辑
摘要: 原文链接: https://github.com/OmniSharp/omnisharp-vscode/wiki/Attaching-to-remote-processes The C# extension supports attaching to processes running on rem 阅读全文
posted @ 2020-01-07 16:09 microestc 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 5 namespace Microestc.PaginatedList 6 { 7 public class PaginatedList<TResul 阅读全文
posted @ 2019-12-28 23:34 microestc 阅读(524) 评论(0) 推荐(0) 编辑
摘要: public static IServiceCollection AddDbContext<TContextService, TContextImplementation>([JetBrains.Annotations.NotNull] this IServiceCollection service 阅读全文
posted @ 2019-11-28 00:59 microestc 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: 先贴一个代码 class Program { static void Main(string[] args) { var channels = Channel.CreateBounded<Mail>(2); var mail1 = new Mail(1, $"Message #{1}"); var 阅读全文
posted @ 2019-11-25 19:29 microestc 阅读(2702) 评论(1) 推荐(2) 编辑
摘要: 解密加密源码 1 using System; 2 using System.Security.Cryptography; 3 using System.Text; 4 5 namespace Wechat 6 { 7 public static class Security 8 { 9 public 阅读全文
posted @ 2019-11-10 00:30 microestc 阅读(8557) 评论(2) 推荐(5) 编辑
摘要: ccr.ccs.tencentyun.com/mcr.microsoft.com/dotnetcoresdk = mcr.microsoft.com/dotnet/core/sdk => 3.0-buster ; 2.2-stretch ccr.ccs.tencentyun.com/mcr.micr 阅读全文
posted @ 2019-10-21 18:09 microestc 阅读(556) 评论(0) 推荐(0) 编辑
摘要: convert -verbose -density 300 -quality 50 -background white -alpha remove 0.pdf 0.jpg magick convert -verbose -density 300 -quality 50 -resize 720 -background white -alpha remove 0.pdf 0.jpg 阅读全文
posted @ 2019-10-18 12:25 microestc 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 在项目.csproj文件下添加 <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.0</TargetFramework> <PublishSingleFile>true</PublishSingleFi 阅读全文
posted @ 2019-10-09 12:06 microestc 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: Swashbuckle.AspNetCore Swagger tooling for API's built with ASP.NET Core. Generate beautiful API documentation, including a UI to explore and test ope 阅读全文
posted @ 2019-10-03 16:32 microestc 阅读(839) 评论(0) 推荐(0) 编辑
摘要: 安装中字体, 在windows 下打包 C:/windows/fonts 字体 安装 Jre 环境 因为 libreoffice 需要 jre 这里用的是 jre-8u221-linux-x64.tar.gz 下载链接 https://sdlc-esd.oracle.com/ESD6/JSCDL/j 阅读全文
posted @ 2019-09-27 15:48 microestc 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: 1 root@raspberrypi:~# wget https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/containerd.io_1.2.6-3_armhf.deb 2 --2019-09-04 20:4 阅读全文
posted @ 2019-09-04 20:57 microestc 阅读(1796) 评论(3) 推荐(0) 编辑
摘要: 将 pdf 转一张图片 多张图片不要加 -append 如果是水平横向拼接 +append 信息日志 -verbose 阅读全文
posted @ 2019-08-24 02:34 microestc 阅读(2113) 评论(0) 推荐(0) 编辑