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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<ProxifierProfile version="101" platform="MacOSX" product_id="2" product_minver="200"> | |
<Options> | |
<Resolve> | |
<AutoModeDetection enabled="true"/> | |
<ViaProxy enabled="false"> | |
<TryLocalDnsFirst enabled="false"/> | |
</ViaProxy> | |
<ExclusionList ExcludeSimpleHostnames="true" ExcludeLocalhost="true" ExcludeSelfHostname="true" ExcludeLocalDomain="true">localhost;%SimpleHostnames%;%ComputerName%;*.local; | |
</ExclusionList> |
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
ZERO = f => x => x | |
ONE = f => x => f(x) | |
TWO = f => x => f(f(x)) | |
THREE = f => x => f(f(f(x))) | |
FOUR = f => x => f(f(f(f(x)))) | |
FIVE = f => x => f(f(f(f(f(x))))) | |
SIX = f => x => f(f(f(f(f(f(x)))))) | |
SEVEN = f => x => f(f(f(f(f(f(f(x))))))) | |
EIGHT = f => x => f(f(f(f(f(f(f(f(x)))))))) | |
NINE = f => x => f(f(f(f(f(f(f(f(f(x))))))))) |
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
import path from 'path' | |
import fs from 'fs' | |
import store from 'svgstore' | |
import { optimize } from 'svgo' | |
import type { Plugin, ViteDevServer } from 'vite' | |
interface Options { | |
id?: string | |
inputFolder?: string | |
inline?: boolean |
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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
a { |
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
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 二进制包镜像 |
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
.title.show-file-icons { | |
display: none !important; | |
} |
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
mixed-port: 7890 | |
#---------------------------------------------------# | |
## 配置文件需要放置在 $HOME/.config/clash/*.yaml | |
allow-lan: true | |
mode: Rule | |
log-level: silent | |
external-controller: 127.0.0.1:60000 | |
# 你需要在当前目录里提前准备好从其他服务商下载的 config.ymal | |
proxy-providers: |
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
parsers: # array | |
- reg: ^.*$ | |
code: | | |
module.exports.parse = (raw, { yaml }) => { | |
const rawObj = yaml.parse(raw) | |
const groups = [] | |
const rules = [] | |
return yaml.stringify({ ...rawObj, 'proxy-groups': groups, rules }) | |
} | |
yaml: |
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
# https://www.docker.com/blog/back-up-and-share-docker-volumes-with-this-extension/ | |
# run in host | |
mkdir repos | |
mkdir config | |
docker run -it -v repos:/repos -v config:/config -v "$(pwd)/repos":/outside_repos -v "$(pwd)/config":/outside_config busybox sh | |
# run in container | |
cd /repos | |
find . -name node_modules -type d -exec rm -rf {} \; | |
find . -name dist -type d -exec rm -rf {} \; |
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
# redis server | |
export name=redis-server-1 | |
mkdir -p ./$name-conf | |
# copy config from https://redis.io/docs/management/config-file/ | |
vim ./$name-conf/redis.conf | |
docker run --network network1 -v ./$name-data:/data -v ./$name-conf:/usr/local/etc/redis --name $name -d redis redis-server /usr/local/etc/redis/redis.conf --save 60 1 --loglevel warning | |
# redis client | |
docker run -it --network network1 --rm redis redis-cli -h redis-server-1 | |
NewerOlder