Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
d0zingcat
2025-01-20 16:05:16 +08:00
parent ee14922f6c
commit 76d0e3e44a
13 changed files with 17 additions and 2639 deletions

View File

@@ -1,219 +0,0 @@
tap "go-swagger/go-swagger"
tap "homebrew/bundle"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/services"
tap "mongodb/brew"
brew "readline"
brew "xz"
brew "ansible"
brew "jpeg-xl"
brew "argocd"
brew "aria2"
brew "coreutils"
brew "asdf"
brew "autojump"
brew "bat"
brew "bpytop"
brew "glib"
brew "cmake"
brew "curl"
brew "difftastic"
brew "direnv"
brew "dosbox"
brew "fd"
brew "harfbuzz"
brew "tesseract"
brew "ffmpeg"
brew "fzf"
brew "git"
brew "gnu-sed"
brew "gnupg"
brew "go"
brew "gojq"
brew "node"
brew "graphql-cli"
brew "graphviz"
brew "helm"
brew "helmfile"
brew "hugo"
brew "iperf3"
brew "istioctl"
brew "jq"
brew "k9s"
brew "openjdk"
brew "zookeeper"
brew "kafka"
brew "kind"
brew "kubernetes-cli"
brew "kops"
brew "kubectx"
brew "lsd"
brew "mas"
brew "zlib"
brew "mysql", restart_service: true
brew "neovim"
brew "pinentry-mac"
brew "pipx"
brew "pnpm"
brew "postgresql@14", restart_service: true
brew "pyenv"
brew "pyenv-virtualenv"
brew "qt@5"
brew "pyqt@5"
brew "python@3.10"
brew "qemu"
brew "rclone"
brew "redis", restart_service: true
brew "ripgrep"
brew "rustup-init"
brew "starship"
brew "stylua"
brew "syncthing", restart_service: true
brew "tailscale"
brew "teleport"
brew "telnet"
brew "terraform"
brew "tmux"
brew "tree"
brew "trzsz-go"
brew "wakeonlan"
brew "wget"
brew "wireguard-tools"
brew "youtube-dl"
brew "go-swagger/go-swagger/go-swagger"
brew "mongodb/brew/mongodb-community"
cask "1password"
cask "1password-cli"
cask "apifox"
cask "bartender"
cask "brave-browser"
cask "charles"
cask "clash-for-windows"
cask "dash"
cask "datagrip"
cask "dbeaver-community"
cask "discord"
cask "docker"
cask "feishu"
cask "firefox-developer-edition"
cask "font-jetbrains-mono-nerd-font"
cask "google-chrome"
cask "google-drive"
cask "jetbrains-toolbox"
cask "keepingyouawake"
cask "logi-options-plus"
cask "logseq"
cask "motrix"
cask "multipass"
cask "ngrok"
cask "notion"
cask "obsidian"
cask "only-switch"
cask "orbstack"
cask "qbittorrent"
cask "raycast"
cask "sourcetree"
cask "spotify"
cask "stats"
cask "tabby"
cask "tableplus"
cask "telegram"
cask "temurin"
cask "tencent-meeting"
cask "utm"
cask "visual-studio-code"
cask "vnc-viewer"
cask "warp"
cask "wezterm"
cask "wireshark"
mas "1Password for Safari", id: 1569813296
mas "BeanWise", id: 6446314789
mas "Best Trace", id: 1037779758
mas "Bob", id: 1630034110
mas "EuDic", id: 434350458
mas "Immersive Translate", id: 6447957425
mas "Infuse", id: 1136220934
mas "Keynote", id: 409183694
mas "Microsoft Remote Desktop", id: 1295203466
mas "Microsoft Word", id: 462054704
mas "Notion Web Clipper", id: 1559269364
mas "Numbers", id: 409203825
mas "OneTab", id: 1540160809
mas "Pages", id: 409201541
mas "Reeder", id: 1529448980
mas "Slack", id: 803453959
mas "Tailscale", id: 1475387142
mas "TestFlight", id: 899247664
mas "Userscripts-Mac-App", id: 1463298887
mas "Vimari", id: 1480933944
mas "WeChat", id: 836500024
vscode "42Crunch.vscode-openapi"
vscode "alefragnani.Bookmarks"
vscode "antfu.browse-lite"
vscode "antfu.vite"
vscode "asvetliakov.vscode-neovim"
vscode "dbaeumer.vscode-eslint"
vscode "dongfg.vscode-beancount-formatter"
vscode "eamodio.gitlens"
vscode "EditorConfig.EditorConfig"
vscode "eriklynd.json-tools"
vscode "esbenp.prettier-vscode"
vscode "fabiospampinato.vscode-diff"
vscode "GitHub.codespaces"
vscode "GitHub.copilot"
vscode "GitHub.copilot-chat"
vscode "github.vscode-github-actions"
vscode "GitHub.vscode-pull-request-github"
vscode "gitpod.gitpod-desktop"
vscode "golang.go"
vscode "JuanBlanco.solidity"
vscode "LeetCode.vscode-leetcode"
vscode "Lencerf.beancount"
vscode "mohsen1.prettify-json"
vscode "ms-azuretools.vscode-docker"
vscode "ms-mssql.mssql"
vscode "ms-mssql.sql-bindings-vscode"
vscode "ms-ossdata.vscode-postgresql"
vscode "ms-python.isort"
vscode "ms-python.python"
vscode "ms-python.vscode-pylance"
vscode "ms-toolsai.jupyter-keymap"
vscode "ms-vscode-remote.remote-containers"
vscode "ms-vscode-remote.remote-ssh"
vscode "ms-vscode-remote.remote-ssh-edit"
vscode "ms-vscode-remote.remote-wsl"
vscode "ms-vscode-remote.vscode-remote-extensionpack"
vscode "ms-vscode.cpptools"
vscode "ms-vscode.makefile-tools"
vscode "ms-vscode.remote-explorer"
vscode "ms-vscode.remote-server"
vscode "ms-vscode.vscode-typescript-next"
vscode "polarmutex.beancount-langserver"
vscode "quicktype.quicktype"
vscode "redhat.java"
vscode "redhat.vscode-commons"
vscode "redhat.vscode-yaml"
vscode "RemixProject.ethereum-remix"
vscode "rust-lang.rust-analyzer"
vscode "serayuzgur.crates"
vscode "shd101wyy.markdown-preview-enhanced"
vscode "tamasfe.even-better-toml"
vscode "timonwong.shellcheck"
vscode "tomsaunders.vscode-workspace-explorer"
vscode "vadimcn.vscode-lldb"
vscode "VisualStudioExptTeam.intellicode-api-usage-examples"
vscode "VisualStudioExptTeam.vscodeintellicode"
vscode "vscjava.vscode-java-debug"
vscode "vscjava.vscode-java-dependency"
vscode "vscjava.vscode-java-pack"
vscode "vscjava.vscode-java-test"
vscode "vscjava.vscode-maven"
vscode "vscodevim.vim"
vscode "Vue.volar"
vscode "WakaTime.vscode-wakatime"
vscode "yzhang.markdown-all-in-one"
vscode "ZainChen.json"
vscode "zhwu95.riscv"
vscode "ZihanLi.at-helper"

