Skip to content

yk0n9/some-help

Repository files navigation

Some-Help

基本配置

Shadowrocket

https://cdn.jsdelivr.net/gh/yk0n9/some-help@master/Shadowrocket.conf

Quantumult X

https://cdn.jsdelivr.net/gh/yk0n9/some-help@master/QuanX.conf

Surge

https://cdn.jsdelivr.net/gh/yk0n9/some-help@master/Surge.conf

Clash

https://cdn.jsdelivr.net/gh/yk0n9/some-help@master/config.yaml

Clash 配置位置

~/.config/clash/config.yaml

多订阅用URLEncode后的链接, 订阅之间用|分隔

Clash:
https://sub.xeton.dev/sub?target=clash&list=true&url=订阅链接
https://sub.xeton.dev/sub?target=clash&list=true&url=Encode后的[订阅|订阅|...]

QuanX:
https://sub.xeton.dev/sub?target=quanx&list=true&url=订阅链接
https://sub.xeton.dev/sub?target=quanx&list=true&url=Encode后的[订阅|订阅|...]

Surge:
https://sub.xeton.dev/sub?target=surge&ver=4&list=true&url=订阅链接
https://sub.xeton.dev/sub?target=surge&ver=4&list=true&url=Encode后的[订阅|订阅|...]

Clash自动配置:
https://limbopro.cyou/sub?target=clash&config=https%3A%2F%2Fraw.githubusercontent.com%2Fyk0n9%2Fsome-help%2Fmaster%2Fsubconverter.ini&url=ENCODE_URL

[订阅转换](https://acl4ssr-sub.github.io/)

Github 加速转换

Windows 开机自启

运行 CMD,输入

shell:startup

把应用程序放入文件夹内

Docker

mysql
docker run --name some-mysql -p 3306:3306 -v /d/mysql/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
mongo
docker run --name some-mongo -p 27017:27017 -v /d/mongo/data:/data/db -d mongo:latest
redis
docker run --name some-redis -p 6379:6379 -v /d/redis/redis.conf:/etc/redis/redis.conf -v /d/redis/data:/data -d redis:latest redis-server /etc/redis/redis.conf --appendonly yes
nacos
docker run --name some-nacos -p 8848:8848 -e MODE=standalone -d nacos/nacos-server:2.0.3

设置 Git

~/.gitconfig

[http]
proxy = 127.0.0.1:7890
[https]
proxy = 127.0.0.1:7890
[user]
email = [email protected]
name = yk0n9
[pull]
rebase = false
[credential]
helper = store
[safe]
directory = *
[core]
autocrlf = false
[credential "helperselector"]
selected = manager

Git 命令流程

git init
git commit -m "init"
git remote add origin https://github.com/user/repo.git
git push -u origin master

Git Sync Fork 命令

git remote add upstream [url]

git checkout master
git pull upstream master

Windows 下的包管理器 (PowerShell)

安装 scoop

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
---normal
irm get.scoop.sh | iex
irm get.scoop.sh [-Proxy 'http://ip:port'] | iex
irm https://cdn.jsdelivr.net/gh/ScoopInstaller/Install@master/install.ps1 | iex
---admin
iex "& {$(irm https://cdn.jsdelivr.net/gh/ScoopInstaller/Install@master/install.ps1)} -RunAsAdmin"
---custom
irm get.scoop.sh -outfile 'install.ps1'
irm https://cdn.jsdelivr.net/gh/ScoopInstaller/Install@master/install.ps1 -outfile 'install.ps1'
./install.ps1 -ScoopDir 'D:\Scoop' -ScoopGlobalDir 'D:\Scoop\Apps' [-RunAsAdmin]

别名

scoop alias add add 'scoop install $args[0]'
scoop alias add del 'scoop uninstall $args[0]'
scoop alias add ls 'scoop list'
scoop alias add u 'scoop update $args[0]'
scoop alias add cl 'scoop cache rm *; scoop cleanup *'
scoop alias add srch 'scoop search $args[0]'

增加源

scoop bucket add main
scoop bucket add extras
scoop bucket add versions
scoop bucket add nonportable
scoop bucket add dorado https://github.com/chawyehsu/dorado

移除源

scoop bucket rm dorado

锁版本

scoop hold firefox

更新已安装应用

scoop update *

清理 cache

scoop cache rm *
scoop cleanup *

显卡驱动(NVIDIA)

sudo scoop install nonportable/nvidia-display-driver-dch-np

Rust-Windows

scoop install rustup

Rust-Linux

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
dnf install rustup
rustup-init
rustup component add rust-analyzer
source "$HOME/.cargo/env"

安装 LLVM

scoop install llvm

rustup default stable-msvc

下载 C++ Build Tools -- 使用 C++的桌面开发

rustup default stable-gnu

安装 MinGW

scoop install mingw

其他


安装 CMake

scoop install cmake
scoop install [email protected]

安装 MySQL

scoop install mysql57
mysqld --console
mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

~/.cargo/config.toml 设置代理

[http]
proxy = "127.0.0.1:7890"
[https]
proxy = "127.0.0.1:7890"

Cargo Git Fetch windows

setx CARGO_NET_GIT_FETCH_WITH_CLI "true"

linux

vim /etc/profile
export CARGO_NET_GIT_FETCH_WITH_CLI=true
source /etc/profile

mysqlclient

安装 MySQL Connector/C

设置环境变量:MYSQLCLIENT_LIB_DIR

默认在 C:\Program Files\MySQL\MySQL Connector C 6.1\lib\vs14

然后执行

cargo install diesel_cli --no-default-features --features mysql

Windows 关闭 VBS

sudo bcdedit /set hypervisorlaunchtype off