每次不小心按错快捷键,桌面图标被放大,导致文件顺序全乱,所以配置了个组合规则直接把 command -
和 command =
替换为 fn
键。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm set registry https://r.npm.taobao.org # 注册模块镜像 | |
npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 | |
## 以下选择添加 | |
npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 | |
npm set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像 | |
npm set ELECTRON_MIRROR https://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像 | |
npm set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer 二进制包镜像 | |
npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像 | |
npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $( docker images --format "{{.Repository}}:{{.Tag}}" ) | |
do | |
docker pull $i | |
done | |
# or | |
# docker images --format "{{.Repository}}:{{.Tag}}" | xargs -L1 docker pull | |
docker image prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 提取淘宝地址库 | |
* | |
* 用法: | |
* 1. 打开淘宝 https://www.taobao.com/ | |
* 2. 将下面代码复制到控制台 | |
* 3. 按回车 | |
* 4. 复制输出的 json 数据保存到你的文件 | |
* | |
* 仅支持: chrome 48+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 为了避免字体混乱的局面,Neat.css 统一了 font-family 的设置。 | |
* | |
* 1. 中文字体选择如下: | |
* Windows 优先使用「微软雅黑」,如果没有则使用「中易宋体(SimSun)」。 | |
* OS X 优先使用「冬青黑体简体(Hiragino Sans GB)」,如果没有则使用默认的「华文黑体」。 | |
* Linux 优先使用「文泉驿微米黑」。 | |
* | |
* 2. 西文字体选择如下: | |
* Windows 优先使用「Arial」。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @type {import('@vue/cli-service').ProjectOptions} */ | |
module.exports = { | |
chainWebpack(config) { | |
// https://bootstrap-vue.js.org/docs/reference/images/ | |
// https://github.com/webpack-contrib/html-loader | |
config.module | |
.rule('vue') | |
.use('vue-loader') | |
.loader('vue-loader') | |
.tap((options) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the user IP throught the webkitRTCPeerConnection | |
* | |
* @return {Promise<string>} | |
* | |
* @see Get the client IP address with Javascript on Safari {@link https://stackoverflow.com/questions/46925857/get-the-client-ip-address-with-javascript-on-safari} | |
*/ | |
function getUserIP() { | |
//compatibility for firefox and chrome | |
var myPeerConnection = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--360浏览器--> | |
<meta name="renderer" content="webkit"> | |
<!--其它双核浏览器--> | |
<meta name="force-rendering" content="webkit"> | |
<!--如果安装了GCF,则使用GCF来渲染页面,如果没有安装GCF,则使用最高版本的IE内核进行渲染。--> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen 80; | |
charset utf-8; | |
index index.html index.php; | |
error_page 404 /404.html; | |
# 开启 php 并支持 pathinfo | |
include enable-php-pathinfo.conf; | |
# yii2 rewrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
假设你有3个commit如下: | |
commit 3 | |
commit 2 | |
commit 1 | |
其中最后一次提交commit 3是错误的,那么可以执行: | |
git reset --hard HEAD~1 | |
你会发现,HEAD is now at commit 2。 |
NewerOlder