Skip to content

Instantly share code, notes, and snippets.

View movii's full-sized avatar

movii movii

  • Shanghai, China
  • 06:37 (UTC +08:00)
View GitHub Profile
@movii
movii / zhHans.conf.ini
Created July 11, 2021 07:23 — forked from kuankuanlv/zhHans.conf.ini
surge conf 配置详细说明
# 你可以从该 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, 那么这些值会被写入到系统网络代理
# 设置中.)
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 14:20 — forked from troyfontaine/1-setup.md
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 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 December 8, 2018 14:09
笔记:配合 Vue.js 配置 Webpack(二)
// 进、出很多很多层文件目录去找到目标依赖文件
import example from '../../../../../../a/b/c/file'
@movii
movii / command.sh
Created December 8, 2018 05:45
笔记:配合 Vue.js 配置 Webpack(二)
# 重启 Webpack,不过这次需要输入的是部署生产环境的命令:
npm run production
# 或者
export NODE_ENV=production && npx webpack
-body {background: #000000; color: #ff0000;}
+@import '~somepackage/options';
+
+body {
+ background: #000000;
+ color: $red;
+}
@movii
movii / options.scss
Last active December 7, 2018 02:39
笔记:配合 Vue.js 配置 Webpack(二)CSS 部分
// options.scss
$red: #ff0000;
@movii
movii / main.scss
Last active December 7, 2018 02:32
笔记:配合 Vue.js 配置 Webpack(二)
//忽略前缀的 ./node_modules/
import 'somepackage/options';
// 在 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 December 3, 2018 09:30
Combined CSS Media Query for iPhone X/Xs, iPhone Xs Max, iPhone XR.
/*
* 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