Skip to content

Instantly share code, notes, and snippets.

View foreverzmy's full-sized avatar
💥
BOOM MIND!

MervynZhang foreverzmy

💥
BOOM MIND!
View GitHub Profile
# OpenSSL Intermediate CA configuration file.
# Copy to `./root/intermediate.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = ./intermediate
# OpenSSL root CA configuration file.
# Copy to `./root/openssl.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = ./root
# OpenSSL intermediate CA configuration file.
# Copy to `intermediate/openssl.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = ./intermediate
# OpenSSL root CA configuration file.
# Copy to `./ca/openssl.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = .
@foreverzmy
foreverzmy / autoDelete.py
Last active February 22, 2021 02:24
批量删除 node_modules 脚本
import os
import time
import shutil
# 脚本目的:自动删除指定文件夹下的相关文件夹 如批量删除node_modules依赖
def get_dirsize(dirPath):
size = 0
for root, dirs, files in os.walk(dirPath):
for file in files:
@foreverzmy
foreverzmy / .yarnrc
Last active December 5, 2019 10:20
Yarn 项目级别淘宝源代理配置
registry "https://registry.npm.taobao.org"
disturl "https://npm.taobao.org/dist"
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
phantomjs_cdnurl "https://npm.taobao.org/mirrors/phantomjs/"
electron_mirror "https://npm.taobao.org/mirrors/electron/"
nvm_nodejs_org_mirror "http://npm.taobao.org/mirrors/node"
NODEJS_ORG_MIRROR "http://npm.taobao.org/mirrors/node"
SQLITE3_BINARY_SITE "http://npm.taobao.org/mirrors/sqlite3"
profiler_binary_host_mirror "http://npm.taobao.org/mirrors/node-inspector/"