摘要: ubuntu config --default-user root https://gitee.com/yzpopulation/ubuntuWSLInit/raw/master/sh/wsl_ubuntu_setup.sh cp /etc/apt/sources.list /etc/apt/sou 阅读全文
posted @ 2021-03-03 22:21 月渊 阅读(454) 评论(0) 推荐(0)
摘要: CREATE FUNCTION clean(strs VARCHAR(255)) RETURNS VARCHAR(255) BEGIN return REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REP 阅读全文
posted @ 2020-12-08 17:23 月渊 阅读(648) 评论(0) 推荐(0)
摘要: ``` csharp //过滤空白字符,替换无效路径文件名 public static string Escape(string id) { if (string.IsNullOrEmpty(id)) return string.Empty; var invalidChars = Path.GetI 阅读全文
posted @ 2020-12-04 13:59 月渊 阅读(1194) 评论(0) 推荐(0)
摘要: docker pull cincan/volatility docker run --rm -it cincan/volatility --info docker run --rm -v /samples:/samples -it cincan/volatility imageinfo -f /sa 阅读全文
posted @ 2020-11-23 19:17 月渊 阅读(140) 评论(0) 推荐(0)
摘要: static async Task Main(string[] args) { var files = Directory.GetFiles("C:\\Users\\admin\\Desktop\\新建文件夹"); foreach (string file in files) { var src = 阅读全文
posted @ 2020-11-17 19:50 月渊 阅读(291) 评论(0) 推荐(0)
摘要: docker run -itd --privileged -p 20010:22 --name="centos" centos /usr/sbin/init docker run --name mariadb --privileged=true -p 3306:3306 -e MYSQL_ROOT_ 阅读全文
posted @ 2020-10-09 16:05 月渊 阅读(284) 评论(0) 推荐(0)
摘要: www.github.com.cnpmjs.org 阅读全文
posted @ 2020-08-20 11:09 月渊 阅读(258) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-08-11 02:00 月渊 阅读(1) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-08-11 00:48 月渊 阅读(0) 评论(0) 推荐(0)
摘要: nginx public class NginxLogAll { [PrimaryKey,AutoIncrement] public long Id { get; set; } public string Ip { get; set; } public string User { get; set; 阅读全文
posted @ 2020-07-31 10:24 月渊 阅读(161) 评论(0) 推荐(0)
摘要: proxy sps -S socks -T tcp -P 127.0.0.1:8080 -t tcp -p :1080 --nologproxy sps -S http -T tcp -P 127.0.0.1:8080 -t tcp -p :1080 --nologproxy sps -S http 阅读全文
posted @ 2020-07-26 22:22 月渊 阅读(201) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-12 22:31 月渊 阅读(2) 评论(0) 推荐(0)
摘要: public class Sm4Encryptor { public byte[] KeyBytes = new byte[16]; private Sm4Encryptor() { cipher = new PaddedBufferedBlockCipher(new SM4Engine()); } 阅读全文
posted @ 2020-05-11 17:38 月渊 阅读(3766) 评论(0) 推荐(0)
摘要: /// /// 国密SM2算法(ECC算法)加密器 /// 签名部分采用SM3算法进行摘要计算 /// public class Sm2Encryptor { /// /// SM2算法默认用户ID,目前开放平台不会使用非默认用户ID /// public const string DefaultU 阅读全文
posted @ 2020-05-09 23:54 月渊 阅读(11696) 评论(2) 推荐(0)
摘要: FROM centos maintainer Chris Collins <collins.christopher@gmail.com> LABEL Discription="基于centos的mongodb镜像" version="1.0" RUN mkdir -p /data/usr/mongo 阅读全文
posted @ 2020-04-13 23:59 月渊 阅读(200) 评论(0) 推荐(0)
摘要: input { stdin{ } } filter { grok { match => { "message" => ["%{IPORHOST:[nginx][access][remote_ip]} - %{DATA:[nginx][access][user_name]} \[%{HTTPDATE: 阅读全文
posted @ 2020-03-06 21:27 月渊 阅读(542) 评论(0) 推荐(0)
摘要: AsyncEnumerator版 BlockingCollection<string> idsToProcess = new BlockingCollection<string>(); idsToProcess.Add("a"); idsToProcess.Add("b"); idsToProces 阅读全文
posted @ 2020-03-02 23:10 月渊 阅读(299) 评论(0) 推荐(0)
摘要: 删除数据库 DROP DATABASE db_name WITH (FORCE) #!/bin/bash echo "write repo" sudo cat>/etc/yum.repos.d/pgdg-redhat-12.repo<<EOF [pgdg12] name=pgdg12 baseurl 阅读全文
posted @ 2020-02-02 00:20 月渊 阅读(584) 评论(0) 推荐(0)
摘要: public static async Task ZipAsync(string[] srcFiles,string writeFile,int size= 1024 * 1024 * 32, CancellationToken token=default) { try { FileS... 阅读全文
posted @ 2019-08-05 21:01 月渊 阅读(1409) 评论(0) 推荐(0)
摘要: 今天刚刚到货Yubikey 5 美亚 直邮 ,易客满国际,国内居然是顺丰配送,点个赞。 必备的控件 https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-1.1.1-win64.exe https:/ 阅读全文
posted @ 2019-04-05 00:06 月渊 阅读(2478) 评论(0) 推荐(0)