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
(function(oldInput) { | |
if (!oldInput) return; | |
if (oldInput.__injected) return; | |
class DB { | |
constructor({ database, table, onload = () => {} }) { | |
this.database = database; | |
this.table = table; | |
this.onload = onload; | |
this.open(); |
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
# 开启鼠标模式 version >= 2.1 | |
set-option -g mouse on | |
# 开启鼠标模式 version < 2.1 | |
# set -g mode-mouse on | |
# 允许鼠标选择窗格 version < 2.1 | |
# set -g mouse-select-pane on | |
# 如果喜欢给窗口自定义命名,那么需要关闭窗口的自动命名 |
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
# ZSH Theme | |
# Based on gnzh theme | |
setopt prompt_subst | |
() { | |
local PR_USER PR_USER_OP PR_PROMPT PR_HOST | |
# Check the UID |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+e", | |
"command": "editor.action.smartSelect.grow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+cmd+e", | |
"command": "editor.action.smartSelect.shrink", |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontSize": 15, | |
"editor.tabSize": 2, | |
"editor.wordWrap": "on", | |
"eslint.enable": true, | |
"stylelint.enable": true, | |
"files.associations": { | |
"*.tpl": "php", | |
"*.wxss": "css", |
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
# 网络 | |
# 查看本地公网 IP | |
curl ifconfig.me | |
dig 1024.io | |
dig -x 104.155.233.156 | |
# 并发测试 | |
ab -n 1000 -c 1000 http://www.meizu.com/ | |
# 全站抓取 | |
wget -r -p -np -k http://www.meizu.com/es/ |