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
#!/usr/bin/env bash | |
# 修改自:https://alampy.com/2024/05/15/fix-mac-for-linux-qq/ | |
QQ_MAC_FILE="$HOME/.cache/qq_mac" | |
for cmd in slirp4netns socat nsenter unshare linuxqq | |
do | |
if ! command -v "$cmd" &>/dev/null | |
then |
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
#!/usr/bin/env fish | |
set uki "$argv[3]" | |
if test -z "$uki" | |
exit 0 | |
end | |
set keypairs "/root/.secureboot/MOK.key" "/root/.secureboot/MOK.crt" |
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
4cc7e1c9f4e97b384f0d8731f317b5995bde256fcc17160d32359cab923c5892 archlinux-2024.06.01-x86_64.iso | |
2235d87c6d9ed38a305bc389145aed26524e5325b5a8b1b2ba2792bdef17c040 ThinPC_110415_EVAL_x86fre.iso | |
1a4560d7fe5c4ac0ce7be12a25abaa203c7502057a1a68a791d794a720fa7349 tiny10 23h1 x64.iso | |
39430c2b8dd5c21bbd5af9116573f8c574ae896ce31d47280914ef268f01e33f zh-hans_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74070.iso |
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
#!/usr/bin/env fish | |
if ! fish_is_root_user | |
echo "This script must be run as root!" | |
exit 1 | |
end | |
if ! type -q rsync | |
echo "Please install rsync first!" | |
exit 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
# 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 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 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 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 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 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
[Unit] | |
Description=Balance Btrfs filesystem on nvme0n1 | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/btrfs balance start -dusage=10 / |
NewerOlder