摘要:
C程序DEMO 文件 main.c #define _GNU_SOURCE #include <execinfo.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> #include <st
阅读全文
posted @ 2025-03-13 10:42
microestc
阅读(28)
推荐(0)
摘要:
如果遇到离线安装后 打开报错 “文件系统错误12029” 说明安装方式错误, 没有配置license导致 下面是安装步骤: 1. 下载安装文件 windows10 下载 Microsoft.WindowsTerminal_1.21.3231.0_8wekyb3d8bbwe.msixbundle_Wi
阅读全文
posted @ 2024-11-26 08:51
microestc
阅读(2120)
推荐(0)
摘要:
代码 ({ //函数实现 函数名称; }) ``` #include #include #define action_lambda(function_body) \ ({void lambda_func function_body lambda_func;}) #define func_lambda
阅读全文
posted @ 2023-06-20 17:34
microestc
阅读(78)
推荐(0)
摘要:
Postgresql 使用Vscode开发指南 depends libraries sudo apt install -y libsystemd-dev libxml2-dev libssl-dev libicu-dev zlib1g-dev libreadline-dev pkg-config 编
阅读全文
posted @ 2023-01-31 16:05
microestc
阅读(1951)
推荐(0)
摘要:
BenchmarkWatch.NET 介绍 BenchmarkWatch.NET 是为 DOTNET 平台快速定位代码运行耗时所设计, 优化代码执行效率, 快速分析代码质量的分析工具. 支持版本: net45 netstandard2.0 netstandard2.1 net6.0 net7.0 安
阅读全文
posted @ 2022-11-10 15:56
microestc
阅读(88)
推荐(0)
摘要:
| 变量 | 说明 | | | | | $(SolutionDir) | 解决方案目录:即.sln文件所在路径 | | $(ProjectDir) | 项目根目录:, 即.vcxproj文件所在路径 | | $(Configuration) | 当前的编译配置名称,比如Debug,或Release
阅读全文
posted @ 2022-10-11 14:29
microestc
阅读(122)
推荐(0)
摘要:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage 作者:Alin_林林 https://www.bilibili.com/read/cv15406449 出处:bilibili
阅读全文
posted @ 2022-08-22 23:08
microestc
阅读(113)
推荐(0)
摘要:
头文件 #include <stdio.h> #include <stddef.h> #define bool int #define Bool bool #define BOOL bool #define BOOLEAN bool #define true (1) #define True (1)
阅读全文
posted @ 2022-08-08 09:45
microestc
阅读(100)
推荐(0)
摘要:
遇到的问题 error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute https://gcc.gnu.org/git/?p=gcc.git;a=c
阅读全文
posted @ 2022-06-15 15:15
microestc
阅读(550)
推荐(0)
摘要:
FFmpegs.NET This is a project that plans to build FFmpegs.NET dynamic libraries, it's call FFmpeg API on .NET Platform. 这是一个FFmpegs.NET的动态库,支持在 .NET 平
阅读全文
posted @ 2022-06-05 21:51
microestc
阅读(203)
推荐(0)
摘要:
Middlewares.NET 是一个开源 DOTNET 中间件管道,基于 .NET Standard 2.0 开发。 开源地址: https://github.com/microestc/Middlewares.NET Nuget地址:https://www.nuget.org/packages/
阅读全文
posted @ 2022-06-03 23:56
microestc
阅读(77)
推荐(0)
摘要:
下载地址 https://download.microsoft.com/download/7/5/0/750698D5-74F3-48B5-A2BE-8564F68890CC/Windows6.1-KB3004394-v2-x64.msu 原文地址 https://support.microsoft
阅读全文
posted @ 2022-05-27 10:15
microestc
阅读(1990)
推荐(0)
摘要:
1. 服务端 ip 10.1.1.66 Docker 容器 PS C:\Users\Mestc> ssh dock Linux Dock 5.4.34-1-pve #1 SMP PVE 5.4.34-2 (Thu, 07 May 2020 10:02:02 +0200) x86_64 The pro
阅读全文
posted @ 2022-05-12 16:25
microestc
阅读(588)
推荐(0)
摘要:
多个方案 1. 断网安装最小系统 2. 配置vpn网络 3. 配置国内软件源 都知道还用你说 😄 但是 为什么还是很慢 答案就是这篇文章的核心 《修改软件源中的安全源地址》 在安装步骤进入到选择安装的桌面环境和软件时, 键入 Ctrl+Alt+F2 可以看到从图形界面转到了tty命令终端, 键入
阅读全文
posted @ 2022-04-21 00:20
microestc
阅读(10404)
推荐(0)
摘要:
看图 代码 using System; namespace Cmd { class Program { public static void Main(params string[] args) { Loader.Read(); Loader.Native = null; GC.Collect();
阅读全文
posted @ 2022-04-11 17:31
microestc
阅读(835)
推荐(0)
摘要:
请注意 RuntimeInformation 支持 .netstandard2.0 以上的版本 using System; using System.Linq; using System.Runtime.InteropServices; Console.WriteLine(Environment.O
阅读全文
posted @ 2022-03-31 16:00
microestc
阅读(149)
推荐(1)
摘要:
例如 select into 当 赋值 > 0 或者 = 0 抛出异常 DECLARE _name TEXT; _sql TEXT; BEGIN LOOP BEGIN SELECT VIEW_NAME INTO _name FROM (SELECT TOP 1 CONCAT(NS.NSPNAME,
阅读全文
posted @ 2022-03-02 16:33
microestc
阅读(162)
推荐(0)
摘要:
下载 依赖软件 下载页链接 https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html wget https://download.oracle.com/otn_software/li
阅读全文
posted @ 2022-02-22 10:51
microestc
阅读(500)
推荐(0)
摘要:
Append 追加不换行 AppendLine 追加并换行, 注意 → 先追加再换行.
阅读全文
posted @ 2022-02-08 19:04
microestc
阅读(1077)
推荐(0)
摘要:
向 hexstring 转 var bytes = Encoding.ASCII.GetBytes("adjdkfk"); var hex = Convert.ToHexString(bytes); var bs = Convert.FromHexString(hex); 向 其它 base64 等
阅读全文
posted @ 2021-11-06 22:38
microestc
阅读(1574)
推荐(0)
摘要:
直接上代码比较好 using System; using System.Collections.Generic; using System.Threading.Tasks; namespace src { public class Program { public static async Task
阅读全文
posted @ 2021-09-27 10:27
microestc
阅读(65)
推荐(0)
摘要:
第一步 在单元测试项目添加包 JunitXml.TestLogger dotnet add package JunitXml.TestLogger 第二步 dotnet test --logger:junit dotnet test --logger:"junit;LogFilePath=xxx.x
阅读全文
posted @ 2021-07-28 18:19
microestc
阅读(235)
推荐(0)
摘要:
特别是在测试方案中,一种常见模式使用 HttpClient 来连接到证书不应验证的服务器,例如自签名证书。 通常 HttpClientHandler 通过将属性设置为始终返回的委托来实现此目的 ServerCertificateCustomValidationCallback True ; 这表示证
阅读全文
posted @ 2021-07-23 16:19
microestc
阅读(519)
推荐(2)
摘要:
Unix time 表示自1970年1月1日01T00:00: 00Z (1970:00:00:00:00:,上午 12:00 AM UTC) 的秒数。 它不会考虑闰秒的时间。 此方法首先将当前实例转换为 UTC,然后再返回其 Unix 时间。 对于 1970-01-01T00:00:00Z 之前的
阅读全文
posted @ 2021-07-22 22:40
microestc
阅读(1017)
推荐(0)
摘要:
[TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { // var isIp = IPAddress.TryParse("220.181.38.150", out var _); var addre
阅读全文
posted @ 2021-07-22 22:04
microestc
阅读(369)
推荐(0)
摘要:
using System; using System.Threading; namespace Cmd { class Program { static void Main(string[] args) { var asynclocal = new AsyncLocal<int>(); var th
阅读全文
posted @ 2021-07-08 00:49
microestc
阅读(119)
推荐(0)
摘要:
xx.csproj true 允许不安全代码和指针 <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net5.0</TargetFramework> <Al
阅读全文
posted @ 2021-07-07 00:43
microestc
阅读(82)
推荐(0)
摘要:
先看代码 using System; using System.Collections.Generic; using System.Threading.Tasks; namespace AsyncStream { class Program { static async Task Main(stri
阅读全文
posted @ 2021-07-02 00:15
microestc
阅读(88)
推荐(0)
摘要:
很多时候需要调用其它语言生成的动态库,那么 c# 如何调用动态库呢 下面简单介绍 C# 调用 c 语言生成的动态库 func.c int add(int num1,int num2) { return num1 + num2; } 编译生成动态库文件 gcc -fPIC -shared func.c
阅读全文
posted @ 2021-06-30 16:46
microestc
阅读(2620)
推荐(0)
摘要:
nmap -sS 10.1.203.2-253 -p 22 Starting Nmap 7.70 ( https://nmap.org ) at 2021-06-29 10:03 CST Nmap scan report for 10.1.203.2 Host is up (-0.087s late
阅读全文
posted @ 2021-06-29 10:09
microestc
阅读(985)
推荐(0)
摘要:
场景: 一台服务上部署了n多个网站,假设 有 web1 web2 ,服务器的IP 是 192.168.1.10 ,web1 的访问地址 192.168.1.10:8080 ,web2 的访问地址 192.168.1.10:8081, 有一个域名 myhost.com , 当然你会绑定 IP myho
阅读全文
posted @ 2021-05-26 18:18
microestc
阅读(1258)
推荐(0)
摘要:
1. 下载镜像 docker pull vimagick/pptp:latest 2. 运行 docker run -it -d --privileged --network="host" -e SERVER=ip -e TUNNEL=vpn-name -e USERNAME=name -e PAS
阅读全文
posted @ 2021-05-26 15:45
microestc
阅读(2038)
推荐(0)
摘要:
1. 安装 apt install pptp-linux 2. 连接 pptpsetup --create vpn-name --server ip --username name --password passwd --encrypt --start 3. 断开连接 poff vpn-name 4
阅读全文
posted @ 2021-05-26 15:24
microestc
阅读(1294)
推荐(0)
摘要:
1. 拉取镜像 docker pull coredns/coredns 2. 创建配置文件 mkdir -p /etc/coredns nano /etc/coredns/corefile .:53 { hosts { 10.0.0.1 my.host.com // 你域名和ip fallthrou
阅读全文
posted @ 2021-05-26 10:55
microestc
阅读(2766)
推荐(0)
摘要:
1. 配置安装源 wget https://dev.mysql.com/get/mysql-apt-config_0.8.17-1_all.deb sudo dpkg -i mysql-apt-config_0.8.17-1_all.deb 2. 安装 sudo apt install mysql-
阅读全文
posted @ 2021-05-21 12:56
microestc
阅读(1090)
推荐(0)
摘要:
Installing fonts is important for those who are multilingual or want to spice up their screen. Many websites use different fonts and without having to
阅读全文
posted @ 2021-05-20 10:58
microestc
阅读(2604)
推荐(0)
摘要:
Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with n
阅读全文
posted @ 2021-05-15 17:46
microestc
阅读(2950)
推荐(2)
摘要:
问题一 .csproj 项目包含静态文件,构建拷贝到输出文件目录 比如我想把项目根目录下 wwwroot 下的所有文件拷贝到输出目录 <ItemGroup> <None Remove="wwwroot\**" /> </ItemGroup> <ItemGroup> <Content Include=
阅读全文
posted @ 2021-05-13 23:59
microestc
阅读(602)
推荐(0)
摘要:
环境: 需要python 环境 下载 wget https://d3fyopse48vfpi.cloudfront.net/latest/redisinsight-linux64 配置运行 chmod +x redisinsight-linux64 mkdir redisinsight export
阅读全文
posted @ 2021-05-06 16:19
microestc
阅读(1596)
推荐(0)
摘要:
需要安装的扩展 C/C++ 如果是远程 Linux上开发还需要安装 Remote Development 创建工作目录后,代码远程克隆... 省略.. 创建项目配置文件,主要的作用是代码智能提示,错误分析等等... 按F1,输入 C/C++ 选择 编辑配置UI或者json 这个操作会生成 .vsco
阅读全文
posted @ 2021-04-08 16:56
microestc
阅读(2744)
推荐(0)