View File

@@ -1,231 +0,0 @@
tap "hashicorp/tap"
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask-drivers"
tap "homebrew/cask-versions"
tap "homebrew/services"
tap "pulumi/tap"
brew "openssl@3"
brew "sqlite"
brew "xz"
brew "ansible"
brew "argocd"
brew "asdf"
brew "glib"
brew "python@3.10"
brew "autojump"
brew "docutils"
brew "awscli"
brew "axel"
brew "bat"
brew "bpytop"
brew "cmake"
brew "difftastic"
brew "direnv"
brew "doctl"
brew "sdl2"
brew "dosbox"
brew "fd"
brew "fzf"
brew "unbound"
brew "gnutls"
brew "gnupg"
brew "go"
brew "gost"
brew "graphviz"
brew "grpcurl"
brew "gtk+3"
brew "helm"
brew "helmfile"
brew "hugo"
brew "iperf3"
brew "jq"
brew "k9s"
brew "kubernetes-cli"
brew "kubectx"
brew "kustomize"
brew "libfido2"
brew "python@3.9"
brew "llvm"
brew "lsd"
brew "lua"
brew "lux"
brew "mas"
brew "mtr"
brew "mysql", restart_service: true
brew "neovim"
brew "netcat"
brew "node"
brew "pinentry-mac"
brew "pnpm"
brew "poetry"
brew "postgresql@14"
brew "pre-commit"
brew "protobuf"
brew "pyenv"
brew "qemu"
brew "qrencode"
brew "rclone"
brew "redis", restart_service: true
brew "ripgrep"
brew "rustup-init"
brew "starship"
brew "stylua"
brew "syncthing", restart_service: true
brew "tailscale"
brew "teleport"
brew "telnet"
brew "thrift"
brew "tmux"
brew "trzsz-go"
brew "wakeonlan"
brew "wget"
brew "wireguard-tools"
brew "hashicorp/tap/terraform"
brew "heroku/brew/heroku"
cask "1password"
cask "1password-cli"
cask "apifox"
cask "baidunetdisk"
cask "balenaetcher"
cask "bartender"
cask "battery"
cask "brave-browser"
cask "charles"
cask "clash-for-windows"
cask "dash"
cask "dbeaver-community"
cask "dbschema"
cask "discord"
cask "feishu"
cask "firefox-developer-edition"
cask "ganache"
cask "google-chrome"
cask "google-drive"
cask "ipfs"
cask "jetbrains-toolbox"
cask "keepingyouawake"
cask "logseq"
cask "lyricsx"
cask "microsoft-edge"
cask "monodraw"
cask "motrix"
cask "ngrok"
cask "notion"
cask "obsidian"
cask "only-switch"
cask "orbstack"
cask "paw"
cask "playcover-community"
cask "qq"
cask "raycast"
cask "sketch"
cask "sourcetree"
cask "spotify"
cask "stats"
cask "steam"
cask "telegram"
cask "temurin"
cask "tencent-meeting"
cask "todesk"
cask "utm"
cask "visual-studio-code"
cask "vnc-viewer"
cask "warp"
cask "wezterm"
cask "whisky"
cask "wireshark"
mas "Anki Notes", id: 1503902660
mas "BeanWise", id: 6446314789
mas "Bob", id: 1630034110
mas "ChatPDF", id: 1672831757
mas "EuDic", id: 434350458
mas "GarageBand", id: 682658836
mas "iMovie", id: 408981434
mas "Infuse", id: 1136220934
mas "iShot", id: 1485844094
mas "Keynote", id: 409183694
mas "Microsoft Excel", id: 462058435
mas "Microsoft Remote Desktop", id: 1295203466
mas "Microsoft Word", id: 462054704
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Reeder", id: 1529448980
mas "sing-box", id: 6451272673
mas "Slack", id: 803453959
mas "Tailscale", id: 1475387142
mas "TestFlight", id: 899247664
mas "Text to Speech", id: 1626767582
mas "The Unarchiver", id: 425424353
mas "Tiger Trade", id: 1459728204
mas "WeChat", id: 836500024
vscode "42Crunch.vscode-openapi"
vscode "alefragnani.Bookmarks"
vscode "antfu.browse-lite"
vscode "antfu.vite"
vscode "asvetliakov.vscode-neovim"
vscode "dbaeumer.vscode-eslint"
vscode "dongfg.vscode-beancount-formatter"
vscode "DotJoshJohnson.xml"
vscode "eamodio.gitlens"
vscode "EditorConfig.EditorConfig"
vscode "eriklynd.json-tools"
vscode "esbenp.prettier-vscode"
vscode "fabiospampinato.vscode-diff"
vscode "GitHub.codespaces"
vscode "GitHub.copilot"
vscode "GitHub.copilot-chat"
vscode "github.vscode-github-actions"
vscode "GitHub.vscode-pull-request-github"
vscode "gitpod.gitpod-desktop"
vscode "golang.go"
vscode "JuanBlanco.solidity"
vscode "LeetCode.vscode-leetcode"
vscode "Lencerf.beancount"
vscode "mohsen1.prettify-json"
vscode "ms-azuretools.vscode-docker"
vscode "ms-mssql.mssql"
vscode "ms-mssql.sql-bindings-vscode"
vscode "ms-ossdata.vscode-postgresql"
vscode "ms-python.isort"
vscode "ms-python.python"
vscode "ms-python.vscode-pylance"
vscode "ms-toolsai.jupyter-keymap"
vscode "ms-vscode-remote.remote-containers"
vscode "ms-vscode-remote.remote-ssh"
vscode "ms-vscode-remote.remote-ssh-edit"
vscode "ms-vscode-remote.remote-wsl"
vscode "ms-vscode-remote.vscode-remote-extensionpack"
vscode "ms-vscode.cpptools"
vscode "ms-vscode.makefile-tools"
vscode "ms-vscode.remote-explorer"
vscode "ms-vscode.remote-server"
vscode "ms-vscode.vscode-typescript-next"
vscode "polarmutex.beancount-langserver"
vscode "quicktype.quicktype"
vscode "redhat.java"
vscode "redhat.vscode-commons"
vscode "redhat.vscode-xml"
vscode "redhat.vscode-yaml"
vscode "RemixProject.ethereum-remix"
vscode "rust-lang.rust-analyzer"
vscode "serayuzgur.crates"
vscode "shd101wyy.markdown-preview-enhanced"
vscode "tamasfe.even-better-toml"
vscode "timonwong.shellcheck"
vscode "tomsaunders.vscode-workspace-explorer"
vscode "vadimcn.vscode-lldb"
vscode "VisualStudioExptTeam.intellicode-api-usage-examples"
vscode "VisualStudioExptTeam.vscodeintellicode"
vscode "vscjava.vscode-java-debug"
vscode "vscjava.vscode-java-dependency"
vscode "vscjava.vscode-java-pack"
vscode "vscjava.vscode-java-test"
vscode "vscjava.vscode-maven"
vscode "vscodevim.vim"
vscode "Vue.volar"
vscode "WakaTime.vscode-wakatime"
vscode "yzhang.markdown-all-in-one"
vscode "ZainChen.json"
vscode "zhwu95.riscv"
vscode "ZihanLi.at-helper"

