Skip to content

Instantly share code, notes, and snippets.


胡椒 movii

View GitHub Profile
movii / zhHans.conf.ini
Created Jul 11, 2021 — forked from fanweiq/zhHans.conf.ini
surge conf 配置详细说明
View zhHans.conf.ini
# 你可以从该 URL 下载这个配置文件:
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
View ingress-nginx yaml
apiVersion: v1
kind: Namespace
name: ingress-nginx
labels: ingress-nginx ingress-nginx
# Source: ingress-nginx/templates/controller-serviceaccount.yaml
movii /
Created May 6, 2019 — forked from troyfontaine/
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or

movii / mian.js
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View mian.js
// 进、出很多很多层文件目录去找到目标依赖文件
import example from '../../../../../../a/b/c/file'
movii /
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
# 重启 Webpack,不过这次需要输入的是部署生产环境的命令:
npm run production
# 或者
export NODE_ENV=production && npx webpack
View main.scss.patch
-body {background: #000000; color: #ff0000;}
+@import '~somepackage/options';
+body {
+ background: #000000;
+ color: $red;
movii / options.scss
Last active Dec 7, 2018
笔记:配合 Vue.js 配置 Webpack(二)CSS 部分
View options.scss
// options.scss
$red: #ff0000;
movii / main.scss
Last active Dec 7, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View main.scss
//忽略前缀的 ./node_modules/
import 'somepackage/options';
View 1.webpack.config.js.patch
// 在 webpack.config.js 中通过 resolve.alias
// 预定义“目标文件夹”的 shortcut
module.exports = {
filename: 'bundle.js',
publicPath: 'http://localhost:1333/dist/'
+ resolve:{
+ alias: {
+ JS_ROOT: path.resolve(__dirname, 'src/'),
movii / main.css
Last active Dec 3, 2018
Combined CSS Media Query for iPhone X/Xs, iPhone Xs Max, iPhone XR.
View main.css
* reference:
* 1. ref:
* 2.
* 3.
* iPhone X & iPhone XS
* 2436px x 1125px at 458ppi