自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (4)
  • 收藏
  • 关注

原创 批量将ANSI文件转UTF-8

【代码】批量将ANSI文件转UTF-8。

2024-04-06 04:46:45 159

原创 Kubernetes(K8s)部署nfs服务

1.编写yaml文件nfs-app-deployment.yamlapiVersion: apps/v1kind: Deploymentmetadata: labels: run: nfs-app name: nfs-app namespace: cbfspec: replicas: 1 selector: matchLabels: run: nfs-app strategy: rollingUpdate: maxSurge

2021-10-03 23:19:04 324

原创 windows搭建Kubernetes(K8s)

1.安装kubectl 1.下载kubectl.exe https://minikube.sigs.k8s.io/docs/start/ https://dl.k8s.io/release/v1.22.0/bin/windows/amd64/kubectl.exe # c:\Users\admin\Desktop\temp\k8s\kubectl.exe 2.添加环境变量 Path: c:\Users\admin\Desktop\temp\k8s2.安装minik

2021-10-03 18:20:32 480

原创 vs2015 + opencv 配置

1.vs2015配置1.解压opencv-3.4.1-vc14_vc15.exe到c:\2.vs2015选x643.包含目录 c:\opencv\build\include c:\opencv\build\include\opencv c:\opencv\build\include\opencv24.库文件 c:\opencv\build\x64\vc14\lib5.输入...

2020-03-17 16:12:23 162

原创 [C++]使用opencv获取视频帧

extractFrames.cpp/**** this file is used to extract frames from video* Copyright (c) 2017, Sanjun Liu, email: [email protected]* All rights reserved*/#include <opencv2/core/core.hpp>#i...

2020-03-17 16:05:52 4189

原创 zlib库的使用,可以压缩和解压文件夹

zipHelper.h#pragma once#ifndef ZIP_H#define ZIP_H#include <iostream>#include <fstream>#include <string>#include <io.h>#include <direct.h>#include "zlib\unzip.h...

2020-03-15 23:16:03 4815 1

原创 C++修改系统环境变量

#include <iostream>#include <Windows.h>using namespace std;/* 0: ok-1: error*/int addEnvPath(string envKey, string envValue) { HKEY hKey; const char *key = "Environment"; DWOR...

2020-03-14 17:01:10 2351 3

原创 gnupg使用示例

0.安装# Debian / Ubuntu 环境sudo apt-get install gnupg# Fedora 环境yum install gnupg# windows环境https://files.gpg4win.org/gpg4win-3.1.11.exe1.生成新的密钥对gpg --gen-key2.生成吊销证书gpg --output revoke....

2020-03-10 02:26:01 457

原创 wrap_function

#include <iostream>template <typename T> class funct_wrap0{public: funct_wrap0(T (&f_)()):f(f_){} T operator()() const { return f(); }private: T (&f)();};templa...

2020-03-01 14:40:34 1489

原创 is_function

#include <iostream>template<typename T>struct is_function { static const bool value = false;};template<typename T>struct is_function<T(void)> { static const bool...

2020-03-01 13:26:21 402

原创 abs,max,min

#include <iostream>template <long x, typename enabled=void>struct tabs { const static long value = x; };template <long x>struct tabs<x,typename enable_if_c<(x < 0)>...

2020-03-01 10:25:29 187

原创 is_unsigned_type,is_unsigned_type,copy_functor

#include <iostream>template <typename T>struct is_unsigned_type{ static const bool value = static_cast<T>((static_cast<T>(0)-static_cast<T>(1))) > 0;};...

2020-03-01 09:53:30 181

原创 if both of its arguments are actually references to the same object

#include <iostream>template <bool B, class T = void>struct enable_if_c { typedef T type;};template <class T>struct enable_if_c<false, T> {};template <class Con...

2020-03-01 09:34:47 107

原创 if one type is convertible into another type.

#include <iostream>template <typename from, typename to>struct is_convertible{ struct yes_type { char a; }; struct no_type { yes_type a[2]; }; static const from& from_h...

2020-02-29 22:55:33 88

原创 the square root of value

//the square root of valueinline unsigned long square_root(unsigned long value){ unsigned long x; if (value < 3) return value; else if (value < 4096) // 12 x = 45...

2020-02-29 22:17:28 311

原创 安装CMake

$ cmake_version="3.5.2"$ target_path=$HOME/Deps/cmake/${cmake_version}$ cmake_url="https://cmake.org/files/v${cmake_version%.*}/cmake-${cmake_version}-Linux-x86_64.tar.gz"$ mkdir -p "${target_path...

2020-02-20 18:08:06 101

原创 SQL Server + asp.net 数据库连接配置

Default.asp.csusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.W

2015-11-16 13:47:53 307

批量将ANSI文件转UTF-8

批量将ANSI文件转UTF-8

2024-04-06

zlib库的使用,可以压缩和解压文件夹.zip

zlib库的使用,可以压缩和解压文件夹。 压缩: CreateDirFromZip("test\\example2", "test\\example.zip"); 解压: CreateZipFromDir("test\\example", "test\\example.zip");

2020-03-15

02.win_bin.rar

gpg window可执行文件,用于加密解密文件,安全不可破解,精简版,以命令行方式运行。 blat.exe gpg.exe gpgkeys_curl.exe gpgkeys_finger.exe gpgkeys_hkp.exe gpgkeys_ldap.exe gpgsplit.exe gpgv.exe iconv.dll 示例: 文件加密: gpg --output gpg.exe.gpg --encrypt --recipient test gpg.exe 文件解密: gpg --output gpg.exe --decrypt gpg.exe.gpg 更多使用例子: 1.生成新的密钥对 gpg --gen-key 2.生成吊销证书 gpg --output revoke.asc --gen-revoke mykey 删除某个密钥 删除私钥: gpg --delete-secret-keys test 删除公钥: gpg --delete-key test 3.交换钥匙(列出公用密钥环上的密钥) gpg --list-keys gpg --list-secret-keys 4.导出私钥公钥 二进制: gpg --output public-key --export [email protected] gpg --output private-key --export-secret-keys [email protected] ASCII: gpg --armor --output public-key.txt --export [email protected] gpg --armor --output private-key.txt --export-secret-keys [email protected] 5.导入公钥私钥 gpg --import private-key.txt gpg --import public-key.txt 验证: gpg --edit-key [email protected] # gpg> fpr # gpg> sign # gpg> check 6.用公钥加密和解密文件 gpg --output doc.gpg --encrypt --recipient [email protected] doc gpg --output doc --decrypt doc.gpg gpg --keyserver hkp://pgp.mit.edu --search-keys [email protected] gpg --output doc.gpg --encrypt --recipient [email protected] doc gpg --output doc --decrypt doc.gpg 7.不使用公钥加密 gpg --output doc.gpg --symmetric doc gpg --output doc --decrypt doc.gpg 8.签名(会生成doc.sig文件) gpg --output doc.sig --sign doc gpg --output doc --decrypt doc.sig 9.签名清晰的文件(会生成doc.asc文件) gpg --clearsign doc 10.分离的签名 gpg --output doc.sig --detach-sig doc gpg --verify doc.sig doc

2020-03-10

private_gpg.rar

private_gpg.rar

2020-03-10

nsq-1.0.0-compat.windows-amd64.go1.8.tar.gz

nsq-1.0.0-compat.windows-amd64.go1.8.tar.gz

2017-04-16

空空如也

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

TA关注的人

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