Skip to content

Instantly share code, notes, and snippets.

View kaiye's full-sized avatar

kaiye kaiye

View GitHub Profile
@kaiye
kaiye / injectEgretApiDoc.js
Last active August 4, 2022 02:52
Make the Egret API documents better searchable
(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();
@kaiye
kaiye / .tmux.conf
Last active December 27, 2018 06:32
# 开启鼠标模式 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
# 如果喜欢给窗口自定义命名,那么需要关闭窗口的自动命名
@kaiye
kaiye / kaiye.zsh-theme
Last active June 2, 2017 07:06
A zsh theme modify from gnzh
# ZSH Theme
# Based on gnzh theme
setopt prompt_subst
() {
local PR_USER PR_USER_OP PR_PROMPT PR_HOST
# Check the UID
@kaiye
kaiye / keybindings.json
Created April 6, 2017 07:22
vscode key bindings
// 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",
@kaiye
kaiye / settings.json
Created April 6, 2017 07:19
vscode setting file
// 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",
@kaiye
kaiye / my.sh
Last active October 18, 2016 02:20
常用 Linux 命令行
# 网络
# 查看本地公网 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/