22
.zshrc
View File

@@ -1,15 +1,12 @@
export GOPATH=$HOME/.go
# export GOPROXY=https://goproxy.cn,direct
# export PYENV_ROOT="$HOME/.pyenv"
export PNPM_HOME="$HOME/.pnpm"
export CARGO_HOME=$HOME/.cargo
export RYE_HOME=$HOME/.rye
export PATH="/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin"
export PATH="/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:$PATH"
export PATH="/opt/homebrew/opt/python@3/libexec/bin:$PATH"
export PATH="$RYE_HOME/shims:$PATH"
# $PYENV_ROOT/shims
export PATH="$CARGO_HOME/bin:$GOPATH/bin:$PATH"
export PATH="$HOME/.local/bin:${HOME}/.krew/bin:$PATH"
export PATH="$PNPM_HOME:$PATH"
@@ -246,24 +243,7 @@ alias pn='pnpm'
#export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
#eval "$(op completion zsh)"; compdef _op op
#export PYENV_VIRTUALENV_DISABLE_PROMPT=1
#eval "$(pyenv init -)"
#eval "$(pyenv virtualenv-init -)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
# __conda_setup="$('/Users/d0zingcat/.pyenv/versions/miniforge3-22.11.1-4/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
# if [ $? -eq 0 ]; then
# eval "$__conda_setup"
# else
# if [ -f "/Users/d0zingcat/.pyenv/versions/miniforge3-22.11.1-4/etc/profile.d/conda.sh" ]; then
# . "/Users/d0zingcat/.pyenv/versions/miniforge3-22.11.1-4/etc/profile.d/conda.sh"
# else
# export PATH="/Users/d0zingcat/.pyenv/versions/miniforge3-22.11.1-4/bin:$PATH"
# fi
# fi
# unset __conda_setup
# <<< conda initialize <<<
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# [ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh
@@ -273,3 +253,5 @@ bindkey -M viins '^f' vi-forward-char
bindkey -M viins '^d' vi-delete-char
[ -f ~/.env ] && source ~/.env
# Added by Windsurf
export PATH="/Users/d0zingcat/.codeium/windsurf/bin:$PATH"

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,7 @@
defaultBranch = main
[user]
email = leewtang@gmail.com
email = leewtang@gmail.com
name = d0zingcat
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPaVruhhL4O9BiAncnW1wH3jc7/hsqsXLknA8Xtnjjee

