tsvico的博客

好的代码像粥一样,都是用时间熬出来的

ssh 端口反向代理与内网穿透

背景

出于安全考虑公网 IP 仅暴露了内网跳板机的 22 端口,想借用 ssh 端口转发实现简易内网穿透。

阅读全文 »

宝塔自建 bitwarden 密码管理器

我们生活在被数字包围的世界里。为了证明你是你,你对某个资源拥有所有权。那么就需要密码。最常用的各种网站,还别说银行密码信用卡等等。市面上虽然有 1Password 等优秀商业方案,但是要付费。主流浏览器 Chrome,Firefox 等也提供原生的密码保存方案。 但是, 密码毕竟是个人数据, 自部署(self-hosted)是最佳方案 免费密码管理器 bitwarden 的实际使用体验如何

阅读全文 »

顾名思义,程序启动器仅作为一个程序的独立入口,和命令行 start xxx 有一样的功能,多一个启动器,也就是为程序入口加个 LOGO
本启动器使用 GO 实现

阅读全文 »

Thank you all for your tests, feedback and support. I am personally sorry for the issues we had today.
We can consider the issue as resolved, now its a question of DNS propagation getting to everyone.
Our official announcement regarding the problems today:
Unfortunately today jsDelivr unexpectedly lost its ICP license in China. As effect the regional CDN disabled our account.

This resulted in the extended outage we had in mainland China and Taiwan.

Other regions were unaffected.

We understand how difficult it was for our users to experience this unique situation.

From now on all Chinese traffic will be served by “near China” locations provided by global CDN providers.

This will have the additional benefit of better failover logic in the future.

https://github.com/jsdelivr/jsdelivr/issues/18348#issuecomment-997777996

jsDelivr 被吊销 ICP 许可证五个月后,cdn.jsdelivr.net 开始遭到污染,非魔法上网已经不能正常加载,各中原因不做讨论,无外乎滥用

本博客使用 Hexo 框架和 NexT 主题,默认使用的是 JSDelivr 作为 静态资源的 CDN 服务提供商,为了能正常访问,所以需要切换到国内 CDN

阅读全文 »

FRP 使用记录

前言

frp 是一个专注于内网穿透的高性能的反向代理应用,支持 TCP、UDP、HTTP、HTTPS 等多种协议。可以将内网服务以安全、便捷的方式通过具有公网 IP 节点的中转暴露到公网。

使用示例 https://gofrp.org/docs/examples/

我对将要配置的 FRP 服务有如下目标:

  1. 支持 HTTPS
  2. 服务器打开端口尽可能少
  3. 使用简单、支持泛域名
  4. 和宝塔面板整合
阅读全文 »

摘抄
Apache POI 简介是用 Java 编写的免费开源的跨平台的 Java API,Apache POI 提供 API 给 Java 程式对 Microsoft Office(Excel、WORD、PowerPoint、Visio 等)格式档案读和写的功能。POI 为 “Poor Obfuscation Implementation” 的首字母缩写,意为 “可怜的模糊实现”。

官方主页: http://poi.apache.org/index.html

API 文档: http://poi.apache.org/apidocs/index.html

阅读全文 »

Apache POI 简介是用 Java 编写的免费开源的跨平台的 Java API,Apache POI 提供 API 给 Java 程式对 Microsoft Office(Excel、WORD、PowerPoint、Visio 等)格式档案读和写的功能。POI 为 “Poor Obfuscation Implementation” 的首字母缩写,意为 “可怜的模糊实现”。

官方主页: http://poi.apache.org/index.html

API 文档: http://poi.apache.org/apidocs/index.html

阅读全文 »

文末附上 js 版本,需求简单概括为 去除一段文本中的不可见字符,要求汉字之间无空白,英文之间多个空白合并成一个

注 v1 和 v2 均为 typescript 代码

阅读全文 »