Skip to content

Instantly share code, notes, and snippets.

View xlshiz's full-sized avatar
🐌
dark dark

shixl xlshiz

🐌
dark dark
View GitHub Profile
@xlshiz
xlshiz / .npmrc
Created May 8, 2020 14:28 — forked from SimonTart/.npmrc
npmrc config for china
registry=https://registry.npm.taobao.org
disturl=https://npm.taobao.org/dist
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/
electron_mirror=https://npm.taobao.org/mirrors/electron/
chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver
operadriver_cdnurl=https://npm.taobao.org/mirrors/operadriver
selenium_cdnurl=https://npm.taobao.org/mirrors/selenium
node_inspector_cdnurl=https://npm.taobao.org/mirrors/node-inspector
fsevents_binary_host_mirror=http://npm.taobao.org/mirrors/fsevents/
@xlshiz
xlshiz / Surfingkeys settings
Last active March 12, 2025 10:54
Surfingkeys settings
//=========================enjoy !!!=============================================
// 1. 高频快速直达理念。搜索,使用独立的s关键字,使用最少的按键,来处理最高频的功能。同理,最直达的逻辑优化。h,直达历史,以及内置的b书签。通过原始的o前缀虽然也挺快,但是,还是处在一种没有优先级的状态。
// 2. 添加快速搜索的能力(可以抛弃一键切换插件)(注:xx可以表达为,域名的缩写,比如,github-gh,google-gg。自己可以改配置,加搜索引擎):
// a. ";+xx",携带当前关键字,切换搜索引擎进行搜索】(独有扩展)
// b. ";;+xx", 使用当前选中的内容,进行浏览器的搜索(内置,使用s+。这种更加易于,减轻快捷键的记忆负担。)
// c. ";;;+xx", 使用用户输入,在当前页面打开输入框,进行搜索(内置,使用s+,这种减轻记忆负担。同时因为在使用频率上,也就s频率高。所以,单独抽取了一个s键)
// d. "alt+s",快速的自动切换搜索引擎,按照顺序进行搜索
// e. "oa+xx",使用关键字,同时打开相同类型的搜索引擎,进行搜索。比如,一个关键字将同时打开,google,baidu。
//================================================================================
@xlshiz
xlshiz / sh
Created August 7, 2019 22:10
debian上下载软件包机器依赖
apt-get install --reinstall -d $1 `apt-cache depends $1 | grep 依赖 | cut -d: -f2 |tr -d "<>"`
@xlshiz
xlshiz / Dockerfile
Last active December 9, 2018 09:19 — forked from twlz0ne/Dockerfile
Debian 9 build ccls
FROM launcher.gcr.io/google/debian9:latest
RUN apt-get update && apt-get install -y gnupg wget software-properties-common
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN apt-add-repository "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-6.0 main"
RUN apt-get update && apt-get install -y clang-6.0
RUN apt-get -y install libclang-common-6.0-dev libclang-6.0-dev libclang1-6.0 libllvm6.0 llvm-6.0-dev
## ISSUE:
# CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
@xlshiz
xlshiz / sysctl.conf
Last active March 7, 2018 14:09 — forked from chenshaoju/sysctl.conf
sysctl.conf
# 设定最大打开文件句柄数为 200000
fs.file-max = 200000
# 设定最大数据接收发送缓冲为 32MB 。
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
# 设定默认据接收发送缓冲为 256KB 。
net.core.rmem_default = 262144
net.core.wmem_default = 262144