首页
分享你我
行动起来,活在当下
累计撰写
121
篇文章
累计创建
13
个标签
累计收到
0
条评论
栏目
首页
目 录
CONTENT
最新文章
golang使用koanf读取yaml文件支持读取默认值
// Cfg 是全局配置 var Cfg *models.Config func InitConfig() { // 创建 Koanf 实例 k := koanf.New(".") proxy := file.Provider("conf/proxy.yaml") // 加载第一个配置文件
2024-12-23
47
0
0
nginx或caddy反代套了cf的域名
Nginx配置 在Nginx配置文件中添加以下段内容(将www.example.com更换为目标地址) # 反向代理配置 location / { # 将所有请求转发到后端服务器 https://www.example.com:443 proxy_pass ht
2024-12-23
24
0
0
nodejs 实现一个插件式框架,支持热插热拔
目录结构 project/ ├── plugins/ │ ├── shopSignIn.js // 示例插件 ├── PluginFramework.js // 插件框架 ├── HotReloadPluginFramework.js // 插件框架 ├── PluginParser.js // 规
2024-12-16
45
0
0
golang实现http代理服务
package main import ( "crypto/tls" "fmt" "io" "log" "net" "net/http" "net/http/httputil" "net/url" "strings" "time" ) // 默认目标连接超时时间 const
2024-11-30
51
0
0
某东滑动算法
import random import matplotlib.pyplot as plt import numpy as np class GTrace(object): def __init__(self): self.__pos_x = [] sel
2024-11-13
55
0
0
反向代理神器:Nginx Proxy Manager 反代缺少参数处理
第一步 在Nginx中配置一个站点 这里需要填写外网访问的域名、内网代理ip以及端口信息
2024-08-06
25
0
0
C# 使用NPOI手搓excel转html
/// <summary> /// excel转html /// </summary> public class ExcelToHtml { /// <summary> /// excel转html /// </summary> /// <param name="in
2024-08-06
47
0
0
技术分享
.net 通过npoi和excel模版标识实现复杂的报表导出
public class ExcelExporter { /// <summary> /// 报表保存路径 /// </summary> protected static string ReportSavePath =
2024-08-05
17
0
0
C# Json转换DataTable
public static class JsonToDataTableConverter { /// <summary> /// Json转换为DataTable /// </summary> /// <param name="json"></param> p
2024-08-05
62
0
0
docker 部署redis 并以配置文件方式启动
<p>先创建redis 数据目录和配置文件目录</p> <h5>创建数据目录</h5> <pre><code>mkdir -p /root/redis/data</code></pre> <h5>创建配置文件目录</h5> <pre><code>mkdir -p /root/redis/conf</code></pre> <h5>创建配置文件</h5> <pre><code>vim redis.conf</code></pre> <pre><code class="language-bash"> # Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argument: # # ./redis-server /path/to/redis.conf # Note on units: when memory size is needed, it is possible to specify # it in the usual form of 1k 5GB 4M and so forth: # # 1k =<!--autointro--></code></pre><!--autointro--><!--111-->
2023-06-07
39
0
0
技术分享
1
2
3
4
5
...
13