Skip to content

Instantly share code, notes, and snippets.

Avatar
☃️
Focusing

胡椒 movii

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

Methods of Signing with GPG

There are now two ways to approach this:

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

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 Krypt.co.

@movii
movii / mian.js
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View mian.js
// 进、出很多很多层文件目录去找到目标依赖文件
import example from '../../../../../../a/b/c/file'
@movii
movii / command.sh
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View command.sh
# 重启 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
movii / options.scss
Last active Dec 7, 2018
笔记:配合 Vue.js 配置 Webpack(二)CSS 部分
View options.scss
// options.scss
$red: #ff0000;
@movii
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
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: https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
* 2. https://stackoverflow.com/questions/52321212/iphone-xr-xs-xs-max-css-media-queries
* 3. https://stackoverflow.com/questions/46313640/iphone-x-8-8-plus-css-media-queries
*/
/*
* iPhone X & iPhone XS
* 2436px x 1125px at 458ppi