删除HTTP请求头中的 referrer
删除HTTP请求头中的 Referer
,能解决部分防盗链问题。
在页面的 head
里添加以下代码即可删除Referer
请求头:
删除HTTP请求头中的 Referer
,能解决部分防盗链问题。
在页面的 head
里添加以下代码即可删除Referer
请求头:
原文 - 悲催的程序员,以及程序员的悲催[转](转载自http://www.douban.com/note/122664737/水之印象豆瓣)
我尽量用平和一点的口吻跟你说说关于程序员的那点事儿。
记得早先少年时
大家诚诚恳恳
说一句 是一句
将以下代码保存到bat文件中, 然后执行:
以下是Visual Studio Code支持的代码块折叠标记及快捷键:
在VSC里, 代码片段和其他提示混合出现在智能感知中(Windows: Ctrl + Space
, Mac: Cmd + Space
), 也可以使用通过 Cmd/Ctrl + Shift + P
> Insert Snippet 手动选择指定的代码片段, 同时支持使用tab完成代码片段插入: 使用配置"editor.tabCompletion": "on"
开启, 输入代码片段的前缀(prefix), 然后按下 Tab 按键即可.
解决 Visual Studio Code Markdown 文件不能插入代码片段问题
向配置文件增加以下配置:
{
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": true
},
}
Vintage is a vi mode editing package for Sublime Text. It allows you to combine vi's command mode with Sublime Text's features, including multiple selections.
Vintage mode is developed in the open, and patches are more than welcome. If you'd like to contribute, details are in the GitHub repo.
Linux文件系统损坏修复
原文: Structure needs cleaning” error - cannot mount partition
设置Mac系统的JAVA_HOME
环境变量:
Mac系统,添加code
到PATH
环境变量:
按下 Command + Shift + P,然后输入Shell Command
, 选择 Shell Command: Install 'code' command in PATH
即可.
计算hash值:
import crypto from "crypto";
const clearText = "待计算文本";
const hashValue = crypto.createHash("sha256").update(clearText).digest("hex");