View File

@@ -8,6 +8,7 @@
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
"codeium.vim": { "branch": "main", "commit": "7a01ffb1e6538fe634f294908a50a7b680039284" },
"comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"dir-telescope.nvim": { "branch": "main", "commit": "805405b9f98dc3470f8676773dc0e6151a9158ed" },
"dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
"fidget.nvim": { "branch": "legacy", "commit": "2f7c08f45639a64a5c0abcf67321d52c3f499ae6" },
"gitsigns.nvim": { "branch": "main", "commit": "def49e48c6329527e344d0c99a0d2cd9fdf6bb84" },

View File

@@ -6,6 +6,7 @@ cmd([[ autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4 tex
cmd([[ autocmd FileType go setlocal tabstop=4 shiftwidth=4 softtabstop=4 textwidth=120 noexpandtab ]])
cmd([[ autocmd FileType json,jsonnet setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab ]])
cmd([[ autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=0 expandtab ]])
cmd([[ autocmd FileType gotmpl setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=0 expandtab ]])
cmd([[ autocmd FileType php setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120 ]])
cmd([[ autocmd FileType html,htmldjango,xhtml,haml setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=0 ]])
cmd([[ autocmd FileType ruby setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120 ]])

View File

@@ -0,0 +1,11 @@
return {
'princejoogie/dir-telescope.nvim',
event = 'VeryLazy',
dependencies = {
'nvim-telescope/telescope.nvim',
},
config = function()
require('dir-telescope').setup()
require('telescope').load_extension('dir')
end,
}

View File

@@ -43,4 +43,5 @@ return {
'<cmd>Telescope commands<cr>',
}
},
file_ignore_patterns = { '^vendor/', '^.git/' },
}

View File

@@ -1,50 +0,0 @@
arch-install-scripts
autoconf
autojump
automake
base
bat
binutils
bison
bpytop
cmake
docker
fakeroot-tcp
fd
flex
fzf
gcc
git
groff
helm
inetutils
kubectl
kubectx
libxslt
lsd
lua
m4
make
man-db
nano
neovim
nodejs-lts-gallium
npm
openssh
patch
pkgconf
python-pip
ripgrep
rsync
rust
starship
stylua
subsystemctl
sudo
syncthing
tmux
unzip
vim
which
yay
zsh

View File

@@ -1,31 +0,0 @@
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Convert Epoch to Human-Readable Date
# @raycast.mode silent
# @raycast.packageName Conversions
#
# Optional parameters:
# @raycast.icon ⏱
# @raycast.needsConfirmation false
# @raycast.argument1 {"type": "text", "placeholder": "Timestamp Epoch"}
#
# Documentation:
# @raycast.description Convert epoch to human-readable date.
# @raycast.author Siyuan Zhang | d0zingcat
# @raycast.authorURL https://github.com/kastnerorz | https://d0zingcat.dev
epoch=${1}
size=${#epoch}
if [[ $size == "10" ]]; then
human=$(echo $(date -r $epoch "+%F %T"))
echo -n "$human" | pbcopy
elif [[ $size == "13" ]]; then
human=$(echo $(date -r $(($epoch / 1000)) "+%F %T"))
echo -n "$human" | pbcopy
else
echo 'invalid data(valid length: 10 or 13)'
exit 1
fi
echo "Converted $epoch to $human"

View File

@@ -1,38 +0,0 @@
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Convert Human-Readable Date To Epoch
# @raycast.mode silent
# @raycast.packageName Conversions
#
# Optional parameters:
# @raycast.icon ⏱
# @raycast.needsConfirmation false
# @raycast.argument1 {"type": "text", "placeholder": "Date"}
#
# Documentation:
# @raycast.description Convert human-readable date to timestamp epoch.
# @raycast.author Siyuan Zhang | d0zingcat
# @raycast.authorURL https://github.com/kastnerorz | https://d0zingcat.dev
date=${1}
length=${#date}
if [[ $length -eq 19 ]]; then
epoch=$(echo $(date -jRuf "%F %T" "$date" "+%s"))
echo -n "$epoch" | pbcopy
elif [[ $length -eq 10 ]]; then
epoch=$(echo $(date -jRuf "%F %T" "$date 00:00:00" "+%s"))
echo -n "$epoch" | pbcopy
elif [[ $length -eq 8 ]]; then
yyyy=$(echo $date | cut -c1-4)
mm=$(echo $date | cut -c5-6)
dd=$(echo $date | cut -c7-8)
epoch=$(echo $(date -jRuf "%F %T" "$yyyy-$mm-$dd 00:00:00" "+%s"))
echo -n "$epoch" | pbcopy
else
echo "Invalid date format."
exit 1
fi
echo "Converted $date to $epoch"

View File

@@ -1,15 +0,0 @@
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open Script Commands Repository
# @raycast.packageName Bookmarks
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 📜
# Documentation:
# @raycast.description Open the GitHub repository for Script Commands provided by the community.
open https://github.com/raycast/script-commands/