Merge branch 'main' of github.com:d0zingcat/dotfiles

This commit is contained in:
Lee Tang
2022-03-28 15:26:39 +08:00
22 changed files with 4296 additions and 38 deletions

151
.Brewfile.Darwin.mbp Normal file
View File

@@ -0,0 +1,151 @@
tap "blendle/blendle"
tap "bufbuild/buf"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "jesseduffield/lazygit"
tap "mongodb/brew"
tap "muesli/tap"
tap "universal-ctags/universal-ctags"
tap "wez/wezterm"
brew "openssl@1.1"
brew "readline"
brew "sqlite"
brew "xz"
brew "python@3.10"
brew "autojump"
brew "automake"
brew "awscli"
brew "bat"
brew "bpytop"
brew "llvm"
brew "ccls"
brew "cmake"
brew "coreutils"
brew "ctags", link: false
brew "dosbox"
brew "dpkg"
brew "fd"
brew "fzf"
brew "gcc"
brew "gh"
brew "git-lfs"
brew "glib"
brew "unbound"
brew "gnutls"
brew "gnupg"
brew "go"
brew "grpcurl"
brew "hadoop"
brew "hbase"
brew "helm"
brew "htop"
brew "imagemagick"
brew "jmeter"
brew "jq"
brew "k9s"
brew "zookeeper"
brew "kafka"
brew "kind"
brew "kompose"
brew "kubernetes-cli"
brew "kubectx"
brew "lazygit"
brew "qemu"
brew "lima"
brew "lrzsz"
brew "lsd"
brew "lua"
brew "luarocks"
brew "maven"
brew "minikube"
brew "node@14"
brew "mongosh"
brew "protobuf"
brew "mosh", args: ["HEAD"]
brew "mysql"
brew "neofetch"
brew "neovim"
brew "nghttp2"
brew "nload"
brew "nmap"
brew "node"
brew "openssl@3"
brew "podman"
brew "postgresql"
brew "pyenv"
brew "pyenv-virtualenv"
brew "python@3.8"
brew "rabbitmq"
brew "rclone"
brew "rebar3"
brew "redis", restart_service: true
brew "ripgrep"
brew "ruby"
brew "ruby@2.7"
brew "rustup-init"
brew "shfmt"
brew "socat"
brew "sshuttle"
brew "starship"
brew "stylua"
brew "syncthing", restart_service: true
brew "telnet"
brew "the_silver_searcher"
brew "thrift"
brew "tmux"
brew "velero"
brew "wakeonlan"
brew "wget"
brew "zlib"
brew "zsh"
brew "bufbuild/buf/buf"
brew "mongodb/brew/mongodb-community"
brew "muesli/tap/duf"
brew "universal-ctags/universal-ctags/universal-ctags", args: ["HEAD"]
cask "adoptopenjdk"
cask "adoptopenjdk8"
cask "anki"
cask "balenaetcher"
cask "beyond-compare"
cask "brave-browser"
cask "calibre"
cask "charles"
cask "clashx"
cask "daisydisk"
cask "discord"
cask "font-jetbrains-mono-nerd-font"
cask "google-chrome"
cask "google-cloud-sdk"
cask "google-drive"
cask "iina"
cask "iterm2"
cask "jetbrains-toolbox"
cask "lark"
cask "logitech-options"
cask "monodraw"
cask "neteasemusic"
cask "netnewswire"
cask "notion"
cask "openemu"
cask "paw"
cask "postman"
cask "qbittorrent"
cask "qq"
cask "qqmusic"
cask "racket"
cask "raycast"
cask "sourcetree"
cask "spotify"
cask "stats"
cask "surge"
cask "telegram"
cask "typora"
cask "visual-studio-code"
cask "wechat"
cask "wechatwork"
cask "wezterm-nightly"

6
.zshrc
View File

@@ -103,9 +103,9 @@ alias kk='kubectl krew'
alias vim='nvim'
alias vi='nvim'
alias jumper='ssh tangli@10.1.4.14 -p 32200'
alias wol_xps8940="host root.pi.d0zingcat.xyz | cut -d ' ' -f 4 | cat | xargs -I {} wakeonlan -i {} -p 30009 'FC:44:82:13:BA:0F'"
alias nerdctl='lima nerdctl'
alias docker='lima docker'
alias wol_xps8940="host root.pi.d0zingcat.xyz | cut -d ' ' -f 4 | cat | xargs -I {} wakeonlan -i {} -p 200 'FC:44:82:13:BA:0F'"
#alias nerdctl='lima nerdctl'
#alias docker='lima docker'
alias batc='bat --paging=never'

3657
Brewfile.lock.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@ return {
yaml = {
schemas = {
['https://json.schemastore.org/github-workflow.json'] = '/.github/workflows/*',
Kubernetes = '/*k8s.yaml',
Kubernetes = { '/*k8s.yaml', '/*k8s.yml' },
},
},
},

View File

@@ -28,7 +28,7 @@ end
function _G.set_terminal_keymaps()
local opts = { noremap = true }
vim.api.nvim_buf_set_keymap(0, 't', '<C-o>', [[<C-\><C-n><C-w>]], opts)
vim.api.nvim_buf_set_keymap(0, 't', '<C-b>', [[<C-\><C-n><C-w>]], opts)
--vim.api.nvim_buf_set_keymap(0, 't', 'jk', [[<C-\><C-n>]], opts)
--vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts)
--vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts)

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,42 @@
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "coinmarketcap-crypto-price-crawler",
"title": "CoinMarketCap Crypto Search",
"description": "A price crawler to search crypto price from Coinmarketcap.",
"icon": "coinmarketcap-icon.png",
"author": "SonicSpark",
"license": "MIT",
"commands": [
{
"name": "index",
"title": "Search Crypto",
"subtitle": "CoinMarketCap",
"description": "Search for Coin Prices",
"mode": "view"
}
],
"dependencies": {
"@raycast/api": "^1.25.0",
"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.10",
"dayjs": "^1.10.7",
"fs-extra": "^10.0.0",
"fuzzysort": "^1.1.4",
"node-fetch": "^3.0.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/node": "~16.10.0",
"@types/react": "^17.0.28",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"react-devtools": "^4.19.2",
"typescript": "^4.4.3"
},
"scripts": {
"build": "ray build -e dist",
"dev": "ray develop"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -5,39 +5,41 @@
"description": "Read the latest stories of Hacker News.",
"icon": "icon.png",
"author": "thomas",
"categories": [
"News"
],
"contributors": [
"sxn"
],
"license": "MIT",
"commands": [
{
"name": "frontpage",
"title": "Read Frontpage",
"subtitle": "Hacker News",
"description": "Get the latest from the fontpage of Hacker News.",
"mode": "view"
},
{
"name": "show",
"title": "Read Show HN",
"subtitle": "Hacker News",
"description": "Get the latest from Show HN.",
"title": "Hacker News",
"description": "Get the latest Hacker News stories.",
"mode": "view"
}
],
"dependencies": {
"@raycast/api": "^1.28.0",
"got": "^11.8.2",
"rss-parser": "^3.12.0"
"@raycast/api": "^1.31.0",
"lodash": "^4.17.21",
"rss-parser": "3.12.0"
},
"devDependencies": {
"@types/lodash": "^4.14.180",
"@types/node": "~16.10.0",
"@types/react": "^17.0.28",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"typescript": "^4.4.3"
"@types/react": "17.0.41",
"@typescript-eslint/eslint-plugin": "5.15.0",
"@typescript-eslint/parser": "5.15.0",
"eslint": "8.11.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-react-hooks": "4.3.0",
"react-devtools": "^4.24.1",
"typescript": "4.6.2"
},
"scripts": {
"build": "ray build -e dist",
"dev": "ray develop"
"dev": "ray develop",
"lint": "ray lint"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,105 @@
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "spotify-controls",
"title": "Spotify Controls",
"description": "Control the Spotify app for macOS with your keyboard.",
"icon": "icon.png",
"author": "thomas",
"contributors": [
"altrdev",
"ron-myers"
],
"license": "MIT",
"commands": [
{
"name": "play",
"title": "Play",
"subtitle": "Spotify",
"description": "Plays current track in Spotify.",
"mode": "no-view"
},
{
"name": "pause",
"title": "Pause",
"subtitle": "Spotify",
"description": "Pause current track in Spotify.",
"mode": "no-view"
},
{
"name": "playPause",
"title": "Toggle Play/Pause",
"subtitle": "Spotify",
"description": "Toggles play or pause of current track in Spotify.",
"mode": "no-view"
},
{
"name": "previousTrack",
"title": "Previous Track",
"subtitle": "Spotify",
"description": "Skips to the previous track in Spotify.",
"mode": "no-view"
},
{
"name": "nextTrack",
"title": "Next Track",
"subtitle": "Spotify",
"description": "Skips to the next track in Spotify.",
"mode": "no-view"
},
{
"name": "current",
"title": "Current Track",
"subtitle": "Spotify",
"description": "Currently playing track in Spotify.",
"mode": "no-view"
},
{
"name": "copyUrl",
"title": "Copy Current Track URL",
"subtitle": "Spotify",
"description": "Currently playing song's URL in Spotify.",
"mode": "no-view"
},
{
"name": "shuffle",
"title": "Toggle Shuffle",
"subtitle": "Spotify",
"description": "Toggles shuffle mode in Spotify.",
"mode": "no-view"
},
{
"name": "shufflePlay",
"title": "Shuffle Play",
"subtitle": "Spotify",
"description": "Plays current track with shuffle enabled.",
"mode": "no-view"
},
{
"name": "repeat",
"title": "Toggle Repeat",
"subtitle": "Spotify",
"description": "Toggles repeat mode in Spotify.",
"mode": "no-view"
}
],
"dependencies": {
"@raycast/api": "^1.28.0",
"run-applescript": "^6.0.0"
},
"devDependencies": {
"@types/node": "~16.10.0",
"@types/react": "^17.0.28",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "2.4.1",
"typescript": "^4.4.3"
},
"scripts": {
"build": "ray build -e dist",
"dev": "ray develop",
"lint": "ray lint"
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long