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
.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 | |
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
code --install-extension 13xforever.language-x86-64-assembly | |
code --install-extension 2gua.rainbow-brackets | |
code --install-extension alefragnani.project-manager | |
code --install-extension alexcvzz.vscode-sqlite | |
code --install-extension antfu.browse-lite | |
code --install-extension antfu.unocss | |
code --install-extension antfu.vite | |
code --install-extension bung87.vscode-gemfile | |
code --install-extension castwide.solargraph | |
code --install-extension christian-kohler.npm-intellisense |
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 * as React from 'react' | |
declare module 'react' { | |
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> { | |
flex?: boolean | |
relative?: boolean | |
text?: string | |
grid?: boolean | |
before?: string | |
after?: string | |
shadow?: 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
{ | |
"extends": "@antfu", | |
"rules": { | |
"curly": "off", | |
"arrow-parens": "off", | |
"@typescript-eslint/brace-style": "off", | |
"@typescript-eslint/consistent-type-definitions": "off", | |
"@typescript-eslint/no-unused-vars": [ | |
"error", | |
{ |
NewerOlder