介绍一下如何使用GitHub以及 Docusaurus(下面简称Doc) 免费搭建一个个人博客站点.
VSC指定类库文件增强智能感知
有的时候写个demo, 直接页面引用的类库, 导致有些智能感知缺失, 可以在JS的开头增加以下代码增加智能感知:
/// <reference path="../../scripts/vue/types/index.d.ts" />
// 接下来在使用Vue相关方法就会有智能感知了.
Termux远程访问
在电脑上远程访问Termux:
语文考试可以写负能量作文吗
我真的是服你们这群崽子。
Nginx 301重定向域名
下述配置会把jefflei.com
域名的请求返回301跳转到http://www.jefflei.com/
CentOS安装Nginx
以下是安装脚本:
创建Windows服务
自定义Linux Bash终端提示符
Prompt is control via a special shell variable. You need to set PS1
, PS2
, PS3
and PS4
variable. If set, the value is executed as a command prior to issuing each primary prompt.
使用 Docker 部署 Sentry
参考 Sentry Doc.
How to Setup Reverse Proxy on IIS with URL-Rewrite
Most of the system administrator is aware of the reverse proxy. It is a type of proxy server which fetches the resources from one or more computers on clients requests and send back to the client. In simple terms, it works as an intermediate server, which listens to clients query. Then requests to server bases of clients query and returns results to client sent by the server. This tutorial will help you to setup reverse proxy using IIS with URL rewrite and application request routing extension.
查看当前机器的所有SSH连接
使用 Node.js 执行命令行程序
原文 - Execute a command line binary with Node.js
For even newer version of Node.js (v8.1.4), the events and calls are similar or identical to older versions, but it's encouraged to use the standard newer language features. Examples:
Spring Boot Maven 插件使用
Spring Boot Maven 插件提供了 Maven 对 Spring Boot 的支持, 让你能打包成jar或者war包,以及原地运行应用。使用该插件需要Maven版本大于等于3.2。
Windows 上的TCP代理设置
目前我们出现一个需求是将外网来的TCP请求代理到内网的某个服务器上, 比如我们的 Windows 上需要部署一个 RabbitMQ 推送服务, 但因为某些原因我们无法使用 Windows 版本的 RabbitMQ, 想将 RabbitMQ 部署在Linux服务器上, 确实有很多其他方式来满足这个需求, 比如再加一个服务器, 然后分配一个公网IP, 最后我们选择在 Windows 服务器上安装 VMware 然后虚拟一个Ubuntu系统. 现在需要将外网的 RabbitMQ 请求映射到 Ubuntu 上, 大概请求途径如下: