ZHE知识库 ZHE知识库
首页
JAVA
中间件
易学
小说漫画
其他
Source (opens new window)
首页
JAVA
中间件
易学
小说漫画
其他
Source (opens new window)
  • 首页
  • 记事本
  • 笔记杂项
    • 前端代理
    • PEM文件提取CRT和KEY
    • B站删重复标题
    • CDN配置记录
    • Ventoy引导启动
    • Figma删除多余标签
  • GIT版本控制
  • 操作系统笔记

  • Docker笔记

  • 首页
张涵哲
2023-10-17
目录

笔记杂项

一些未分类的笔记会记在这个位置

# 前端代理

NVM和NPM设置代理

# 设置代理
nvm proxy http://127.0.0.1:7890
npm config set proxy=http://127.0.0.1:7890
npm config set https-proxy=http://127.0.0.1:7890

# 查看代理设置情况
nvm proxy
npm config get proxy
npm config get https-proxy

# 删除代理
nvm proxy null
npm config delete proxy
npm config delete https-proxy

# PEM文件提取CRT和KEY

# 提取证书
openssl x509 -in yourfile.pem -out yourfile.crt

# 提取私钥
openssl rsa -in yourfile.pem -out yourfile.key

# B站删重复标题

document.getElementsByClassName("part").forEach(item => item.innerHTML = item.innerHTML.substring(22))

# CDN配置记录

缓存配置

默认全部不缓存,下列内容缓存30天,随时补充

# 图片缓存
.jpg;.jpeg;.png;.bmp;.gif;.webp;.svg;.ico
# 文件缓存
.js;.css;.txt;.xml;.csv;.bat

访问控制

24小时内流量不能超5GB,超过后停用域名并通知站长

# Ventoy引导启动

UEFI安全启动情况下报错解决:ERROR Verification failed:(0x1A) Security Violation

Ventoy 1.0.76 及以后的版本是支持安全启动的,所以不会遇到这个问题,如果仍然遇到可以使用后面的方法

  1. Enroll key from dist → VTOYEFI → ENROLL_THIS_KEY_IN_MOKMANAGER.cer
  2. Enroll hash from dist → VTOYEFI → EFI → BOOT → grubx64.efi

更多细节可以查阅官方文档 (opens new window)

# Figma删除多余标签

// ==UserScript==
// @name         清除Figma无用标记
// @namespace    https://www.figma.com/**
// @version      2025-12-09
// @description  清除Figma无用标记
// @author       Hanzhe
// @match        https://www.figma.com/**
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // 创建按钮元素
    const button = document.createElement('button');
    button.textContent = 'clear';
    button.style.cssText = 'position: fixed; top: 70px; right: 20px; z-index: 1000; padding: 5px 15px; background: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer;';

    // 添加点击事件
    button.addEventListener('click', () => {
        const element = document.querySelector('#react-page > div > div > div');
        const regions = element.querySelectorAll('[role="region"]');
        regions.forEach(el => el.remove());
        const target = element.querySelector('div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-last-child(2) > div:last-child');
        target?.remove();
        button.remove();
    });

    // 插入到页面
    document.body.appendChild(button);
})();
上次更新: 2025-12-23, 18:23:38
记事本
GIT版本控制

← 记事本 GIT版本控制→

Theme by Vdoing | Copyright © 2023-2025 Zhe | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式