This file contains hidden or 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
| #!/bin/bash | |
| [[ "$EUID" -eq 0 ]] || { echo "This script must be run as root!"; exit 1; } | |
| ## 网卡 | |
| INTERFACE=$(ip route show default | awk '/default/ {print $5}') | |
| INTERFACE="${INTERFACE:-wlan0}" | |
| ## TProxy流量标记 | |
| TPROXY_MARK="0x1" |
This file contains hidden or 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
| #!/bin/bash | |
| POWER_SOURCE="$(< /sys/class/power_supply/ADP0/online)" | |
| case "$POWER_SOURCE" in | |
| "0") kscreen-doctor output.eDP-1.mode.2880x1800@60 > /dev/null 2>&1 ;; | |
| "1") kscreen-doctor output.eDP-1.mode.2880x1800@90 > /dev/null 2>&1 ;; | |
| esac |
This file contains hidden or 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
| -- Global to remember if night color was on before mpv | |
| local night_color_was_enabled = false | |
| -- Run a shell command and capture its stdout | |
| local function execute_command(cmd) | |
| local handle = io.popen(cmd) | |
| local result = handle:read("*a") | |
| handle:close() | |
| return result | |
| end |
This file contains hidden or 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
| # Defined in /home/bryan/.config/fish/functions/proxy.fish @ line 1 | |
| function proxy | |
| set -l DEFAULT_PROXY "http://127.0.0.1:7890" | |
| set -l PROXY_URL_FORMAT "^(http|https|socks5|socks5h)://[a-zA-Z0-9.-]+:[0-9]+\$" | |
| function __set_proxy | |
| set -gx HTTP_PROXY $argv[1] | |
| set -gx http_proxy $HTTP_PROXY | |
| set -gx HTTPS_PROXY $HTTP_PROXY |
This file contains hidden or 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
| function pkgsizesort | |
| if test (count $argv) -eq 0 || test -z $argv | |
| echo "用法: pkgsizesort 关键字或正则表达式" | |
| return 1 | |
| end | |
| set packages $(pacman -Qq | rg -e $argv) | |
| if test (count $packages) -eq 0 | |
| echo "不存在符合条件的软件包" |
This file contains hidden or 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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "lldb", | |
| "request": "launch", | |
| "name": "C调试", | |
| "program": "${fileDirname}/${fileBasenameNoExtension}", | |
| "args": [], | |
| "cwd": "${workspaceFolder}", |
This file contains hidden or 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
| 64bff9f3461fc688d3c959f6085a4d90d6516a13a0c9742b6632568b708e5953 ttf-ms-win11-10.0.22631.2506-1-any.pkg.tar.zst | |
| 7e2dd103fb5f2a52d2a91f9737b7424299250dcc41adf12355ff64f4ffeeac85 ttf-ms-win11-zh_cn-10.0.22631.2506-1-any.pkg.tar.zst |
This file contains hidden or 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
| #: OneDark Theme {{{ | |
| foreground #ABB2BF | |
| background #282C34 | |
| # Black | |
| color0 #3F4451 | |
| color8 #4d5564 | |
| # Red |
This file contains hidden or 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
| adobe-source-han-sans-otc-fonts | |
| adobe-source-han-serif-otc-fonts | |
| amd-ucode | |
| android-udev | |
| aria2 | |
| ark | |
| base | |
| base-devel | |
| bash-completion | |
| bat |
This file contains hidden or 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
| albert.tabout | |
| dart-code.dart-code | |
| dart-code.flutter | |
| dbaeumer.vscode-eslint | |
| esbenp.prettier-vscode | |
| geezmolycos.vscode-hanzi-counter | |
| github.copilot | |
| github.copilot-chat | |
| golang.go | |
| google.gemini-cli-vscode-ide-companion |
NewerOlder