首页
网络资源
技术分享
云资源
分享你我
行动起来,活在当下
累计撰写
106
篇文章
累计创建
13
个标签
累计收到
0
条评论
栏目
首页
网络资源
技术分享
云资源
目 录
CONTENT
最新文章
反向代理神器:Nginx Proxy Manager 反代缺少参数处理
第一步 在Nginx中配置一个站点 这里需要填写外网访问的域名、内网代理ip以及端口信息
2024-08-06
4
0
0
C# 使用NPOI手搓excel转html
/// <summary> /// excel转html /// </summary> public class ExcelToHtml { /// <summary> /// excel转html /// </summary> /// <param name="in
2024-08-06
4
0
0
技术分享
.net 通过npoi和excel模版标识实现复杂的报表导出
public class ExcelExporter { /// <summary> /// 报表保存路径 /// </summary> protected static string ReportSavePath =
2024-08-05
4
0
0
C# Json转换DataTable
public static class JsonToDataTableConverter { /// <summary> /// Json转换为DataTable /// </summary> /// <param name="json"></param> p
2024-08-05
9
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
6
0
0
技术分享
uniapp 使用sqlite 保存数据封装使用
<p>```<br>class Sqlite {</p> <p> #privatedbName = ‘’;</p> <p> #privatePath = ‘’;<br> constructor(dbName, path = ‘’) {<br> this.#privatedbName = dbName;<br> this.#privatePath = path;<br> console.log(this.#privatedbName, this.#privatePath);<br> }<br> // 监听数据是否打开<br> isOpenDB() {<br> let dbName = this.#privatedbName;<br> let dbPath = this.#privatePath || <code>_doc/${dbName}.db</code>;<br> //数据库打开了就返回true,否则返回false<br> let isopen = plus.sqlite.isOpenDatabase({<br> name: dbName,<br> path: dbPath,<br> });<br> return isopen;<br> }</p> <p> // 创建数据库/打开数据库<br> openDB() {<br> return new Promise((resolve, reject) =<!--autointro--></p> <!--110-->
2023-02-27
4
0
0
技术分享
Open-IM-SDK-Web改版本支持Open-IM-SDK-Nodejs
<p>地址:<a href="https://github.com/Child-Cheng/Open-IM-SDK-Nodejs">https://github.com/Child-Cheng/Open-IM-SDK-Nodejs</a></p><!--autointro--><!--109-->
2023-02-16
7
0
0
技术分享
C# 多进程管道双向通信
<p>服务端代码</p> <pre><code> public class ServerPipe { #region 成员变量 /// <summary> /// 接受名称 /// </summary> private string _receivePipeName; /// <summary> /// 接受数据回调函数 /// </summary> public event ResultCallBackPoint _resultCallBackEvent; /// <summary></summary><!--autointro--></code></pre><!--autointro--><!--108-->
2022-12-14
3
0
0
技术分享
奥特曼(autMan)对接elegram机器人设置
<p><strong>一共需要获取两个值</strong> <strong>telegramBotToken和telegramBotUserId</strong> <strong>以下简称token和ID</strong></p> <h3>获取 token 值</h3> <p><img src="https://www.javalc.com/zb_users/upload/2022/11/202211261321596688843.jpg" alt="" /></p> <p>在Telegram搜索【@BotFather】</p> <h6>创建机器人</h6> <p><img src="https://www.javalc.com/zb_users/upload/2022/11/202211261320501348924.jpg" alt="" /></p> <p>点击【开始】</p> <p><img src="https://www.javalc.com/zb_users/upload/2022/11/202211261324017862002.png" alt="" /></p> <p>点击【/newbot】</p> <p>然后BotFather机器人回复 <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261325019893353.jpg" alt="" /> Alright, a new bot. How are we going to call it? Please choose a name for your bot. 是机器人名称输入自己喜欢的就行</p> <p>回复自己想要的名称后BotFather机器人会让你输入机器人的ID <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261326421217043.png" alt="" /></p> <p>Good. Now let's choose a username for your bot. It must end in <code>bot</code>. Like this, for example: TetrisBot or tetris_bot. 输入一个机器人id并以bot以尾如 child08bot 、qwe_jd_bot </p> <p>如果重复则显示下面那句 Sorry, this username is already taken. Please try something different. 是机器人ID已经存在</p> <p>创建机器成功则显示如下: <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261320079465872.jpg" alt="" /></p> <h4>获UserID值</h4> <p><img src="https://www.javalc.com/zb_users/upload/2022/11/202211261330465222957.png" alt="" /> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261331202457555.png" alt="" /> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261331562730425.png" alt="" /></p> <h4>cf 加速代理配置</h4> <p><a href="https://dash.cloudflare.com/">登录cloudflare</a> 添加托管域名 <a href="https://www.youngfree.cn/seo/2878.html">参考</a> 托管添加完成后选择一个域名进去。例如我选择第一个 <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261345368438768.png" alt="" /></p> <p>选择DNS</p> <p><img src="https://www.javalc.com/zb_users/upload/2022/11/202211261347271228511.png" alt="" /> 然后显示如下图 <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261359132999436.png" alt="" /></p> <p>添加一个A 记录的解析 ipv4 地址 随便写能ping通就行 这里我写:8.8.8.8 Name (required)是名称如果使用主域名就填 @ 我这里用子域:tgbot 示例: 主域是:xxx.com 填 @ 那访问就是 xxx.com 填tgbot 那访问就是 tgbot.xxx.com <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261352248685662.png" alt="" /> 然后点保存[Save] <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261353334415031.png" alt="" /></p> <p>添加工作路由[Workers Routes] <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261358189401533.png" alt="" /> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261400392168086.png" alt="" /> 创建一个服务 <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261403385271760.png" alt="" /></p> <p>Service name 填写自己喜欢的名称后面绑定自己域名的时候会用到。 <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261404591604239.png" alt="" /> 点击[Quick edit] 进入编辑 <img src="https://www.javalc.com/zb_users/upload/2022/11/202211261406368354089.png" alt="" /> 把下面代码复制到左边的框中 然后把[888518123]改成你自己机器人的那个数值</p> <pre><code> const whitelist = ["/bot888518123:"]; const tg_host = "api.telegram.org"; addEventListener('fetch', event =<!--autointro--></code></pre><!--autointro--><!--107-->
2022-11-26
4
0
0
技术分享
Openwrt下电脑已经获得IPv6但网络连接提示“无Internet访问权限”解决方法
<p><img src="https://www.javalc.com/zb_users/upload/2022/11/202211152151214195135.png" alt=""><br>解决办法:<br> 1,先电脑连接光猫确认自己宽带有ipv6(可以<a href="http://test-ipv6.com/测试)">http://test-ipv6.com/测试)</a><br> 2,路由已经分配IPV6,但是无访问权限<br> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211152151063704815.png" alt=""><br> 3,修改DHCP/DNS高级设置,禁止解析IPV6 DNS记录,取消勾选(<strong>不能打钩</strong>)<br> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211152154092032411.png" alt=""><br> 4,修改负载均衡-策略-备用成员(改为默认-使用主路由表)<br> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211152155347865036.png" alt=""><br> 有的固体可能没有这个”负载均衡” 自己编译的可以在LuCL里面 “MWAN3”<br> 5,接口设置-LAN-高级设置(使用内置IPV6管理),接口设置-LAN-DHCP服务器-ipv6设置(路由通告服务、DHCPv6服务都是服务器模式,DHCPv6模式是无状态+有状态)<br> <img src="https://www.javalc.com/zb_users/upload/2022/11/202211152157428739614.png" alt=""><br> <!--autointro--></p> <!--106-->
2022-11-15
15
0
0
技术分享
1
2
3
4
5
...
11