Skip to content

Instantly share code, notes, and snippets.

View SherryQueen's full-sized avatar
😶
Learning.

MySherry SherryQueen

😶
Learning.
  • china
  • shanghai
View GitHub Profile
@SherryQueen
SherryQueen / ps_alias.txt
Last active December 23, 2017 01:15
ps 别名
"g","git","","None"
"l","ls","","None"
"tnpm","npm --registry=https://registry.npm.taobao.org","","None"
mongodump -h dbhost -d dbname -o dbdirectory
-h:
MongDB所在服务器地址,例如:127.0.0.1,当然也可以指定端口号:127.0.0.1:27017
-d:
需要备份的数据库实例,例如:test
-o:
备份的数据存放位置,例如:c:\data\dump,当然该目录需要提前建立,在备份完成后,系统自动在dump目录下建立一个test目录,这个目录里面存放该数据库实例的备份数据。
mongorestore -h <hostname><:port> -d dbname <path>
--host <:port>, -h <:port>:
protoc.exe --js_out=import_style=commonjs,binary:. .\proto\line.proto
out input
@SherryQueen
SherryQueen / .node-eslintrc.js
Last active March 3, 2018 07:34
eslint 规则
module.exports = {
env: {
node: true,
commonjs: true,
es6: true,
mocha: true,
},
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
@SherryQueen
SherryQueen / ubuntu 相关备忘录
Created March 17, 2018 11:38
ubuntu 相关备忘录
gnome主题 flat remix 系列(https://github.com/daniruiz/flat-remix-gnome)
@SherryQueen
SherryQueen / 扩展
Created March 30, 2018 07:53
chrome
Vimium 快捷键操作
octotree Github
# 镜像名
image: 'node:8.11.2-alpine'
# 脚本运行
before_script:
# 写入密钥 并配置 ~/.ssh/config 文件
- apk add --update openssh-client bash
- eval $(ssh-agent -s)
- bash -c "ssh-add <(echo '$SSH_PRIVATE_KEY')"
- mkdir -p ~/.ssh
@SherryQueen
SherryQueen / .bash_profile
Last active June 3, 2020 12:48
git-bash
alias gpm='git push origin master'
alias ...=../..
alias ....=../../..
alias .....=../../../..
alias ......=../../../../..
alias 1='cd -'
alias 2='cd -2'
alias 3='cd -3'
alias 4='cd -4'
alias 5='cd -5'
@SherryQueen
SherryQueen / javascript.json
Last active July 26, 2024 08:33
vscode snippet
{
"propTypeArray": {
"prefix": "pta",
"body": "PropTypes.array,",
"description": "Array prop type"
},
"propTypeArrayRequired": {
"prefix": "ptar",
"body": "PropTypes.array.isRequired,",
"description": "Array prop type required"
@SherryQueen
SherryQueen / 阐述观点
Created November 23, 2018 02:00
阐述观点
1. 先横向划分大块, 再细化问题内容
2. 先观点, 后分类再概括
论, 证, 类, 比
论: 结论先行
证: 以上统下 (理由应要支撑结论, 结论需要概括理由)
类: 归纳分类
相互独立不重叠
穷尽
比: 逻辑递进 (重要性, 时间, 结构(区域, 位置等))