Skip to content

Instantly share code, notes, and snippets.

 /\_/\  
( o.o )
 > ^ <
@nyaapass
nyaapass / openSUSE-zypper.md
Created July 26, 2020 09:01
openSUSE zypper
# sudo apt update
sudo zypper ref

# sudo apt upgrade
udo zypper update

# install yarn classic
sudo rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
sudo zypper ar -f https://dl.yarnpkg.com/rpm/ Yarn
@nyaapass
nyaapass / rm-rf-sougou-mac.sh
Last active January 1, 2021 02:45
rm -rf 搜狗 Mac 输入法
# 若安装包里自带卸载删不干净可以用以下命令
rm -rf /Library/Input\ Methods/SogouInput.app
rm -rf $HOME/Library/Caches/SogouServices
rm -rf $HOME/.sogouinput
nvm install node --reinstall-packages-from=node
nvm install lts/* --reinstall-packages-from=node
@nyaapass
nyaapass / get-chrome-crx.js
Last active June 22, 2023 07:32
chrome .crx extension file download api
/**
* https://blog.httpwatch.com/2017/11/15/installing-a-chrome-extension-without-an-internet-connection/
*/
const args = process.argv
if (args.length !== 4) {
console.error('usage: node get-chrome-crx.js chromeVersion extentionID')
} else {
const chromeVersion = args[2] // chrome version (eg. 67)
const extentionID = args[3] // extension id (from chrome store URL)

choco (需要管理员权限)

choco config set proxy http://127.0.0.1:1080
# choco config unset proxy
choco install git 
choco install node-lts
choco install yarn --ignore-dependencies

# 更新
@nyaapass
nyaapass / init-eslint.md
Last active August 5, 2018 06:24
Initialize eslint with yarn and standard style

Initialize ESLint

Install

yarn add -D eslint eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node

.eslintrc file

@nyaapass
nyaapass / npm.taobao.sh
Created February 23, 2018 03:19 — forked from 52cik/npm.taobao.sh
npm 淘宝镜像配置
npm set registry https://registry.npm.taobao.org # 注册模块镜像
npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver # chromedriver 二进制包镜像
npm set operadriver_cdnurl http://cdn.npm.taobao.org/dist/operadriver # operadriver 二进制包镜像
npm set phantomjs_cdnurl http://cdn.npm.taobao.org/dist/phantomjs # phantomjs 二进制包镜像
npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass # node-sass 二进制包镜像
npm set electron_mirror http://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像
alias get-editorconfig="curl https://raw.githubusercontent.com/vuejs/vue/dev/.editorconfig -O"
@nyaapass
nyaapass / npmrc.taobao
Created January 17, 2018 01:42
使用淘宝源的 npmrc 配置文件
loglevel=http
progress=false
registry=https://registry.npm.taobao.org
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/