├── vim └── .vimrc ├── nvim └── .config │ └── nvim │ ├── lint │ ├── .yamllint.yaml │ └── .markdownlint.yaml │ ├── .stylua.toml │ ├── snippets │ ├── package.json │ ├── global.json │ └── markdown.json │ ├── README.md │ ├── lua │ ├── configs │ │ ├── go_plugins.lua │ │ ├── lazy.lua │ │ ├── ufo.lua │ │ ├── noice.lua │ │ ├── lspconfig.lua │ │ ├── render-markdown.lua │ │ └── lspconfig_on_attach.lua │ ├── chadrc.lua │ ├── custom_ui │ │ └── base46.lua │ ├── options.lua │ ├── lua_snippets │ │ └── markdown.lua │ ├── pickers │ │ ├── gratitude.lua │ │ ├── fleeting_notes.lua │ │ └── inbox.lua │ └── utils │ │ └── lsp_bindings_markdown.lua │ ├── init.lua │ └── LICENSE ├── README.md ├── assets └── dev-env.png ├── fish └── .config │ └── fish │ ├── fish_plugins │ ├── functions │ ├── yazi.fish │ ├── y.fish │ ├── __z_clean.fish │ ├── __z_complete.fish │ └── __z_add.fish │ ├── completions │ └── fisher.fish │ ├── conf.d │ └── z.fish │ ├── config.fish │ ├── config.fish.backup │ └── fish_variables ├── other-configs ├── img │ ├── no-color.png │ ├── terminal.png │ ├── commit-sig.png │ ├── good-color.png │ ├── loaded-prompt.png │ ├── minimalist-prompt.png │ └── base16-options-cut-off.png └── scripts │ ├── demos │ └── velero-scripts │ │ ├── delete-all-backups.sh │ │ ├── local-minio │ │ ├── delete-all-backups.sh │ │ ├── delete-app.sh │ │ ├── acme-dev-data.tar.gz │ │ ├── 7_port-fwd-staging.sh │ │ ├── delete-velero.sh │ │ ├── 4_port-fwd-development.sh │ │ ├── 6_add-restore.sh │ │ ├── download │ │ │ └── 8_download.sh │ │ ├── 5_add-backup.sh │ │ ├── 2_add-app.sh │ │ ├── add_file.sh │ │ ├── update-image.sh │ │ ├── 1_install-velero.sh │ │ ├── base.yaml │ │ └── with-pv.yaml │ │ ├── aws-nginx-restic │ │ ├── delete-app.sh │ │ ├── 3_add-backup.sh │ │ ├── delete-volume-content.sh │ │ ├── update-image.sh │ │ ├── 2_add-pv.sh │ │ ├── 1_install-velero.sh │ │ ├── images │ │ │ └── pod.txt │ │ └── with-pv.yaml │ │ ├── delete-velero.sh │ │ └── test-install.sh │ ├── jq-script │ ├── applescript │ └── repos.scpt │ ├── bash │ ├── showgithubcontent │ ├── prs-reviewed.sh │ ├── testbrowser │ ├── bashbrowser │ ├── workflowbrowser │ ├── pr-monitoring.sh │ └── markdownbrowser │ ├── tmux-scripts │ └── workspace │ ├── knative-maintenance │ ├── git-stats-networking.sh │ ├── weekly-prs-to-review.sh │ └── daily-prs-to-review.sh │ ├── kind-with-registry.sh │ ├── knative-stats.sh │ ├── knative-stats copy.sh │ └── cluster-scripts │ └── aws ├── zellij └── .config │ └── zellij │ ├── plugins │ ├── harpoon.wasm │ ├── monocle.wasm │ ├── zjstatus.wasm │ └── zellij_forgot.wasm │ ├── layouts │ ├── daily.kdl │ └── work.kdl │ ├── themes │ └── rosepine.kdl │ ├── shell │ └── weather.sh │ └── README.md ├── yazi └── .config │ └── yazi │ ├── flavors │ ├── dracula.yazi │ │ ├── preview.png │ │ ├── README.md │ │ ├── LICENSE │ │ └── LICENSE-tmtheme │ ├── nightfly.yazi │ │ ├── preview.png │ │ ├── README.md │ │ ├── LICENSE │ │ └── LICENSE-tmtheme │ ├── catppuccin-latte.yazi │ │ ├── preview.png │ │ ├── README.md │ │ ├── LICENSE │ │ └── LICENSE-tmtheme │ ├── catppuccin-mocha.yazi │ │ ├── preview.png │ │ ├── README.md │ │ ├── LICENSE │ │ └── LICENSE-tmtheme │ └── catppuccin-macchiato.yazi │ │ ├── preview.png │ │ ├── README.md │ │ ├── LICENSE │ │ └── LICENSE-tmtheme │ ├── plugins │ ├── custom-shell.yazi │ │ ├── yazi_cmd_history │ │ └── LICENSE │ ├── yatline-tokyo-night.yazi │ │ ├── assets │ │ │ ├── day-header-normal.png │ │ │ ├── day-header-select.png │ │ │ ├── day-header-un-set.png │ │ │ ├── day-status-normal.png │ │ │ ├── day-status-select.png │ │ │ ├── day-status-un-set.png │ │ │ ├── moon-header-normal.png │ │ │ ├── moon-header-select.png │ │ │ ├── moon-header-un-set.png │ │ │ ├── moon-status-normal.png │ │ │ ├── moon-status-select.png │ │ │ ├── moon-status-un-set.png │ │ │ ├── night-header-normal.png │ │ │ ├── night-header-select.png │ │ │ ├── night-header-un-set.png │ │ │ ├── night-status-normal.png │ │ │ ├── night-status-select.png │ │ │ ├── night-status-un-set.png │ │ │ ├── storm-header-normal.png │ │ │ ├── storm-header-select.png │ │ │ ├── storm-header-un-set.png │ │ │ ├── storm-status-normal.png │ │ │ ├── storm-status-select.png │ │ │ └── storm-status-un-set.png │ │ ├── README.md │ │ └── LICENSE │ ├── yatline.yazi │ │ ├── README.md │ │ └── LICENSE │ ├── smart-filter.yazi │ │ ├── README.md │ │ ├── LICENSE │ │ └── main.lua │ ├── yatline-symlink.yazi │ │ ├── main.lua │ │ ├── README.md │ │ └── LICENSE │ ├── full-border.yazi │ │ ├── README.md │ │ ├── LICENSE │ │ └── main.lua │ ├── chmod.yazi │ │ ├── README.md │ │ ├── LICENSE │ │ └── main.lua │ ├── glow.yazi │ │ ├── README.md │ │ ├── LICENSE │ │ └── main.lua │ ├── git.yazi │ │ ├── LICENSE │ │ └── README.md │ ├── toggle-pane.yazi │ │ ├── LICENSE │ │ ├── main.lua │ │ └── README.md │ ├── yatline-dracula.yazi │ │ ├── LICENSE │ │ ├── README.md │ │ └── main.lua │ └── yatline-githead.yazi │ │ ├── LICENSE │ │ └── README.md │ ├── theme.toml │ ├── yazi.toml │ ├── package.toml │ ├── README.md │ └── init.lua ├── Tools.md ├── .luarc.json ├── markin └── .config │ └── markin │ └── .markin.yaml ├── .gitignore ├── installer-mac └── brew-install.sh ├── other_startup_items.md ├── git ├── .gitignore_global └── .gitconfig ├── bat └── .config │ └── bat │ ├── bat-catppuccin-preview.sh │ └── config ├── lazygit └── .config │ └── lazygit │ └── config.yml ├── k9s └── .k9s │ ├── config.yml │ └── skin.yml ├── ghostty └── .config │ └── ghostty │ ├── README.md │ └── config ├── gh └── .config │ └── gh │ └── config.yml ├── install.sh ├── starship └── .config │ └── starship.toml └── eza └── .config └── eza └── theme.yml /vim/.vimrc: -------------------------------------------------------------------------------- 1 | let mapleader = " " 2 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lint/.yamllint.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | MD013: false 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # dotfiles 2 | 3 | ![dev-env](assets/dev-env.png) 4 | -------------------------------------------------------------------------------- /assets/dev-env.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/assets/dev-env.png -------------------------------------------------------------------------------- /fish/.config/fish/fish_plugins: -------------------------------------------------------------------------------- 1 | jorgebucaran/fisher 2 | evanlucas/fish-kubectl-completions 3 | jethrokuan/z 4 | -------------------------------------------------------------------------------- /other-configs/img/no-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/no-color.png -------------------------------------------------------------------------------- /other-configs/img/terminal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/terminal.png -------------------------------------------------------------------------------- /other-configs/img/commit-sig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/commit-sig.png -------------------------------------------------------------------------------- /other-configs/img/good-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/good-color.png -------------------------------------------------------------------------------- /other-configs/img/loaded-prompt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/loaded-prompt.png -------------------------------------------------------------------------------- /other-configs/img/minimalist-prompt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/minimalist-prompt.png -------------------------------------------------------------------------------- /zellij/.config/zellij/plugins/harpoon.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/zellij/.config/zellij/plugins/harpoon.wasm -------------------------------------------------------------------------------- /zellij/.config/zellij/plugins/monocle.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/zellij/.config/zellij/plugins/monocle.wasm -------------------------------------------------------------------------------- /other-configs/img/base16-options-cut-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/img/base16-options-cut-off.png -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/delete-all-backups.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . demo-magic.sh 4 | 5 | pe "velero backup delete --all" -------------------------------------------------------------------------------- /zellij/.config/zellij/plugins/zjstatus.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/zellij/.config/zellij/plugins/zjstatus.wasm -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/dracula.yazi/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/flavors/dracula.yazi/preview.png -------------------------------------------------------------------------------- /zellij/.config/zellij/plugins/zellij_forgot.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/zellij/.config/zellij/plugins/zellij_forgot.wasm -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/delete-all-backups.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "velero backup delete --all" -------------------------------------------------------------------------------- /other-configs/scripts/jq-script: -------------------------------------------------------------------------------- 1 | [.[]| with_entries( .key |= ascii_downcase ) ] 2 | | (.[0] |keys_unsorted | @tsv) 3 | , (.[] |map(.) |@tsv) -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/nightfly.yazi/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/flavors/nightfly.yazi/preview.png -------------------------------------------------------------------------------- /nvim/.config/nvim/lint/.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | # Default: https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml 2 | --- 3 | MD013: false 4 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/delete-app.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl delete namespaces nginx-example" -------------------------------------------------------------------------------- /fish/.config/fish/functions/yazi.fish: -------------------------------------------------------------------------------- 1 | function yazi --description 'alias yazi=env TERM=xterm-kitty yazi' 2 | env TERM=xterm-kitty yazi $argv 3 | 4 | end 5 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/delete-app.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl delete namespaces restic-nginx" -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history: -------------------------------------------------------------------------------- 1 | fish -c 'll;exit' 2 | fish -c 'la;exit' 3 | fish -c ';exit' 4 | fish -c 'cd;read' 5 | fish -c 'cd;exit' 6 | -------------------------------------------------------------------------------- /Tools.md: -------------------------------------------------------------------------------- 1 | # Tools 2 | 3 | ## Useful tooling 4 | 5 | [darrenburns/posting: The modern API client that lives in your terminal.](https://github.com/darrenburns/posting) 6 | -------------------------------------------------------------------------------- /other-configs/scripts/applescript/repos.scpt: -------------------------------------------------------------------------------- 1 | 2 | do shell script "/Users/carlisiac/working/src/github.com/carlisia/dotfiles/other-configs/scripts/bash/repo-management.sh" -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-latte.yazi/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/flavors/catppuccin-latte.yazi/preview.png -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-mocha.yazi/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/flavors/catppuccin-mocha.yazi/preview.png -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-macchiato.yazi/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/flavors/catppuccin-macchiato.yazi/preview.png -------------------------------------------------------------------------------- /nvim/.config/nvim/.stylua.toml: -------------------------------------------------------------------------------- 1 | column_width = 120 2 | line_endings = "Unix" 3 | indent_type = "Spaces" 4 | indent_width = 2 5 | quote_style = "AutoPreferDouble" 6 | call_parentheses = "None" 7 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/acme-dev-data.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/other-configs/scripts/demos/velero-scripts/local-minio/acme-dev-data.tar.gz -------------------------------------------------------------------------------- /.luarc.json: -------------------------------------------------------------------------------- 1 | { 2 | $schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json", 3 | "Lua.diagnostics.globals": [ 4 | "vim", 5 | "let" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-header-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-header-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-header-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-header-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-header-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-header-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-status-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-status-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-status-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-status-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-status-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/day-status-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-header-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-header-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-header-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-header-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-header-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-header-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-status-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-status-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-status-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-status-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-status-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/moon-status-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-header-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-header-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-header-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-header-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-header-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-header-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-status-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-status-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-status-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-status-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-status-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/night-status-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-header-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-header-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-header-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-header-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-header-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-header-un-set.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-status-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-status-normal.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-status-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-status-select.png -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-status-un-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carlisia/dotfiles/HEAD/yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/assets/storm-status-un-set.png -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/7_port-fwd-staging.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl -n nginx-example port-forward $(kubectl -n nginx-example get pod -o name|cut -d/ -f2) 8100:80" -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/delete-velero.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl delete namespace/velero clusterrolebinding/velero" 6 | pe "kubectl delete crds -l component=velero" -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/4_port-fwd-development.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl -n nginx-example port-forward $(kubectl -n nginx-example get pod -o name|cut -d/ -f2) 8000:80" -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/delete-velero.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . demo-magic.sh 4 | 5 | pe "kubectl delete namespace/velero clusterrolebinding/velero" 6 | pe "kubectl delete crds -l component=velero" 7 | pe "kubectl delete ns nginx-example" -------------------------------------------------------------------------------- /markin/.config/markin/.markin.yaml: -------------------------------------------------------------------------------- 1 | project_dir: $VAULT_MAIN 2 | daily_note_path: "Flows/Daily Notes" 3 | daily_note_name: "daily.md" 4 | section: "## 💡 🧠 🔥 Fleeting Ideas" 5 | line: "- New item" 6 | position: after-heading 7 | create_section_if_missing: true 8 | -------------------------------------------------------------------------------- /fish/.config/fish/functions/y.fish: -------------------------------------------------------------------------------- 1 | function y 2 | set tmp (mktemp -t "yazi-cwd.XXXXXX") 3 | yazi $argv --cwd-file="$tmp" 4 | if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ] 5 | builtin cd -- "$cwd" 6 | end 7 | command rm -f -- "$tmp" 8 | end 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ./nvim/.config/nvim/tmp 2 | 3 | *.so 4 | *.swo 5 | *.swp 6 | 7 | google-cloud-sdk 8 | 9 | /gh/.config/gh/hosts.yml 10 | 11 | /other-configs/scripts/*.*.txt 12 | 13 | yaml-language-server 14 | 15 | newchad.sh 16 | 17 | /lazygit/.config/lazygit/state.yml 18 | 19 | /.tmp 20 | -------------------------------------------------------------------------------- /installer-mac/brew-install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | 3 | # install brew 4 | if ! hash brew 5 | then 6 | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 7 | else 8 | printf "\e[93m%s\e[m\n" "You already have brew installed." 9 | fi 10 | 11 | brew update 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /other_startup_items.md: -------------------------------------------------------------------------------- 1 | # Other startup items 2 | 3 | ## Fonts 4 | Consolas 5 | https://www.fontpalace.com/font-download/consolas/ 6 | 7 | 8 | Fira Code 9 | brew tap homebrew/cask-fonts 10 | brew install --cask font-fira-code 11 | 12 | JetBrains Mono 13 | brew tap homebrew/cask-fonts 14 | brew install --cask font-jetbrains-mono -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/6_add-restore.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | random=$(openssl rand -hex 12) 6 | pe "velero restore create $random --from-backup acme-dev" 7 | wait 8 | 9 | pe "velero restore describe $random --details" 10 | # wait 11 | 12 | # pe "velero backup logs $random" 13 | 14 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/download/8_download.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../../demo-magic.sh 4 | 5 | pe "velero backup download acme-dev" 6 | wait 7 | 8 | pe "tree" 9 | wait 10 | 11 | pe "tar -xvf acme-dev-data.tar.gz" 12 | wait 13 | 14 | pe "tree | less" 15 | wait 16 | 17 | pe "rm -rf metadata/ resources/ acme-dev-data.tar.gz" -------------------------------------------------------------------------------- /nvim/.config/nvim/snippets/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "snippets", 3 | "contributes": { 4 | "snippets": [ 5 | { 6 | "language": "markdown", 7 | "path": "./markdown.json" 8 | }, 9 | { 10 | "language": [ 11 | "all" 12 | ], 13 | "path": "./global.json" 14 | } 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/5_add-backup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | # random=$(openssl rand -hex 12) 6 | random=acme-dev 7 | pe "velero backup create $random --include-namespaces nginx-example" 8 | wait 9 | 10 | pe "velero backup describe $random --details" 11 | wait 12 | 13 | pe "velero backup logs $random" 14 | 15 | -------------------------------------------------------------------------------- /yazi/.config/yazi/theme.toml: -------------------------------------------------------------------------------- 1 | # "$schema" = "https://yazi-rs.github.io/schemas/theme.json" 2 | 3 | [flavor] 4 | light = "catppuccin-latte" 5 | # light = "nightfly" 6 | # dark = "nightfly" 7 | dark = "catppuccin-macchiato" 8 | # dark = "catppuccin-mocha" 9 | # dark = "dracula" 10 | 11 | # border_style = { fg = "#1d3b53" } 12 | # border_style = { fg = "#8087a2" } 13 | -------------------------------------------------------------------------------- /git/.gitignore_global: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .tags 3 | .tags1 4 | .vscode 5 | 6 | output.yaml 7 | mainc.yaml 8 | valuesc.yaml 9 | 10 | .dccache 11 | .trunk 12 | code-review* 13 | devcontainer 14 | newrelic_agent.log 15 | 16 | /worktrees 17 | 18 | .env 19 | .envrc 20 | 21 | # To ensure Git starts using your updated global ignore file: 22 | # git config --global core.excludesfile '~/.gitignore_global' 23 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/2_add-app.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl apply -f base.yaml" 6 | 7 | pe "kubectl get ns" 8 | 9 | # pe "kubectl get pods --namespace nginx-example" 10 | # wait 11 | 12 | # pe "kubectl -n nginx-example annotate pod/$(kubectl -n nginx-example get pod -o name|cut -d/ -f2) backup.velero.io/backup-volumes=nginx-logs" 13 | -------------------------------------------------------------------------------- /fish/.config/fish/functions/__z_clean.fish: -------------------------------------------------------------------------------- 1 | function __z_clean -d "Clean up .z file to remove paths no longer valid" 2 | set -l tmpfile (mktemp $Z_DATA.XXXXXX) 3 | 4 | if test -f $tmpfile 5 | while read line 6 | set -l path (string split '|' $line)[1] 7 | test -d $path; and echo $line 8 | end <$Z_DATA >$tmpfile 9 | command mv -f $tmpfile $Z_DATA 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/add_file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl -n nginx-example exec $(kubectl -n nginx-example get pod -o name|cut -d/ -f2) ls /home" 6 | pe "kubectl -n nginx-example exec $(kubectl -n nginx-example get pod -o name|cut -d/ -f2) touch /home/SHANGHAI_IS_THE_BEST.txt" 7 | pe "kubectl -n nginx-example exec $(kubectl -n nginx-example get pod -o name|cut -d/ -f2) ls /home" -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/3_add-backup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | random=$(openssl rand -hex 12) 6 | pe "velero backup create $random --include-namespaces restic-nginx" 7 | 8 | # pe "velero backup logs $random | grep error" 9 | pe "velero backup logs $random" 10 | 11 | pe "velero backup describe $random --details" 12 | 13 | pe "kubectl get podvolumebackups -l velero.io/backup-name=$random -o yaml" -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/delete-volume-content.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl get pods -n restic-nginx" 6 | p "#kubectl -n restic-nginx exec -it -- /bin/bash" 7 | 8 | cmd 9 | 10 | # cd var/log/nginx 11 | 12 | 13 | random=$(openssl rand -hex 12) 14 | pe "velero backup create $random --include-namespaces restic-nginx" 15 | 16 | pe "velero backup logs $random | grep error" 17 | 18 | pe "velero backup describe $random --details" -------------------------------------------------------------------------------- /nvim/.config/nvim/README.md: -------------------------------------------------------------------------------- 1 | **This repo is supposed to used as config by NvChad users!** 2 | 3 | - The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo. 4 | - So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"` 5 | - So you can delete the .git from this repo ( when you clone it locally ) or fork it :) 6 | 7 | # Credits 8 | 9 | 1) Lazyvim starter https://github.com/LazyVim/starter as nvchad's starter was inspired by Lazyvim's . It made a lot of things easier! 10 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/update-image.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | random=$(openssl rand -hex 12) 6 | pe "REGISTRY=carlisia VERSION=$random make update container push -C /Users/carlisia/work/src/github.com/heptio/velero/" 7 | 8 | pe "kubectl -n velero set image deploy/velero velero=carlisia/velero:$random" 9 | 10 | pe "kubectl -n velero set image daemonset/restic restic=carlisia/velero:$random" 11 | 12 | pe "kubectl -n velero delete pods -l deploy=velero" 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/configs/go_plugins.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | M.govim = { 4 | go = "go", -- go command, can be go[default] or e.g. go1.18beta1 5 | test_runner = "gotestsum", 6 | lsp_cfg = false, 7 | lsp_keymaps = false, 8 | dap_debug = true, 9 | dap_debug_gui = true, 10 | dap_debug_keymap = true, 11 | comment_placeholder = "  ", 12 | lsp_inlay_hints = { enable = true }, 13 | comment = { 14 | highlight = true, 15 | }, 16 | run_in_floaterm = true, 17 | luasnip = true, 18 | diagnostic = { 19 | hdlr = true, 20 | }, 21 | } 22 | 23 | return M 24 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/showgithubcontent: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # Takes owner, repo and path and shows content of that resource from GitHub. 4 | # Also accepts optional language and colour parameter. 5 | # Uses gh, base64 and bat. 6 | 7 | 8 | declare owner=$1 9 | declare repo=$2 10 | declare path=$3 11 | declare language="${4:-txt}" 12 | declare color="${5:-never}" 13 | 14 | gh api \ 15 | --cache "${GH_CACHETIME:-1h}" \ 16 | --jq '.content' \ 17 | "/repos/$owner/$repo/contents/$path" \ 18 | | base64 --decode -i - \ 19 | | bat --color "$color" --theme Nord --plain --language "$language" - 20 | 21 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/2_add-pv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | pe "kubectl apply -f /Users/carlisia/work/src/github.com/vmware-tanzu/velero/examples/nginx-app/with-pv.yaml" 6 | 7 | pe "kubectl get pods --namespace restic-nginx" 8 | p "#kubectl -n restic-nginx annotate pod/ backup.velero.io/backup-volumes=nginx-logs" 9 | 10 | cmd 11 | 12 | random=$(openssl rand -hex 12) 13 | pe "velero backup create $random --include-namespaces restic-nginx" 14 | 15 | cmd 16 | 17 | 18 | 19 | ---- 20 | velero backup create nginx-backup --include-namespaces nginx-example -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/update-image.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | random=$(openssl rand -hex 12) 6 | # pe "REGISTRY=carlisia VERSION=$random make update container push -C /Users/carlisia/work/src/github.com/heptio/velero/" 7 | 8 | # pe "kubectl -n velero set image deploy/velero velero=carlisia/velero:$random" 9 | pe "kubectl -n velero set image deploy/velero velero=carlisia/velero:a0a59ed29bc25720aac61ea0" 10 | 11 | # pe "kubectl -n velero delete pods -l deploy=velero" 12 | 13 | 14 | 15 | 16 | # kubectl -n velero set image deploy/velero velero=carlisia/velero:a0a59ed29bc25720aac61ea0 -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/chadrc.lua: -------------------------------------------------------------------------------- 1 | --@type ChadrcConfig 2 | local M = {} 3 | 4 | local highlights = require "custom_ui.base46" 5 | local ui = require "custom_ui.statusline" 6 | 7 | -- Powerful Collection of 68 beautifully crafted themes, extensible and compiled to bytecode 8 | M.base46 = { 9 | theme = "bearded-arc", 10 | theme_toggle = { 11 | "bearded-arc", 12 | "one_light", 13 | }, 14 | 15 | hl_override = highlights.overrides, 16 | } 17 | 18 | -- Collection of various ui's like statusline, tabline, dashboard, cheatsheet etc 19 | M.ui = { 20 | cmp = ui.cmp_ui, 21 | statusline = ui.statusline, 22 | } 23 | 24 | return M 25 | -------------------------------------------------------------------------------- /nvim/.config/nvim/snippets/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "add todo": { 3 | "prefix": "todo", 4 | "body": [" TODO: $1"], 5 | "description": "Add a todo mark" 6 | }, 7 | "add done": { 8 | "prefix": "done", 9 | "body": [" DONE: $1"], 10 | "description": "Add a done mark" 11 | }, 12 | "add fix": { 13 | "prefix": "fix", 14 | "body": [" FIX: $1"], 15 | "description": "Add a fix mark" 16 | }, 17 | "add hack": { 18 | "prefix": "hack", 19 | "body": [" HACK: $1"], 20 | "description": "Add a hack mark" 21 | }, 22 | "add note": { 23 | "prefix": "note", 24 | "body": [" NOTE: $1"], 25 | "description": "Add a note mark" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /bat/.config/bat/bat-catppuccin-preview.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash 3 | 4 | # File to preview 5 | FILE="$1" 6 | 7 | # Check if file exists 8 | if [[ ! -f "$FILE" ]]; then 9 | echo "Usage: $0 " 10 | exit 1 11 | fi 12 | 13 | # List of Catppuccin themes 14 | THEMES=("Catppuccin Latte" "Catppuccin Frappe" "Catppuccin Macchiato" "Catppuccin Mocha") 15 | 16 | # Loop through themes and show file 17 | for THEME in "${THEMES[@]}"; do 18 | echo 19 | echo "==============================" 20 | echo " Theme: $THEME" 21 | echo "==============================" 22 | bat --theme="$THEME" "$FILE" 23 | echo 24 | read -n 1 -s -r -p "Press any key to continue to the next theme..." 25 | done 26 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/prs-reviewed.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | now=$(date +"%m_%d_%Y") 4 | now=$(date +"%Y-%m-%d") 5 | printf "📆 Last Run: %s\n" "${now}" > ~/repos-workflow/prs-reviewed.yaml 6 | echo -e "🤓 PRs Reviewed\n" >> ~/repos-workflow/prs-reviewed.yaml 7 | 8 | echo -e "---\nPRs Reviewed (。◕‿◕。)" >> ~/repos-workflow/prs-reviewed.yaml 9 | until python3 -m gita shell 'gh pr list -s merged --search "org:knative org:knative-sandbox commenter:@me approve in:comments -author:@me -author:knative-automation"' | /usr/local/bin/ag 'MERGED' >> ~/repos-workflow/prs-reviewed.yaml; do 10 | printf '.' 11 | sleep 5 12 | done 13 | 14 | echo -e "\ndone ✅" >> ~/repos-workflow/prs-reviewed.yaml 15 | 16 | # https://cli.github.com/manual/gh_help_formatting 17 | 18 | 19 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline.yazi/README.md: -------------------------------------------------------------------------------- 1 | # yatline.yazi 2 | The first Yazi plugin for customizing both header-line and status-line. 3 | 4 | ![yatline](https://github.com/user-attachments/assets/61013ec8-7fd9-42df-a9f4-f254663871fe) 5 | 6 | > [!NOTE] 7 | > Check out [wiki](https://github.com/imsi32/yatline.yazi/wiki) for installation steps, configuration and further information. 8 | 9 | ## Features 10 | - Lualine-like Design 11 | - Flexible 12 | - Simple 13 | - Automatic Configuration 14 | - Themes (See: [yatline-themes](https://github.com/imsi32/yatline-themes)) 15 | - Add-ons (See: [yatline-addons](https://github.com/imsi32/yatline-addons)) 16 | 17 | ## Credits 18 | - [Lualine](https://github.com/nvim-lualine/lualine.nvim) 19 | - [Yazi](https://github.com/sxyazi/yazi) 20 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/smart-filter.yazi/README.md: -------------------------------------------------------------------------------- 1 | # smart-filter.yazi 2 | 3 | A Yazi plugin that makes filters smarter: continuous filtering, automatically enter unique directory, open file on submitting. 4 | 5 | https://github.com/yazi-rs/plugins/assets/17523360/72aaf117-1378-4f7e-93ba-d425a79deac5 6 | 7 | ## Installation 8 | 9 | ```sh 10 | ya pack -a yazi-rs/plugins:smart-filter 11 | ``` 12 | 13 | ## Usage 14 | 15 | Add this to your `~/.config/yazi/keymap.toml`: 16 | 17 | ```toml 18 | [[manager.prepend_keymap]] 19 | on = "F" 20 | run = "plugin smart-filter" 21 | desc = "Smart filter" 22 | ``` 23 | 24 | Make sure the F key is not used elsewhere. 25 | 26 | ## License 27 | 28 | This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. 29 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-symlink.yazi/main.lua: -------------------------------------------------------------------------------- 1 | function hovered() 2 | local hovered = cx.active.current.hovered 3 | if hovered then 4 | return hovered 5 | else 6 | return "" 7 | end 8 | end 9 | 10 | local function setup(_, options) 11 | options = options or {} 12 | 13 | local config = { 14 | symlink_color = options.symlink_color or "silver", 15 | } 16 | 17 | if Yatline ~= nil then 18 | function Yatline.coloreds.get:symlink() 19 | local symlink = {} 20 | local linked = "" 21 | 22 | local h = hovered() 23 | if h.link_to ~= nil then 24 | linked = " -> " .. tostring(h.link_to) 25 | end 26 | 27 | table.insert(symlink, { linked, config.symlink_color }) 28 | return symlink 29 | end 30 | end 31 | end 32 | 33 | return { setup = setup } 34 | -------------------------------------------------------------------------------- /fish/.config/fish/functions/__z_complete.fish: -------------------------------------------------------------------------------- 1 | function __z_complete -d "add completions" 2 | complete -c $Z_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k 3 | complete -c $ZO_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k 4 | 5 | complete -c $Z_CMD -s c -l clean -d "Cleans out $Z_DATA" 6 | complete -c $Z_CMD -s e -l echo -d "Prints best match, no cd" 7 | complete -c $Z_CMD -s l -l list -d "List matches, no cd" 8 | complete -c $Z_CMD -s p -l purge -d "Purges $Z_DATA" 9 | complete -c $Z_CMD -s r -l rank -d "Searches by rank, cd" 10 | complete -c $Z_CMD -s t -l recent -d "Searches by recency, cd" 11 | complete -c $Z_CMD -s h -l help -d "Print help" 12 | complete -c $Z_CMD -s x -l delete -d "Removes the current directory from $Z_DATA" 13 | end 14 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/full-border.yazi/README.md: -------------------------------------------------------------------------------- 1 | # full-border.yazi 2 | 3 | Add a full border to Yazi to make it look fancier. 4 | 5 | ![full-border](https://github.com/yazi-rs/plugins/assets/17523360/ef81b560-2465-4d36-abf2-5d21dcb7b987) 6 | 7 | ## Installation 8 | 9 | ```sh 10 | ya pack -a yazi-rs/plugins:full-border 11 | ``` 12 | 13 | ## Usage 14 | 15 | Add this to your `init.lua` to enable the plugin: 16 | 17 | ```lua 18 | require("full-border"):setup() 19 | ``` 20 | 21 | Or you can customize the border type: 22 | 23 | ```lua 24 | require("full-border"):setup { 25 | -- Available values: ui.Border.PLAIN, ui.Border.ROUNDED 26 | type = ui.Border.ROUNDED, 27 | } 28 | ``` 29 | 30 | ## License 31 | 32 | This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. 33 | -------------------------------------------------------------------------------- /yazi/.config/yazi/yazi.toml: -------------------------------------------------------------------------------- 1 | "$schema" = "https://yazi-rs.github.io/schemas/yazi.json" 2 | 3 | [manager] 4 | linemode = "size_and_mtime" 5 | ratio = [2, 3, 4] 6 | sort_by = "alphabetical" 7 | sort_reverse = false 8 | sort_dir_first = true 9 | show_hidden = true 10 | show_symlink = true 11 | scrolloff = 8 # Set the scroll offset to 8 from the bottom and top 12 | 13 | [preview] # Configuration for the file previewer 14 | wrap = "yes" # Wrap long lines for text previews 15 | max_width = 3000 # Make the maximum size of the images larger 16 | max_height = 3000 17 | 18 | [plugin] 19 | prepend_previewers = [{ name = "*.md", run = "glow" }] 20 | 21 | [[plugin.prepend_fetchers]] 22 | id = "git" 23 | name = "*" 24 | run = "git" 25 | 26 | [[plugin.prepend_fetchers]] 27 | id = "git" 28 | name = "*/" 29 | run = "git" 30 | -------------------------------------------------------------------------------- /fish/.config/fish/completions/fisher.fish: -------------------------------------------------------------------------------- 1 | complete --command fisher --exclusive --long help --description "Print help" 2 | complete --command fisher --exclusive --long version --description "Print version" 3 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins" 4 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins" 5 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins" 6 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex" 7 | complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)" 8 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/1_install-velero.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | clear 6 | 7 | p "#setup variables:" 8 | pe "BUCKET=c-aws-velero-bucket" 9 | pe "REGION=us-east-2" 10 | p "#install Velero:" 11 | pe "velero install --provider aws --bucket $BUCKET --backup-location-config region=$REGION --snapshot-location-config region=$REGION --secret-file ~/creds/credentials-velero --use-restic" 12 | wait 13 | 14 | pe "kubectl logs deployment/velero -n velero" 15 | p "#end of log" 16 | wait 17 | 18 | # p "#Velero installed in a pod as a deployment:" 19 | # cat images/pod.txt 20 | 21 | # pe ./delete-all-backups.sh -n 22 | 23 | 24 | velero install --provider aws --bucket c-aws-velero-bucket --backup-location-config region=us-east-2 --snapshot-location-config region=us-east-2 --secret-file ~/creds/credentials-velero -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/chmod.yazi/README.md: -------------------------------------------------------------------------------- 1 | # chmod.yazi 2 | 3 | Execute `chmod` on the selected files to change their mode. This plugin is only available on Unix platforms since it relies on [`chmod(2)`](https://man7.org/linux/man-pages/man2/chmod.2.html). 4 | 5 | https://github.com/yazi-rs/plugins/assets/17523360/7aa3abc2-d057-498c-8473-a6282c59c464 6 | 7 | ## Installation 8 | 9 | ```sh 10 | ya pack -a yazi-rs/plugins:chmod 11 | ``` 12 | 13 | ## Usage 14 | 15 | Add this to your `~/.config/yazi/keymap.toml`: 16 | 17 | ```toml 18 | [[manager.prepend_keymap]] 19 | on = [ "c", "m" ] 20 | run = "plugin chmod" 21 | desc = "Chmod on selected files" 22 | ``` 23 | 24 | Make sure the c => m key is not used elsewhere. 25 | 26 | ## License 27 | 28 | This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. 29 | -------------------------------------------------------------------------------- /bat/.config/bat/config: -------------------------------------------------------------------------------- 1 | # https://github.com/sharkdp/bat 2 | 3 | #--theme="TwoDark" 4 | --theme="Catppuccin Macchiato" 5 | # when adding a new theme, must update the binary cache: bat cache --build 6 | 7 | # Show line numbers, git changes, and syntax highlight 8 | --style=full 9 | 10 | # Always use color 11 | --color=always 12 | 13 | # Disable paging for short files 14 | --paging=auto 15 | 16 | # Don’t wrap lines by default 17 | --wrap=never 18 | 19 | # Use tabs instead of spaces (or tweak if you want soft tabs) 20 | --tabs=4 21 | 22 | # Include Git changes in gutter (modified lines, etc) 23 | --decorations=always 24 | 25 | # Allow less to handle mouse/scrolling (optional, if using pager) 26 | --pager="less -FR" 27 | 28 | # Show non-printable characters like tabs and trailing whitespace 29 | # (Optional — useful for debugging code formatting) 30 | # --show-nonprintable 31 | 32 | -------------------------------------------------------------------------------- /lazygit/.config/lazygit/config.yml: -------------------------------------------------------------------------------- 1 | gui: 2 | # newpaper_dark 3 | authorColors: 4 | "*": "#8195E7" 5 | branchColors: 6 | "main": "#72AEB3" 7 | "master": "#72AEB3" 8 | "hotfix": "#D75F66" 9 | "bug": "#D75F66" 10 | "release": "#5FAF5F" 11 | "develop": "#F5824B" 12 | "bugfix": "#F5824B" 13 | "dev": "#F5824B" 14 | "wip": "#F5824B" 15 | "feature": "#E878D8" 16 | "feat": "#E878D8" 17 | theme: 18 | lightTheme: false 19 | defaultFgColor: 20 | - "#EBEAE2" 21 | activeBorderColor: 22 | - "#A274D1" 23 | - bold 24 | inactiveBorderColor: 25 | - "#787878" 26 | optionsTextColor: 27 | - "#7DB1D5" 28 | selectedLineBgColor: 29 | - "#34495E" 30 | selectedRangeBgColor: 31 | - "#34495E" 32 | cherryPickedCommitBgColor: 33 | - "#303030" 34 | cherryPickedCommitFgColor: 35 | - "#5FAFD7" 36 | unstagedChangesColor: 37 | - "#D73A49" 38 | -------------------------------------------------------------------------------- /zellij/.config/zellij/layouts/daily.kdl: -------------------------------------------------------------------------------- 1 | // daily 2 | layout { 3 | default_tab_template { 4 | pane size=1 borderless=true { 5 | plugin location="zjstatus" 6 | } 7 | children 8 | pane size=2 borderless=true { 9 | plugin location="status-bar" { 10 | classic false 11 | } 12 | } 13 | } 14 | tab name="Daily" { 15 | pane split_direction="vertical" { 16 | pane name="Files" command="yazi" { 17 | args "~/Documents" 18 | } 19 | pane name="Today" command="nvim" { 20 | cwd "${VAULT_MAIN}" 21 | } 22 | } 23 | } 24 | tab name="Dashboard" { 25 | pane split_direction="vertical" { 26 | pane split_direction="horizontal" { 27 | pane name="Gratitudes" 28 | pane name="ToDos" 29 | } 30 | pane split_direction="horizontal" { 31 | pane name="Achievements" 32 | pane name="Fleeting Notes" 33 | } 34 | } 35 | } 36 | c 37 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/glow.yazi/README.md: -------------------------------------------------------------------------------- 1 | # glow.yazi 2 | 3 | Plugin for [Yazi](https://github.com/sxyazi/yazi) to preview markdown files with [glow](https://github.com/charmbracelet/glow). To install, run the below mentioned command: 4 | 5 | ```bash 6 | ya pack -a Reledia/glow 7 | ``` 8 | 9 | then include it in your `yazi.toml` to use: 10 | 11 | ```toml 12 | [plugin] 13 | prepend_previewers = [ 14 | { name = "*.md", run = "glow" }, 15 | ] 16 | ``` 17 | 18 | Make sure you have [glow](https://github.com/charmbracelet/glow) installed, and can be found in `PATH`. 19 | 20 | ## Feature 21 | 22 | + You can modify line wrap in `main.lua`, the current value is 55. 23 | + You can press `ctrl+e` to scroll up and `ctrl+y` to scroll down the readme file in preview panel in yazi: (add this to `keymap.toml`) 24 | ```toml 25 | prepend_keymap = [ 26 | # glow.yazi 27 | { on = [""], run = "seek 5" }, 28 | { on = [""], run = "seek -5" }, 29 | ] 30 | ``` 31 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-symlink.yazi/README.md: -------------------------------------------------------------------------------- 1 | # yatline-symlink.yazi 2 | 3 | An addon to show symlink target in your [yatline.yazi](https://github.com/imsi32/yatline.yazi)'s status or header line. 4 | 5 | ![yatline-symlink example screenshot](2024-10-06-@13-18-32-scrot.png) 6 | 7 | ## Requirements 8 | 9 | - yazi version >= 0.3.0 10 | - [yatline.yazi](https://github.com/imsi32/yatline.yazi) 11 | 12 | ## Installation 13 | 14 | ```sh 15 | ya pack -a lpanebr/yazi-plugins:yatline-symlink 16 | ``` 17 | 18 | ## Usage 19 | 20 | > [!IMPORTANT] 21 | > Add this to your `~/.config/yazi/init.lua` after yatline.yazi's initialization. 22 | 23 | ```lua 24 | require("yatline-symlink"):setup() 25 | ``` 26 | 27 | Then, add it in one of your sections in the yatline configuration using: 28 | 29 | ```lua 30 | { type = "coloreds", custom = false, name = "symlink" } 31 | ``` 32 | 33 | **Optional configuration:** 34 | 35 | ```lua 36 | require("githead"):setup({ 37 | symlink_color = "white" 38 | } 39 | ``` 40 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/README.md: -------------------------------------------------------------------------------- 1 | # yatline-tokyo-night.yazi 2 | 3 | Tokyo Night for Yatline 4 | 5 | ## Requirements 6 | 7 | - [yazi](https://github.com/sxyazi/yazi) version >= 0.3.0 8 | - [yatline.yazi](https://github.com/imsi32/yatline.yazi) 9 | 10 | ## Installation 11 | 12 | ```sh 13 | ya pack -a wekauwau/yatline-tokyo-night 14 | ``` 15 | 16 | ## Usage 17 | 18 | > [!IMPORTANT] 19 | > Add this to your `~/.config/yazi/init.lua` before Yatline's initialization. 20 | 21 | ```lua 22 | local tokyo_night_theme = require("yatline-tokyo-night"):setup("night") -- or moon/storm/day 23 | ``` 24 | 25 | Then use the `theme` variable in Yatline config's theme parameter. 26 | 27 | ```lua 28 | require("yatline"):setup({ 29 | -- === 30 | 31 | theme = tokyo_night_theme, 32 | 33 | -- === 34 | }) 35 | ``` 36 | 37 | ## Credits 38 | 39 | - [yatline-catppuccin.yazi](https://github.com/imsi32/yatline-catppuccin.yazi) 40 | - [yatline-gruvbox.yazi](https://github.com/imsi32/yatline-gruvbox.yazi) 41 | -------------------------------------------------------------------------------- /zellij/.config/zellij/themes/rosepine.kdl: -------------------------------------------------------------------------------- 1 | themes { 2 | rose-pine-main { 3 | fg "#e0def4" 4 | bg "#191724" 5 | black "#191724" 6 | red "#eb6f92" 7 | green "#31748f" 8 | yellow "#f6c177" 9 | blue "#9ccfd8" 10 | magenta "#c4a7e7" 11 | cyan "#ebbcba" 12 | white "#e0def4" 13 | orange "#f6c177" 14 | } 15 | rose-pine-moon { 16 | fg "#e0def4" 17 | bg "#232136" 18 | black "#232136" 19 | red "#eb6f92" 20 | green "#3e8fb0" 21 | yellow "#f6c177" 22 | blue "#9ccfd8" 23 | magenta "#c4a7e7" 24 | cyan "#ea9a97" 25 | white "#e0def4" 26 | orange "#f6c177" 27 | } 28 | rose-pine-dawn { 29 | fg "#575279" 30 | bg "#faf4ed" 31 | black "#faf4ed" 32 | red "#b4637a" 33 | green "#286983" 34 | yellow "#ea9d34" 35 | blue "#56949f" 36 | magenta "#907aa9" 37 | cyan "#d7827e" 38 | white "#575279" 39 | orange "#ea9d34" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/configs/lazy.lua: -------------------------------------------------------------------------------- 1 | return { 2 | defaults = { lazy = true }, 3 | install = { colorscheme = { "nvchad" } }, 4 | 5 | ui = { 6 | icons = { 7 | ft = "", 8 | lazy = "󰂠 ", 9 | loaded = "", 10 | not_loaded = "", 11 | }, 12 | }, 13 | 14 | performance = { 15 | rtp = { 16 | disabled_plugins = { 17 | "2html_plugin", 18 | "tohtml", 19 | "getscript", 20 | "getscriptPlugin", 21 | "gzip", 22 | "logipat", 23 | "netrw", 24 | "netrwPlugin", 25 | "netrwSettings", 26 | "netrwFileHandlers", 27 | "matchit", 28 | "tar", 29 | "tarPlugin", 30 | "rrhelper", 31 | "spellfile_plugin", 32 | "vimball", 33 | "vimballPlugin", 34 | "zip", 35 | "zipPlugin", 36 | "tutor", 37 | "rplugin", 38 | "syntax", 39 | "synmenu", 40 | "optwin", 41 | "compiler", 42 | "bugreport", 43 | "ftplugin", 44 | }, 45 | }, 46 | }, 47 | } 48 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/dracula.yazi/README.md: -------------------------------------------------------------------------------- 1 |
2 | Yazi logo 3 |
4 | 5 |

6 | Dracula Flavor for Yazi 7 |

8 | 9 | ## 👀 Preview 10 | 11 | 12 | 13 | ## 🎨 Installation 14 | 15 | ```sh 16 | ya pack -a yazi-rs/flavors:dracula 17 | ``` 18 | 19 | ## ⚙️ Usage 20 | 21 | Set the content of your `theme.toml` to enable it as your _dark_ flavor: 22 | 23 | ```toml 24 | [flavor] 25 | dark = "dracula" 26 | ``` 27 | 28 | Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of this flavor. 29 | 30 | See the [Yazi flavor documentation](https://yazi-rs.github.io/docs/flavors/overview) for more details. 31 | 32 | ## 📜 License 33 | 34 | The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed. 35 | 36 | Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details. 37 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/glow.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright © 2024 Reledia 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /k9s/.k9s/config.yml: -------------------------------------------------------------------------------- 1 | k9s: 2 | refreshRate: 2 3 | maxConnRetry: 5 4 | enableMouse: false 5 | headless: false 6 | logoless: false 7 | crumbsless: false 8 | readOnly: false 9 | noIcons: false 10 | logger: 11 | tail: 100 12 | buffer: 5000 13 | sinceSeconds: 60 14 | fullScreenLogs: false 15 | textWrap: false 16 | showTime: false 17 | currentContext: gke_knative-carlisia_us-central1_cluster-2-bigger 18 | currentCluster: gke_knative-carlisia_us-central1_cluster-2-bigger 19 | clusters: 20 | gke-kube-1-24: 21 | namespace: 22 | active: "" 23 | favorites: 24 | - knative-serving 25 | view: 26 | active: po 27 | featureGates: 28 | nodeShell: false 29 | shellPod: 30 | image: busybox:1.31 31 | command: [] 32 | args: [] 33 | namespace: default 34 | limits: 35 | cpu: 100m 36 | memory: 100Mi 37 | portForwardAddress: localhost 38 | thresholds: 39 | cpu: 40 | critical: 90 41 | warn: 70 42 | memory: 43 | critical: 90 44 | warn: 70 45 | -------------------------------------------------------------------------------- /nvim/.config/nvim/init.lua: -------------------------------------------------------------------------------- 1 | vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/" 2 | vim.g.mapleader = " " 3 | 4 | -- bootstrap lazy and all plugins 5 | local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" 6 | 7 | if not vim.uv.fs_stat(lazypath) then 8 | local repo = "https://github.com/folke/lazy.nvim.git" 9 | vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath } 10 | end 11 | 12 | vim.opt.rtp:prepend(lazypath) 13 | 14 | local lazy_config = require "configs.lazy" 15 | 16 | -- load plugins 17 | require("lazy").setup({ 18 | { 19 | "NvChad/NvChad", 20 | lazy = false, 21 | branch = "v2.5", 22 | import = "nvchad.plugins", 23 | }, 24 | 25 | { import = "plugins" }, 26 | }, lazy_config) 27 | 28 | -- load themes 29 | for _, v in ipairs(vim.fn.readdir(vim.g.base46_cache)) do 30 | dofile(vim.g.base46_cache .. v) 31 | end 32 | 33 | require "options" 34 | require "utils.autocmds" 35 | require "nvchad.autocmds" 36 | 37 | -- Wrap mappings in case there are plugin-dependent or async features 38 | vim.schedule(function() 39 | require "mappings" 40 | end) 41 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/nightfly.yazi/README.md: -------------------------------------------------------------------------------- 1 |
2 | Yazi logo 3 |
4 | 5 | ## nightfly Flavor for [Yazi](https://github.com/sxyazi/yazi) 6 | 7 | nightfly.yazi is based on [nightfly](https://github.com/bluz71/vim-nightfly-guicolors)'s colors and [fly16](https://github.com/bluz71/fly16-bat) .tmTheme template. It is usable standalone or with associated terminal themes found in nightfly's [extras section](https://github.com/bluz71/vim-nightfly-colors#extras). 8 | 9 | ## 👀 Preview 10 | 11 | 12 | 13 | ## 🎨 Installation 14 | 15 | ```bash 16 | ya pack -a tkapias/nightfly.yazi 17 | ``` 18 | 19 | ## ⚙️ Usage 20 | 21 | Add the these lines to your `theme.toml` configuration file to use it: 22 | 23 | ```toml 24 | [flavor] 25 | use = "nightfly" 26 | ``` 27 | 28 | ## 📜 License 29 | 30 | The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed. 31 | 32 | Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details. 33 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/testbrowser: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # Find and browse GitHub Actions workflow definitions. 4 | # In addition to regular shell tools (such as sed), this 5 | # script uses gh and fzf. 6 | 7 | tests() { 8 | 9 | # Takes owner type (org or user) and owner name. 10 | 11 | # Returns tab-separated list of owner/repo/workflowfile/path. 12 | 13 | local ownertype=$1 14 | local owner=$2 15 | 16 | gh api \ 17 | --method GET \ 18 | --paginate \ 19 | --cache "${GH_CACHETIME:-1h}" \ 20 | --field "q=$ownertype:$owner filename:_test.go language:go" \ 21 | --jq '.items[] | ["\(.repository.full_name)/\(.name)", .repository.owner.login, .repository.name, .path] | @tsv' \ 22 | "/search/code" 23 | 24 | } 25 | 26 | main() { 27 | 28 | # Calls tests for my org and user. 29 | 30 | cat \ 31 | <(tests org knative) \ 32 | <(tests org knative-sandbox) \ 33 | <(tests user carlisia) \ 34 | | fzf \ 35 | --with-nth=1 \ 36 | --delimiter='\t' \ 37 | --preview='showgithubcontent {2} {3} {4} go always' \ 38 | | cut -f 2,3,4 39 | 40 | } 41 | 42 | main "$@" 43 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-mocha.yazi/README.md: -------------------------------------------------------------------------------- 1 |
2 | Yazi logo 3 |
4 | 5 |

6 | Catppuccin Mocha Flavor for Yazi 7 |

8 | 9 | ## 👀 Preview 10 | 11 | 12 | 13 | ## 🎨 Installation 14 | 15 | ```sh 16 | ya pack -a yazi-rs/flavors:catppuccin-mocha 17 | ``` 18 | 19 | ## ⚙️ Usage 20 | 21 | Set the content of your `theme.toml` to enable it as your _dark_ flavor: 22 | 23 | ```toml 24 | [flavor] 25 | dark = "catppuccin-mocha" 26 | ``` 27 | 28 | Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of this flavor. 29 | 30 | See the [Yazi flavor documentation](https://yazi-rs.github.io/docs/flavors/overview) for more details. 31 | 32 | ## 📜 License 33 | 34 | The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed. 35 | 36 | Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details. 37 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/custom_ui/base46.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | -- cmd = { "Huefy", "Shades" } 4 | -- Note: the highlighting depends on the value of 'background' 5 | M.overrides = { 6 | IncSearch = { fg = "#c94c16", bg = "#fff7a2", standout = true }, 7 | Search = { fg = "#86c1b9", bg = "#570f0e", standout = true }, 8 | DiagnosticVirtualTextWarn = { bg = "one_bg", fg = "#a48cf2", standout = false }, 9 | 10 | -- statusline 11 | St_NormalMode = { bg = "#66ff00" }, 12 | St_NormalModeSep = { fg = "#FF160C" }, 13 | St_InsertMode = { bg = "#FF160C" }, 14 | St_InsertModeSep = { fg = "#FFE900" }, 15 | St_VisualMode = { bg = "#FFE900" }, 16 | St_VisualModeSep = { fg = "#66ff00" }, 17 | St_TerminalMode = { bg = "#E27D00" }, 18 | St_TerminalModeSep = { fg = "#FF1CF3" }, 19 | St_NTerminalMode = { bg = "#E27D00" }, 20 | St_NTerminalModeSep = { fg = "#FF1CF3" }, 21 | 22 | Visual = { bg = "#5a5e63" }, 23 | 24 | TbBufOn = { fg = "#FF1CF3", bold = true }, 25 | TbBufOnModified = { fg = "#FF160C" }, 26 | TbBufOffModified = { fg = "#FF160C" }, 27 | 28 | DiagnosticInfo = { fg = "#a48cf2" }, 29 | } 30 | 31 | return M 32 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/bashbrowser: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # Find and browse GitHub Actions workflow definitions. 4 | # In addition to regular shell tools (such as sed), this 5 | # script uses gh and fzf. 6 | 7 | tests() { 8 | 9 | # Takes owner type (org or user) and owner name. 10 | 11 | # Returns tab-separated list of owner/repo/workflowfile/path. 12 | 13 | local ownertype=$1 14 | local owner=$2 15 | 16 | gh api \ 17 | --method GET \ 18 | --paginate \ 19 | --cache "${GH_CACHETIME:-1h}" \ 20 | --field "q=$ownertype:$owner path:/ filename:.sh language:bash" \ 21 | --jq '.items[] | ["\(.repository.full_name)/\(.name)", .repository.owner.login, .repository.name, .path] | @tsv' \ 22 | "/search/code" 23 | 24 | } 25 | 26 | main() { 27 | 28 | # Calls tests for my org and user. 29 | 30 | cat \ 31 | <(tests org knative) \ 32 | <(tests org knative-sandbox) \ 33 | <(tests user carlisia) \ 34 | | fzf \ 35 | --with-nth=1 \ 36 | --delimiter='\t' \ 37 | --preview='showgithubcontent {2} {3} {4} bash always' \ 38 | | cut -f 2,3,4 39 | 40 | } 41 | 42 | main "$@" 43 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-latte.yazi/README.md: -------------------------------------------------------------------------------- 1 |
2 | Yazi logo 3 |
4 | 5 |

6 | Catppuccin Latte Flavor for Yazi 7 |

8 | 9 | ## 👀 Preview 10 | 11 | 12 | 13 | ## 🎨 Installation 14 | 15 | ```sh 16 | ya pack -a yazi-rs/flavors:catppuccin-latte 17 | ``` 18 | 19 | ## ⚙️ Usage 20 | 21 | Set the content of your `theme.toml` to enable it as your _light_ flavor: 22 | 23 | ```toml 24 | [flavor] 25 | light = "catppuccin-latte" 26 | ``` 27 | 28 | Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of this flavor. 29 | 30 | See the [Yazi flavor documentation](https://yazi-rs.github.io/docs/flavors/overview) for more details. 31 | 32 | ## 📜 License 33 | 34 | The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed. 35 | 36 | Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details. 37 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/configs/ufo.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | M.keys = { 4 | { 5 | "zR", 6 | function() 7 | require("ufo").openAllFolds() 8 | end, 9 | desc = "+++Open all folds", 10 | }, 11 | { 12 | "zM", 13 | function() 14 | require("ufo").closeAllFolds() 15 | end, 16 | desc = "---Close all folds", 17 | }, 18 | { 19 | "zI", 20 | function() 21 | local winid = require("ufo").peekFoldedLinesUnderCursor() 22 | if not winid then 23 | vim.lsp.buf.hover() 24 | end 25 | end, 26 | desc = "---Peek inside a fold", 27 | }, 28 | } 29 | 30 | M.config = { 31 | close_fold_kinds_for_ft = { 32 | default = { "imports", "comment" }, 33 | json = { "array" }, 34 | c = { "comment", "region" }, 35 | }, 36 | preview = { 37 | win_config = { 38 | border = { "", "─", "", "", "", "─", "", "" }, 39 | winhighlight = "Normal:Folded", 40 | winblend = 0, 41 | }, 42 | mappings = { 43 | scrollU = "", 44 | scrollD = "", 45 | jumpTop = "[", 46 | jumpBot = "]", 47 | }, 48 | }, 49 | } 50 | 51 | return M 52 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-macchiato.yazi/README.md: -------------------------------------------------------------------------------- 1 |
2 | Yazi logo 3 |
4 | 5 |

6 | Catppuccin Macchiato Flavor for Yazi 7 |

8 | 9 | ## 👀 Preview 10 | 11 | 12 | 13 | ## 🎨 Installation 14 | 15 | ```sh 16 | ya pack -a yazi-rs/flavors:catppuccin-macchiato 17 | ``` 18 | 19 | ## ⚙️ Usage 20 | 21 | Set the content of your `theme.toml` to enable it as your _dark_ flavor: 22 | 23 | ```toml 24 | [flavor] 25 | dark = "catppuccin-macchiato" 26 | ``` 27 | 28 | Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of this flavor. 29 | 30 | See the [Yazi flavor documentation](https://yazi-rs.github.io/docs/flavors/overview) for more details. 31 | 32 | ## 📜 License 33 | 34 | The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed. 35 | 36 | Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details. 37 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/git.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/dracula.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/chmod.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/nightfly.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Tomasz Kapias 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/full-border.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/smart-filter.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/toggle-pane.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-latte.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-mocha.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/custom-shell.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Anirudh Gupta 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-dracula.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 wakaka6 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-macchiato.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 yazi-rs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-tokyo-night.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 wekauwau 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-latte.yazi/LICENSE-tmtheme: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Catppuccin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-mocha.yazi/LICENSE-tmtheme: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Catppuccin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/smart-filter.yazi/main.lua: -------------------------------------------------------------------------------- 1 | --- @since 25.2.26 2 | 3 | local hovered = ya.sync(function() 4 | local h = cx.active.current.hovered 5 | if not h then 6 | return {} 7 | end 8 | 9 | return { 10 | url = h.url, 11 | is_dir = h.cha.is_dir, 12 | unique = #cx.active.current.files == 1, 13 | } 14 | end) 15 | 16 | local function prompt() 17 | return ya.input { 18 | title = "Smart filter:", 19 | position = { "center", w = 50 }, 20 | realtime = true, 21 | debounce = 0.1, 22 | } 23 | end 24 | 25 | local function entry() 26 | local input = prompt() 27 | 28 | while true do 29 | local value, event = input:recv() 30 | if event ~= 1 and event ~= 3 then 31 | ya.mgr_emit("escape", { filter = true }) 32 | break 33 | end 34 | 35 | ya.mgr_emit("filter_do", { value, smart = true }) 36 | 37 | local h = hovered() 38 | if h.unique and h.is_dir then 39 | ya.mgr_emit("escape", { filter = true }) 40 | ya.mgr_emit("enter", {}) 41 | input = prompt() 42 | elseif event == 1 then 43 | ya.mgr_emit("escape", { filter = true }) 44 | ya.mgr_emit(h.is_dir and "enter" or "open", { h.url }) 45 | end 46 | end 47 | end 48 | 49 | return { entry = entry } 50 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/catppuccin-macchiato.yazi/LICENSE-tmtheme: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Catppuccin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/chmod.yazi/main.lua: -------------------------------------------------------------------------------- 1 | --- @since 25.2.26 2 | 3 | local selected_or_hovered = ya.sync(function() 4 | local tab, paths = cx.active, {} 5 | for _, u in pairs(tab.selected) do 6 | paths[#paths + 1] = tostring(u) 7 | end 8 | if #paths == 0 and tab.current.hovered then 9 | paths[1] = tostring(tab.current.hovered.url) 10 | end 11 | return paths 12 | end) 13 | 14 | return { 15 | entry = function() 16 | ya.mgr_emit("escape", { visual = true }) 17 | 18 | local urls = selected_or_hovered() 19 | if #urls == 0 then 20 | return ya.notify { title = "Chmod", content = "No file selected", level = "warn", timeout = 5 } 21 | end 22 | 23 | local value, event = ya.input { 24 | title = "Chmod:", 25 | position = { "top-center", y = 3, w = 40 }, 26 | } 27 | if event ~= 1 then 28 | return 29 | end 30 | 31 | local status, err = Command("chmod"):arg(value):args(urls):spawn():wait() 32 | if not status or not status.success then 33 | ya.notify { 34 | title = "Chmod", 35 | content = string.format("Chmod on selected files failed, error: %s", status and status.code or err), 36 | level = "error", 37 | timeout = 5, 38 | } 39 | end 40 | end, 41 | } 42 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-dracula.yazi/README.md: -------------------------------------------------------------------------------- 1 | # yatline-dracula.yazi 2 | 3 | Dracula theme For [yatline.yazi](https://github.com/imsi32/yatline.yazi) 4 | 5 | ![Dracula](https://draculatheme.com/images/dracula.gif) 6 | 7 | ## Previews 8 | 9 | ![headers_drucula](.img/2024-12-29-19-13-50.png) 10 | ![status_drucula](.img/2024-12-29-19-18-11.png) 11 | 12 | ## Requirements 13 | 14 | - [yazi](https://github.com/sxyazi/yazi) version >= 0.3.0 15 | - [yatline.yazi](https://github.com/imsi32/yatline.yazi) 16 | 17 | ## Installation 18 | 19 | ```sh 20 | ya pack -a wakaka6/yatline-dracula 21 | ``` 22 | 23 | ## Usage 24 | 25 | > [!IMPORTANT] 26 | > Add this to your `~/.config/yazi/init.lua` before Yatline's initialization. 27 | 28 | ```lua 29 | local dracula_theme = require("yatline-dracula"):setup() 30 | ``` 31 | 32 | Then use the `theme` variable in Yatline config's theme parameter. 33 | 34 | ```lua 35 | require("yatline"):setup({ 36 | -- === 37 | 38 | theme = dracula_theme, 39 | 40 | -- === 41 | }) 42 | ``` 43 | 44 | ## Credits 45 | 46 | - [yatline-catppuccin.yazi](https://github.com/imsi32/yatline-catppuccin.yazi) 47 | - [yatline-gruvbox.yazi](https://github.com/imsi32/yatline-gruvbox.yazi) 48 | -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/dracula.yazi/LICENSE-tmtheme: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-present Dracula Theme 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-githead.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 imsi32 4 | Copyright (c) 2024 llanosrocas 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-symlink.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 imsi32 4 | Copyright (c) 2024 llanosrocas 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline.yazi/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 imsi32 4 | Copyright (c) 2023 - sxyazi 5 | Copyright (c) 2023 yazi-rs 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/1_install-velero.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ../demo-magic.sh 4 | 5 | clear 6 | 7 | # p "Start the server and the local storage service (Minio)" 8 | # pe "kubectl apply -f ~/work/src/github.com/heptio/velero/examples/minio/00-minio-deployment.yaml" 9 | 10 | # p "#Command to install Velero in a cluster:" 11 | # p " " 12 | # p 'velero install \ ' 13 | # p ' --provider aws \ ' 14 | # p ' --bucket acme-development \ ' 15 | # p ' --use-volume-snapshots=false \ ' 16 | # p ' --secret-file ~/creds/credentials-velero-minio \ ' 17 | # p ' --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://127.0.0.1:9000 \ ' 18 | # p '# --- ' 19 | # wait 20 | 21 | pe "velero install --provider aws --bucket acme-development --use-volume-snapshots=false --secret-file ~/creds/credentials-velero-minio --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://10.0.0.14:9000 --image=carlisia/velero:a0a59ed29bc25720aac61ea0" 22 | # wait 23 | 24 | # pe "kubectl logs deployment/velero -n velero" 25 | # p "#end of log" 26 | # wait 27 | 28 | 29 | # p "#Velero installed in a pod as a deployment:" 30 | # cat images/pod.txt 31 | # pe ./delete-all-backups.sh -n 32 | -------------------------------------------------------------------------------- /other-configs/scripts/tmux-scripts/workspace: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | SESSION="workspace" 4 | 5 | sessions() { 6 | echo tmux ls -F '#S' 7 | } 8 | 9 | if $(sessions) =~ $SESSION; then 10 | if [ -n "$TMUX" ]; then 11 | tmux -2 attach-session -t $SESSION 12 | else 13 | tmux switch-client -t $SESSION 14 | fi 15 | else 16 | echo creating session $SESSION 17 | # Create the session (behave like attach-session if session-name already exists) 18 | tmux -2 new-session -A -d -s $SESSION 19 | tmux rename-window -t $SESSION workspace 20 | tmux split-window -h -t $SESSION 21 | 22 | # CLEAN WINDOW (2) 23 | tmux new-window -n clean-pad -t $SESSION 24 | tmux rename-window -t $SESSION clean-pad 25 | 26 | # k9s (3) 27 | tmux new-window -n k9s -t $SESSION 28 | tmux rename-window -t $SESSION k9s 29 | tmux send-keys -t $SESSION 'clear' C-m 30 | # tmux send-keys -t $SESSION 'k9s -A --write' C-m 31 | 32 | # OCTANT WINDOW (4) 33 | tmux new-window -n octant -t $SESSION 34 | tmux rename-window -t $SESSION octant 35 | tmux send-keys -t $SESSION 'clear' C-m 36 | 37 | # Start out on the first window when we attach 38 | tmux select-window -t $SESSION:1.0 39 | tmux switch-client -t $SESSION:1.0 40 | tmux -2 attach-session -t $SESSION:1.0 41 | fi -------------------------------------------------------------------------------- /yazi/.config/yazi/flavors/nightfly.yazi/LICENSE-tmtheme: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018-2021 bat-developers (https://github.com/sharkdp/bat) and 4 | Copyright (c) 2021 fly16-bat authors 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/workflowbrowser: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # source: https://qmacro.org/2021/04/24/github-actions-workflow-browser/ 4 | 5 | # Find and browse GitHub Actions workflow definitions. 6 | # In addition to regular shell tools (such as sed), this 7 | # script uses gh and fzf. 8 | 9 | workflows() { 10 | 11 | # Takes owner type (org or user) and owner name. 12 | # Returns tab-separated list of owner/repo/workflowfile/path. 13 | 14 | local ownertype=$1 15 | local owner=$2 16 | 17 | gh api \ 18 | --method GET \ 19 | --paginate \ 20 | --cache "${GH_CACHETIME:-1h}" \ 21 | --field "q=$ownertype:$owner path:.github/workflows/" \ 22 | --jq '.items[] | ["\(.repository.full_name)/\(.name)", .repository.owner.login, .repository.name, .path] | @tsv' \ 23 | "/search/code" 24 | 25 | } 26 | 27 | main() { 28 | 29 | # Calls workflows for my org and user. 30 | # nvim (testbrowser | xargs showgithubcontent | psub) 31 | 32 | cat \ 33 | <(workflows org knative) \ 34 | <(workflows org knative-sandbox) \ 35 | <(workflows user carlisia) \ 36 | | fzf \ 37 | --with-nth=1 \ 38 | --delimiter='\t' \ 39 | --preview='showgithubcontent {2} {3} {4} yaml always' \ 40 | | cut -f 2,3,4 41 | 42 | } 43 | 44 | main "$@" 45 | -------------------------------------------------------------------------------- /nvim/.config/nvim/snippets/markdown.json: -------------------------------------------------------------------------------- 1 | { 2 | "go code block": { 3 | "prefix": "go", 4 | "body": ["```go", "$1", "```"], 5 | "description": "Insert a go code block" 6 | }, 7 | "bash code block": { 8 | "prefix": "bash", 9 | "body": ["```bash", "$1", "```"], 10 | "description": "Insert a bash code block" 11 | }, 12 | "yaml code block": { 13 | "prefix": "yaml", 14 | "body": ["```yaml", "$1", "```"], 15 | "description": "Insert a yaml code block" 16 | }, 17 | "sql code block": { 18 | "prefix": "sql", 19 | "body": ["```sql", "$1", "```"], 20 | "description": "Insert a sql code block" 21 | }, 22 | "regular link": { 23 | "prefix": "link", 24 | "body": ["[$1]($2)"], 25 | "description": "Create a new link" 26 | }, 27 | "today's date": { 28 | "prefix": "today", 29 | "body": ["[[${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}]]"], 30 | "description": "Link to today's date" 31 | }, 32 | "today's date log": { 33 | "prefix": "log today", 34 | "body": ["- [[${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}]]: "], 35 | "description": "Log with link to today's date" 36 | }, 37 | "gratitude": { 38 | "prefix": "gratitude", 39 | "body": ["Gratitude:: "], 40 | "description": "Log a gratitude" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /nvim/.config/nvim/LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/options.lua: -------------------------------------------------------------------------------- 1 | require "nvchad.options" 2 | 3 | -- How to set options from Lua: 4 | -- Use vim.opt only for "list"/"map" like options ('listchars', 'fillchars', etc.) as it has :append() / :remove() methods, 5 | -- and use vim.o for everything else. 6 | -- Using vim.opt for all options is not an error, but vim.o is a more reliable interface. 7 | local option = vim.o 8 | local g = vim.g 9 | local opt = vim.opt 10 | 11 | vim.api.nvim_set_hl(0, "SnacksPickerDir", { link = "Text" }) 12 | vim.api.nvim_set_hl(0, "SnacksPickerPathHidden", { link = "Text" }) 13 | vim.api.nvim_set_hl(0, "SnacksPickerPathIgnored", { link = "Comment" }) 14 | vim.api.nvim_set_hl(0, "SnacksPickerGitStatusUntracked", { link = "Special" }) 15 | 16 | vim.opt.guicursor = "n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20" -- just in case 17 | 18 | opt.termguicolors = true 19 | option.cursorlineopt = "both" 20 | g.markdown_folding = 1 21 | 22 | -- vim.g.vscode_snippets_exclude = { "all" } 23 | require("luasnip.loaders.from_vscode").lazy_load { 24 | paths = vim.g.vscode_snippets_path or vim.fn.stdpath "config" .. "/snippets", 25 | } 26 | 27 | require("luasnip.loaders.from_lua").load { 28 | paths = vim.g.lua_snippets_path or vim.fn.stdpath "config" .. "/lua/lua_snippets", 29 | } 30 | 31 | g.root_spec = { "cwd" } 32 | opt.clipboard:append { "unnamed", "unnamedplus" } 33 | -------------------------------------------------------------------------------- /other-configs/scripts/knative-maintenance/git-stats-networking.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # git clone https://github.com/knative/serving.git 4 | 5 | # git clone https://github.com/knative/networking.git 6 | # git clone https://github.com/knative-sandbox/net-istio.git 7 | # git clone https://github.com/knative-sandbox/net-contour.git 8 | # git clone https://github.com/knative-sandbox/net-http01.git 9 | # git clone https://github.com/knative-sandbox/net-certmanager.git 10 | # git clone https://github.com/knative-sandbox/net-kourier.git 11 | # git clone https://github.com/knative-sandbox/net-gateway-api.git 12 | 13 | # knative/serving 14 | NETWORKING_DIR=$(dirname $(find . -name OWNERS | xargs grep -rl 'area/networking') | xargs) 15 | printf "NETWORKING_DIR is... %s \n\n" "$NETWORKING_DIR" 16 | 17 | for i in $NETWORKING_DIR; do 18 | printf "i is... %s \n" "$i" 19 | pushd serving > /dev/null; git log --pretty=format:"%ad,%h,%an" --date=short -- $i; popd > /dev/null; 20 | 21 | done | sort -u | cut -f1,3 -d, > serving.raw.txt 22 | 23 | # knative-sandbox/net* and knative/networking 24 | for i in net*; do pushd $i > /dev/null ; git log --pretty=format:"%ad,%an" --date=short; popd > /dev/null ; done > repo-net.raw.txt 25 | 26 | # summary 27 | # TODO: Replace start date. 28 | cat *.raw.txt | awk -F',' '$0 >= "2021-12-01"' | cut -f2 -d, | sort | uniq -c | sort -k1 -n -r -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/lua_snippets/markdown.lua: -------------------------------------------------------------------------------- 1 | local ls = require "luasnip" 2 | local s = ls.snippet 3 | local f = ls.function_node 4 | local i = ls.insert_node 5 | local fmt = require("luasnip.extras.fmt").fmt 6 | 7 | return { 8 | -- ⏰ Timestamp snippet 9 | s( 10 | "log time", 11 | fmt("- ⏰ **{}:{}:{} {}:** {}", { 12 | f(function() 13 | local hour = tonumber(os.date "%H" or "0") 14 | return string.format("%02d", (hour % 12 == 0) and 12 or hour % 12) 15 | end), 16 | f(function() 17 | return tostring(os.date "%M") 18 | end), 19 | f(function() 20 | return tostring(os.date "%S") 21 | end), 22 | f(function() 23 | return tostring(os.date "%p") 24 | end), 25 | i(1), 26 | }) 27 | ), 28 | 29 | -- ⏮️⏭️ Fleeting note snippet 30 | s( 31 | "flt", 32 | fmt("- ⏮️⏭️ *{}:{}:{} {}:* **Fleeting**:: {}", { 33 | f(function() 34 | local hour = tonumber(os.date "%H" or "0") 35 | return string.format("%02d", (hour % 12 == 0) and 12 or hour % 12) 36 | end), 37 | f(function() 38 | return tostring(os.date "%M") 39 | end), 40 | f(function() 41 | return tostring(os.date "%S") 42 | end), 43 | f(function() 44 | return tostring(os.date "%p") 45 | end), 46 | i(1), 47 | }) 48 | ), 49 | } 50 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/full-border.yazi/main.lua: -------------------------------------------------------------------------------- 1 | --- @since 25.2.26 2 | 3 | local function setup(_, opts) 4 | local type = opts and opts.type or ui.Border.ROUNDED 5 | local old_build = Tab.build 6 | 7 | Tab.build = function(self, ...) 8 | local bar = function(c, x, y) 9 | if x <= 0 or x == self._area.w - 1 or th.mgr.border_symbol ~= "│" then 10 | return ui.Bar(ui.Bar.TOP) 11 | end 12 | 13 | return ui.Bar(ui.Bar.TOP) 14 | :area( 15 | ui.Rect { x = x, y = math.max(0, y), w = ya.clamp(0, self._area.w - x, 1), h = math.min(1, self._area.h) } 16 | ) 17 | :symbol(c) 18 | end 19 | 20 | local c = self._chunks 21 | self._chunks = { 22 | c[1]:pad(ui.Pad.y(1)), 23 | c[2]:pad(ui.Pad(1, c[3].w > 0 and 0 or 1, 1, c[1].w > 0 and 0 or 1)), 24 | c[3]:pad(ui.Pad.y(1)), 25 | } 26 | 27 | local style = th.mgr.border_style 28 | self._base = ya.list_merge(self._base or {}, { 29 | ui.Border(ui.Border.ALL):area(self._area):type(type):style(style), 30 | ui.Bar(ui.Bar.RIGHT):area(self._chunks[1]):style(style), 31 | ui.Bar(ui.Bar.LEFT):area(self._chunks[3]):style(style), 32 | 33 | bar("┬", c[1].right - 1, c[1].y), 34 | bar("┴", c[1].right - 1, c[1].bottom - 1), 35 | bar("┬", c[2].right, c[2].y), 36 | bar("┴", c[2].right, c[2].bottom - 1), 37 | }) 38 | 39 | old_build(self, ...) 40 | end 41 | end 42 | 43 | return { setup = setup } 44 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/test-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # VELEROPATH must be set. Please replace other command values directly in the script (ie bucket, region, secret, etc) 4 | 5 | 6 | if [[ -z "${ITERATIONS}" ]]; then 7 | ITERATIONS=20 8 | fi 9 | 10 | # VELEROPATH=/Users/carlisiac/Documents/carlisia/velero-releases/velero-v1.6.0-rc.1-darwin-amd64 11 | 12 | VELEROPATH=/Users/carlisiac/work/src/github.com/vmware-tanzu/velero/_output/bin/darwin/amd64 13 | echo "=========>> About to iterate ${ITERATIONS} times" 14 | 15 | # run make local first 16 | 17 | for (( x=1 ; x <= ${ITERATIONS}; x++ )) 18 | do 19 | echo "iteration number: $x" 20 | echo "=========>> Install Velero" 21 | ${VELEROPATH}/velero install --provider aws --bucket c-aws-velero-bucket --backup-location-config region=us-west-2 --secret-file ~/creds/credentials-velero-aws --plugins velero/velero-plugin-for-aws:v1.2.0 --use-volume-snapshots=false --wait > /dev/null 22 | 23 | # v install --provider aws --bucket c-aws-velero-bucket --backup-location-config region=us-west-2 --secret-file ~/creds/credentials-velero-aws --plugins velero/velero-plugin-for-aws:v1.2.0 --use-volume-snapshots=false --wait 24 | 25 | 26 | echo "=========>> Uninstall Velero" 27 | ${VELEROPATH}/velero uninstall --force --wait > /dev/null 28 | 29 | # v uninstall --force --wait 30 | 31 | done -------------------------------------------------------------------------------- /other-configs/scripts/knative-maintenance/weekly-prs-to-review.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | all_paths=() 4 | read -r -a all_repo_names < <(gita group ll net) 5 | 6 | for i in "${all_repo_names[@]}" 7 | do 8 | all_paths+=( "$(gita ls "$i")" ) 9 | done 10 | 11 | now=$(date +"%m_%d_%Y") 12 | printf "📆 Ran on: %s\n" "${now}" 13 | echo -e "🤓 Large PRs to review - weekly (。◕‿◕。)\n" 14 | for i in "${all_paths[@]}" 15 | do 16 | pushd "$i" > /dev/null || exit; 17 | printf '%s\n' "$(git remote show origin -n | grep "Fetch URL:" | sed -E "s#^.*/(.*)#\1#" | sed "s#.git##")"; 18 | gh pr list -s open --search "-author:@me -author:knative-automation -label:size/XS -label:size/S" --json author,title,assignees,author,createdAt,updatedAt,headRepository,mergedAt,number,url,state,labels | tee /tmp/ins | 19 | jq ' 20 | [.[] | 21 | { 22 | lastupdate: (if .updatedAt == null then "" else (.updatedAt | strptime("%Y-%m-%dT%H:%M:%SZ") | todate[0:10]) end), 23 | created: (if .createdAt == null then "" else (.createdAt | strptime("%Y-%m-%dT%H:%M:%SZ") | todate[0:10]) end ), 24 | number: .number, 25 | author: .author.login, 26 | title: .title, 27 | labels: [.labels[].name] | join(", "), 28 | url: .url, 29 | } 30 | ] | sort_by("lastupdate")' | jtbl -m 31 | printf '\n'; 32 | popd > /dev/null || exit; 33 | done 34 | 35 | echo -e "\n\ndone ✅" 36 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/toggle-pane.yazi/main.lua: -------------------------------------------------------------------------------- 1 | --- @since 25.2.26 2 | --- @sync entry 3 | 4 | local function entry(st, job) 5 | local R = rt.mgr.ratio 6 | job = type(job) == "string" and { args = { job } } or job 7 | 8 | st.parent = st.parent or R.parent 9 | st.current = st.current or R.current 10 | st.preview = st.preview or R.preview 11 | 12 | local act, to = string.match(job.args[1] or "", "(.-)-(.+)") 13 | if act == "min" then 14 | st[to] = st[to] == R[to] and 0 or R[to] 15 | elseif act == "max" then 16 | local max = st[to] == 65535 and R[to] or 65535 17 | st.parent = st.parent == 65535 and R.parent or st.parent 18 | st.current = st.current == 65535 and R.current or st.current 19 | st.preview = st.preview == 65535 and R.preview or st.preview 20 | st[to] = max 21 | end 22 | 23 | if not st.old then 24 | st.old = Tab.layout 25 | Tab.layout = function(self) 26 | local all = st.parent + st.current + st.preview 27 | self._chunks = ui.Layout() 28 | :direction(ui.Layout.HORIZONTAL) 29 | :constraints({ 30 | ui.Constraint.Ratio(st.parent, all), 31 | ui.Constraint.Ratio(st.current, all), 32 | ui.Constraint.Ratio(st.preview, all), 33 | }) 34 | :split(self._area) 35 | end 36 | end 37 | 38 | if not act then 39 | Tab.layout, st.old = st.old, nil 40 | st.parent, st.current, st.preview = nil, nil, nil 41 | end 42 | 43 | ya.app_emit("resize", {}) 44 | end 45 | 46 | return { entry = entry } 47 | -------------------------------------------------------------------------------- /zellij/.config/zellij/shell/weather.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Get current location (latitude and longitude) 4 | loc=$(curl -s ipinfo.io | jq -r '.loc') 5 | lat=$(echo "$loc" | cut -d',' -f1) 6 | long=$(echo "$loc" | cut -d',' -f2) 7 | 8 | # Fetch current weather in Fahrenheit 9 | weather=$(curl -s "https://api.open-meteo.com/v1/forecast?latitude=$lat&longitude=$long¤t=temperature,weathercode&temperature_unit=fahrenheit") 10 | 11 | # Extract temperature and weather code 12 | tem=$(echo "$weather" | jq '.current.temperature') 13 | wea=$(echo "$weather" | jq '.current.weathercode') 14 | 15 | # Define weather code groups 16 | clear=("0" "1") 17 | cloudy=("2" "3") 18 | fog=("45" "48") 19 | drizzle=("51" "53" "55" "56" "57") 20 | rain=("61" "63" "65" "66" "67") 21 | snow=("71" "73" "75" "77" "85" "86") 22 | showers=("80" "81" "82") 23 | thunderstorm=("95" "96" "99") 24 | 25 | # Match weather code to emoji 26 | if [[ ${clear[@]} =~ $wea ]]; then 27 | curwea= 28 | elif [[ ${cloudy[@]} =~ $wea ]]; then 29 | curwea= 30 | elif [[ ${fog[@]} =~ $wea ]]; then 31 | curwea= 32 | elif [[ ${drizzle[@]} =~ $wea ]]; then 33 | curwea= 34 | elif [[ ${rain[@]} =~ $wea ]]; then 35 | curwea= 36 | elif [[ ${snow[@]} =~ $wea ]]; then 37 | curwea=󰼶 38 | elif [[ ${showers[@]} =~ $wea ]]; then 39 | curwea= 40 | elif [[ ${thunderstorm[@]} =~ $wea ]]; then 41 | curwea= 42 | else 43 | curwea=❓ 44 | fi 45 | 46 | # Output: icon and temperature (Fahrenheit, plain number) 47 | echo "$curwea $tem" 48 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/base.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2017 the Velero contributors. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | --- 16 | apiVersion: v1 17 | kind: Namespace 18 | metadata: 19 | name: nginx-example 20 | labels: 21 | app: nginx 22 | 23 | --- 24 | apiVersion: apps/v1beta1 25 | kind: Deployment 26 | metadata: 27 | name: nginx-deployment 28 | namespace: nginx-example 29 | spec: 30 | replicas: 1 31 | template: 32 | metadata: 33 | labels: 34 | app: nginx 35 | spec: 36 | containers: 37 | - image: nginx:1.7.9 38 | name: nginx 39 | ports: 40 | - containerPort: 80 41 | 42 | --- 43 | apiVersion: v1 44 | kind: Service 45 | metadata: 46 | labels: 47 | app: nginx 48 | name: my-nginx 49 | namespace: nginx-example 50 | spec: 51 | ports: 52 | - port: 80 53 | targetPort: 80 54 | selector: 55 | app: nginx 56 | type: LoadBalancer 57 | -------------------------------------------------------------------------------- /fish/.config/fish/conf.d/z.fish: -------------------------------------------------------------------------------- 1 | if test -z "$Z_DATA" 2 | if test -z "$XDG_DATA_HOME" 3 | set -U Z_DATA_DIR "$HOME/.local/share/z" 4 | else 5 | set -U Z_DATA_DIR "$XDG_DATA_HOME/z" 6 | end 7 | set -U Z_DATA "$Z_DATA_DIR/data" 8 | end 9 | 10 | if test ! -e "$Z_DATA" 11 | if test ! -e "$Z_DATA_DIR" 12 | mkdir -p -m 700 "$Z_DATA_DIR" 13 | end 14 | touch "$Z_DATA" 15 | end 16 | 17 | if test -z "$Z_CMD" 18 | set -U Z_CMD z 19 | end 20 | 21 | set -U ZO_CMD "$Z_CMD"o 22 | 23 | if test ! -z $Z_CMD 24 | function $Z_CMD -d "jump around" 25 | __z $argv 26 | end 27 | end 28 | 29 | if test ! -z $ZO_CMD 30 | function $ZO_CMD -d "open target dir" 31 | __z -d $argv 32 | end 33 | end 34 | 35 | if not set -q Z_EXCLUDE 36 | set -U Z_EXCLUDE "^$HOME\$" 37 | else if contains $HOME $Z_EXCLUDE 38 | # Workaround: migrate old default values to a regex (see #90). 39 | set Z_EXCLUDE (string replace -r -- "^$HOME\$" '^'$HOME'$$' $Z_EXCLUDE) 40 | end 41 | 42 | # Setup completions once first 43 | __z_complete 44 | 45 | function __z_on_variable_pwd --on-variable PWD 46 | __z_add 47 | end 48 | 49 | function __z_uninstall --on-event z_uninstall 50 | functions -e __z_on_variable_pwd 51 | functions -e $Z_CMD 52 | functions -e $ZO_CMD 53 | 54 | if test ! -z "$Z_DATA" 55 | printf "To completely erase z's data, remove:\n" >/dev/stderr 56 | printf "%s\n" "$Z_DATA" >/dev/stderr 57 | end 58 | 59 | set -e Z_CMD 60 | set -e ZO_CMD 61 | set -e Z_DATA 62 | set -e Z_EXCLUDE 63 | end 64 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/glow.yazi/main.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | function M:peek(job) 4 | -- Set a fixed width of 50 characters for the preview 5 | local preview_width = 55 6 | 7 | local child = Command("glow") 8 | :args({ 9 | "--style", 10 | "dark", 11 | "--width", 12 | tostring(preview_width), -- Use fixed width instead of job.area.w 13 | tostring(job.file.url), 14 | }) 15 | :env("CLICOLOR_FORCE", "1") 16 | :stdout(Command.PIPED) 17 | :stderr(Command.PIPED) 18 | :spawn() 19 | 20 | if not child then 21 | return require("code").peek(job) 22 | end 23 | 24 | local limit = job.area.h 25 | local i, lines = 0, "" 26 | repeat 27 | local next, event = child:read_line() 28 | if event == 1 then 29 | return require("code").peek(job) 30 | elseif event ~= 0 then 31 | break 32 | end 33 | 34 | i = i + 1 35 | if i > job.skip then 36 | lines = lines .. next 37 | end 38 | until i >= job.skip + limit 39 | 40 | child:start_kill() 41 | if job.skip > 0 and i < job.skip + limit then 42 | ya.manager_emit("peek", { 43 | tostring(math.max(0, i - limit)), 44 | only_if = job.file.url, 45 | upper_bound = true 46 | }) 47 | else 48 | lines = lines:gsub("\t", string.rep(" ", PREVIEW.tab_size)) 49 | ya.preview_widgets(job, { ui.Text.parse(lines):area(job.area) }) 50 | end 51 | end 52 | 53 | function M:seek(job) 54 | local h = cx.active.current.hovered 55 | if not h or h.url ~= job.file.url then 56 | return 57 | end 58 | ya.manager_emit('peek', { 59 | math.max(0, cx.active.preview.skip + job.units), 60 | only_if = job.file.url, 61 | }) 62 | end 63 | 64 | return M 65 | -------------------------------------------------------------------------------- /fish/.config/fish/functions/__z_add.fish: -------------------------------------------------------------------------------- 1 | function __z_add -d "Add PATH to .z file" 2 | test -n "$fish_private_mode"; and return 0 3 | 4 | for i in $Z_EXCLUDE 5 | if string match -r $i $PWD >/dev/null 6 | return 0 #Path excluded 7 | end 8 | end 9 | 10 | set -l tmpfile (mktemp $Z_DATA.XXXXXX) 11 | 12 | if test -f $tmpfile 13 | set -l path (string replace --all \\ \\\\ $PWD) 14 | command awk -v path=$path -v now=(date +%s) -F "|" ' 15 | BEGIN { 16 | rank[path] = 1 17 | time[path] = now 18 | } 19 | $2 >= 1 { 20 | if( $1 == path ) { 21 | rank[$1] = $2 + 1 22 | time[$1] = now 23 | } 24 | else { 25 | rank[$1] = $2 26 | time[$1] = $3 27 | } 28 | count += $2 29 | } 30 | END { 31 | if( count > 1000 ) { 32 | for( i in rank ) print i "|" 0.9*rank[i] "|" time[i] # aging 33 | } 34 | else for( i in rank ) print i "|" rank[i] "|" time[i] 35 | } 36 | ' $Z_DATA 2>/dev/null >$tmpfile 37 | 38 | if test ! -z "$Z_OWNER" 39 | chown $Z_OWNER:(id -ng $Z_OWNER) $tmpfile 40 | end 41 | # 42 | # Don't use redirection here as it can lead to a race condition where $Z_DATA is clobbered. 43 | # Note: There is a still a possible race condition where an old version of $Z_DATA is 44 | # read by one instance of Fish before another instance of Fish writes its copy. 45 | # 46 | command mv $tmpfile $Z_DATA 47 | or command rm $tmpfile 48 | end 49 | end 50 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/pr-monitoring.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | now=$(date +"%m_%d_%Y") 4 | now=$(date +"%Y-%m-%d") 5 | printf "📆 Last Run: %s\n" "${now}" > ~/repos-workflow/pr-monitoring.yaml 6 | echo -e "🤓 PR Monitoring\n" >> ~/repos-workflow/pr-monitoring.yaml 7 | 8 | echo -e "---\nReviews requested 🙏" >> ~/repos-workflow/pr-monitoring.yaml 9 | until python3 -m gita shell gh pr list -s open --search "review-requested:@me" | /usr/local/bin/ag 'OPEN|DRAFT' >> ~/repos-workflow/pr-monitoring.yaml; do 10 | printf '.' 11 | sleep 5 12 | done 13 | 14 | # echo -e "---\nAssigned 👈" >> ~/repos-workflow/pr-monitoring.yaml 15 | # until python3 -m gita shell gh pr list -s open --assignee "@me" | /usr/local/bin/ag 'OPEN|DRAFT' >> ~/repos-workflow/pr-monitoring.yaml; do 16 | # printf '.' 17 | # sleep 5 18 | # done 19 | 20 | # echo -e "---\nMentions 🎧" >> ~/repos-workflow/pr-monitoring.yaml 21 | # until python3 -m gita shell gh pr list -s open --search "mentions:@me" | /usr/local/bin/ag 'OPEN|DRAFT' >> ~/repos-workflow/pr-monitoring.yaml; do 22 | # printf '.' 23 | # sleep 5 24 | # done 25 | 26 | # echo -e "---\nI commented on 👄" >> ~/repos-workflow/pr-monitoring.yaml 27 | # until python3 -m gita shell gh pr list -s open --search "commenter:@me" | /usr/local/bin/ag 'OPEN|DRAFT' >> ~/repos-workflow/pr-monitoring.yaml; do 28 | # printf '.' 29 | # sleep 5 30 | # done 31 | 32 | # echo -e "---\nMine 💃" >> ~/repos-workflow/pr-monitoring.yaml 33 | # until python3 -m gita shell gh pr list -s open --author "@me" | /usr/local/bin/ag 'OPEN|DRAFT' >> ~/repos-workflow/pr-monitoring.yaml; do 34 | # printf '.' 35 | # sleep 5 36 | # done 37 | 38 | echo -e "\ndone ✅" >> ~/repos-workflow/pr-monitoring.yaml 39 | 40 | -------------------------------------------------------------------------------- /zellij/.config/zellij/layouts/work.kdl: -------------------------------------------------------------------------------- 1 | // work 2 | layout { 3 | default_tab_template { 4 | pane size=1 borderless=true { 5 | plugin location="zjstatus" 6 | } 7 | children 8 | pane size=2 borderless=true { 9 | plugin location="status-bar" { 10 | classic false 11 | } 12 | } 13 | } 14 | tab name="Work" hide_floating_panes=false { 15 | // pane name="Code" cwd="${PROJECTS}" 16 | pane split_direction="vertical" { 17 | pane name="Code" command="nvim" 18 | pane name="Daily Notes" cwd="${VAULT_MAIN}" size="20%" 19 | } 20 | floating_panes { 21 | pane name="Working Pad" command="git" { 22 | args "log" "--pretty=oneline" "-n 20" "--graph" "--abbrev-commit" 23 | x "10%" 24 | y "10%" 25 | width 130 26 | } 27 | } 28 | } 29 | tab name="Dashboard" { 30 | pane split_direction="vertical" { 31 | pane split_direction="horizontal" { 32 | pane name="Gratitudes" 33 | pane name="ToDos" 34 | } 35 | pane split_direction="horizontal" { 36 | pane name="Achievements" 37 | pane name="Fleeting Notes" 38 | } 39 | } 40 | } 41 | tab name="Learning" hide_floating_panes=false { 42 | // pane name="Code" cwd="${PROJECTS}" 43 | pane split_direction="vertical" { 44 | pane name="Code" cwd="${PROJECTS}/learning" command="nvim" 45 | pane name="Notes" cwd="${VAULT_MAIN}" size="40%" 46 | } 47 | } 48 | tab name="Exploring" hide_floating_panes=false { 49 | // pane name="Code" cwd="${PROJECTS}" 50 | pane split_direction="vertical" { 51 | pane name="Code" cwd="${PROJECTS}/exploring" command="nvim" 52 | pane name="Notes" cwd="${VAULT_MAIN}" size="40%" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/git.yazi/README.md: -------------------------------------------------------------------------------- 1 | # git.yazi 2 | 3 | > [!NOTE] 4 | > Yazi v25.2.26 or later is required for this plugin to work. 5 | 6 | Show the status of Git file changes as linemode in the file list. 7 | 8 | https://github.com/user-attachments/assets/34976be9-a871-4ffe-9d5a-c4cdd0bf4576 9 | 10 | ## Installation 11 | 12 | ```sh 13 | ya pack -a yazi-rs/plugins:git 14 | ``` 15 | 16 | ## Setup 17 | 18 | Add the following to your `~/.config/yazi/init.lua`: 19 | 20 | ```lua 21 | require("git"):setup() 22 | ``` 23 | 24 | And register it as fetchers in your `~/.config/yazi/yazi.toml`: 25 | 26 | ```toml 27 | [[plugin.prepend_fetchers]] 28 | id = "git" 29 | name = "*" 30 | run = "git" 31 | 32 | [[plugin.prepend_fetchers]] 33 | id = "git" 34 | name = "*/" 35 | run = "git" 36 | ``` 37 | 38 | ## Advanced 39 | 40 | You can customize the [Style](https://yazi-rs.github.io/docs/plugins/layout#style) of the status sign with: 41 | 42 | - `th.git.modified` 43 | - `th.git.added` 44 | - `th.git.untracked` 45 | - `th.git.ignored` 46 | - `th.git.deleted` 47 | - `th.git.updated` 48 | 49 | For example: 50 | 51 | ```lua 52 | -- ~/.config/yazi/init.lua 53 | th.git = th.git or {} 54 | th.git.modified = ui.Style():fg("blue") 55 | th.git.deleted = ui.Style():fg("red"):bold() 56 | ``` 57 | 58 | You can also customize the text of the status sign with: 59 | 60 | - `th.git.modified_sign` 61 | - `th.git.added_sign` 62 | - `th.git.untracked_sign` 63 | - `th.git.ignored_sign` 64 | - `th.git.deleted_sign` 65 | - `th.git.updated_sign` 66 | 67 | For example: 68 | 69 | ```lua 70 | -- ~/.config/yazi/init.lua 71 | th.git = th.git or {} 72 | th.git.modified_sign = "M" 73 | th.git.deleted_sign = "D" 74 | ``` 75 | 76 | ## License 77 | 78 | This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. 79 | -------------------------------------------------------------------------------- /other-configs/scripts/bash/markdownbrowser: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # Find and browse GitHub Actions workflow definitions. 4 | # In addition to regular shell tools (such as sed), this 5 | # script uses gh and fzf. 6 | 7 | tests() { 8 | # Takes owner type (org or user) and owner name. 9 | # Returns tab-separated list of owner/repo/workflowfile/path. 10 | local ownertype=$1 11 | local owner=$2 12 | 13 | # https://api.github.com/repos/knative/serving/git/trees/main?recursive=1 14 | # $..tree.*[?(@property === "path" && @.match(/\.md$/i) && !@.match(/^.github\//) && !@.match(/^vendor\//) )] 15 | 16 | # gh api \ 17 | # --method GET \ 18 | # --paginate \ 19 | # --cache "${GH_CACHETIME:-1h}" \ 20 | # --field "q=$ownertype:$owner language:markdown" \ 21 | # --jq '.items[] | ["\(.repository.full_name)/\(.name)", .repository.owner.login, .repository.name, .path] | @tsv' \ 22 | # "/search/code" 23 | curl --location --request GET 'https://api.github.com/repos/knative/serving/git/trees/main?recursive=1' | jq '.tree | .[] | select(.path | endswith(".md")) | {path: .path}' 24 | 25 | gh api -X GET --cache 1h --field "q=org:knative" "/search/code" --jq '.items[] | ["\(.repository.full_name)/\(.name)", .repository.owner.login, .repository.name]' 26 | } 27 | 28 | gh i -s open -o -u knative-sandbox && gh i -s open -o -u knative | code 29 | 30 | gh repo list -L 100 --public "knative" 31 | 32 | # jq .tree | .[] | select(.path | endswith(".md")) | {path: .path} 33 | # https://api.github.com/repos/knative/serving/git/trees/main?recursive=1 34 | 35 | main() { 36 | 37 | # Calls tests for my org and user. 38 | 39 | cat \ 40 | <(tests org knative) \ 41 | <(tests org knative-sandbox) \ 42 | | fzf \ 43 | --with-nth=1 \ 44 | --delimiter='\t' \ 45 | --preview='showgithubcontent {2} {3} {4} markdown always' \ 46 | | cut -f 2,3,4 47 | 48 | } 49 | 50 | main "$@" 51 | -------------------------------------------------------------------------------- /ghostty/.config/ghostty/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | ## My favorite features 4 | 5 | - Having a global key bind for toggling a quick terminal window. ❤️ 6 | 7 | - How it was made to be reconfigurable so easily. Every developer tools should have this philosoly. Looking at you iTerm. :) 8 | 9 | ## Not loving (but not really) 10 | 11 | I haven't found anything that makes my terminal usage worse off by using Ghostty, only the opposite. But, as I try to be diligent in moving away from mouse habits, it would be nice to be able to take actions like opening urls and other things using key bindings. Keeping an eye on this known issue: ["Hints" mode to quickly select and act on arbitrary text patterns visible in the terminal · ghostty-org/ghostty · Discussion #2394](https://github.com/ghostty-org/ghostty/discussions/2394). 12 | 13 | ## Documentation 14 | 15 | [Ghostty Docs](https://ghostty.org/docs) 16 | 17 | ## Cool related stuff 18 | 19 | - [zerebos/ghostty-config: A beautiful config generator for Ghostty terminal.](https://github.com/zerebos/ghostty-config) 20 | - [fearlessgeekmedia/Awesome-Ghostty: A list of tools, shaders, and more for Ghostty, an awesome GPU-accelerated terminal emulator.](https://github.com/fearlessgeekmedia/Awesome-Ghostty) 21 | 22 | ## Related tools I have installed 23 | 24 | - [isak102/ghostty.nvim: Automatically validate your Ghostty configuration on save](https://github.com/isak102/ghostty.nvim) 25 | - [bezhermoso/tree-sitter-ghostty: Tree-sitter grammar for Ghostty configuration files](https://github.com/bezhermoso/tree-sitter-ghostty) 26 | - [zeitlings/alfred-ghostty-script: AppleScript for Ghostty Alfred integration](https://github.com/zeitlings/alfred-ghostty-script) 27 | 28 | ## Potential for later 29 | 30 | - [matthewmturner/ghostty-lsp: Hover definitions for Ghostty's configuration file](https://github.com/matthewmturner/ghostty-lsp) 31 | - [MKindberg/ghostty-ls: A language server for working with the ghostty config](https://github.com/MKindberg/ghostty-ls) 32 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/images/pod.txt: -------------------------------------------------------------------------------- 1 |
                                                              
 2 |                                                               
 3 |                                                               
 4 |                                                               
 5 |                                                               
 6 |                ┌────────────────┐                             
 7 |                │   Cluster A    │                             
 8 |                └────────────────┘                             
 9 |              ┌───────────────────────────────────────────────┐
10 |              │  ┌─────┐                                      │
11 |              │  │Node │                                      │
12 |              │  └─────┘                                      │
13 |              │          ┌──────────────────────────────────┐ │
14 |              │          │  ┌────┐                          │ │
15 |              │          │  │Pod │                          │ │
16 |              │          │  └────┘    ┌───────────────────┐ │ │
17 |              │          │            │                   │ │ │
18 |              │          │            │  ┌──────┐         │ │ │
19 |              │          │            │  │nginx │         │ │ │
20 |              │          │            │  └──────┘         │ │ │
21 |              │          │            │                   │ │ │
22 |              │          │            │                   │ │ │
23 |              │          │            │                   │ │ │
24 |              │          │            │                   │ │ │
25 |              │          │            └───────────────────┘ │ │
26 |              │          │                                  │ │
27 |              │          └──────────────────────────────────┘ │
28 |              │                                               │
29 |              └───────────────────────────────────────────────┘
-------------------------------------------------------------------------------- /nvim/.config/nvim/lua/pickers/gratitude.lua: -------------------------------------------------------------------------------- 1 | local Snacks = Snacks 2 | local Path = require "plenary.path" 3 | local uv = vim.loop 4 | local vault_main = vim.env.VAULT_MAIN or "" 5 | 6 | local function get_modified_time(path) 7 | local stat = uv.fs_stat(path) 8 | return stat and stat.mtime and stat.mtime.sec or 0 9 | end 10 | 11 | -- :lua require("pickers.gratitude")() 12 | return function() 13 | local files = vim.fn.globpath(vault_main, "**/*.md", true, true) 14 | local gratitude_logs = {} 15 | local longest_log = 0 16 | 17 | for _, path in ipairs(files) do 18 | local lines = {} 19 | local fd = io.open(path, "r") 20 | if fd then 21 | for line in fd:lines() do 22 | table.insert(lines, line) 23 | end 24 | fd:close() 25 | end 26 | 27 | local mtime = get_modified_time(path) 28 | local name = Path:new(path):shorten():match "([^/]+)$" 29 | 30 | for _, line in ipairs(lines) do 31 | local raw_match = line:match "^%s*>?%s*[Gg]ratitude::%s*(.+)" 32 | if raw_match then 33 | local trimmed = raw_match:gsub("^%s+", ""):gsub("%s+$", "") 34 | if trimmed ~= "" and trimmed ~= ":" then 35 | table.insert(gratitude_logs, { 36 | text = trimmed, 37 | log = trimmed, 38 | path = path, 39 | name = name, 40 | modified = mtime, 41 | }) 42 | longest_log = math.max(longest_log, #trimmed) 43 | end 44 | end 45 | end 46 | end 47 | 48 | table.sort(gratitude_logs, function(a, b) 49 | return a.name > b.name 50 | end) 51 | 52 | return Snacks.picker { 53 | items = gratitude_logs, 54 | title = "🌼 Gratitude Logs", 55 | format = function(item) 56 | return { 57 | { item.log, "SnacksPickerLabel" }, 58 | { " | " .. item.name, "SnacksPickerComment" }, 59 | } 60 | end, 61 | confirm = function(picker, item) 62 | picker:close() 63 | vim.cmd("edit " .. item.path) 64 | end, 65 | } 66 | end 67 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/pickers/fleeting_notes.lua: -------------------------------------------------------------------------------- 1 | local Snacks = Snacks 2 | local Path = require "plenary.path" 3 | local uv = vim.loop 4 | local vault_main = vim.env.VAULT_MAIN or "" 5 | 6 | -- Read file content 7 | local function read_file(path) 8 | local fd = io.open(path, "r") 9 | if not fd then 10 | return "" 11 | end 12 | local content = fd:read "*a" 13 | fd:close() 14 | return content or "" 15 | end 16 | 17 | local function get_modified_time(path) 18 | local stat = uv.fs_stat(path) 19 | return stat and stat.mtime and stat.mtime.sec or 0 20 | end 21 | 22 | -- :lua require("pickers.fleeting")() 23 | return function() 24 | local files = vim.fn.globpath(vault_main, "**/*.md", true, true) 25 | local fleeting_notes = {} 26 | local longest_note = 0 27 | 28 | for _, path in ipairs(files) do 29 | local content = read_file(path) 30 | for line in content:gmatch "[^\r\n]+" do 31 | local match = line:match "%*%*Fleeting%*%*::%s*(.+)" 32 | if match then 33 | local mtime = get_modified_time(path) 34 | local name = Path:new(path):shorten():match "([^/]+)$" 35 | table.insert(fleeting_notes, { 36 | text = match, 37 | note = match, 38 | path = path, 39 | name = name, 40 | modified = mtime, 41 | }) 42 | longest_note = math.max(longest_note, #match) 43 | end 44 | end 45 | end 46 | 47 | -- Sort descending by file modified time 48 | table.sort(fleeting_notes, function(a, b) 49 | return a.modified > b.modified 50 | end) 51 | 52 | -- Take top 10 only 53 | local items = vim.list_slice(fleeting_notes, 1, 10) 54 | 55 | return Snacks.picker { 56 | title = "🌀 Recent Fleeting Notes", 57 | items = items, 58 | format = function(item) 59 | return { 60 | { item.note, "SnacksPickerLabel" }, 61 | { " | " .. item.name, "SnacksPickerComment" }, 62 | } 63 | end, 64 | confirm = function(picker, item) 65 | picker:close() 66 | vim.cmd("edit " .. item.path) 67 | end, 68 | } 69 | end 70 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/pickers/inbox.lua: -------------------------------------------------------------------------------- 1 | local Snacks = Snacks -- your global alias 2 | local Path = require("plenary.path") 3 | local uv = vim.loop 4 | local vault_main = vim.env.VAULT_MAIN or "" 5 | 6 | local function get_creation_time(path) 7 | local stat = uv.fs_stat(path) 8 | return stat and stat.birthtime and stat.birthtime.sec or 0 9 | end 10 | 11 | -- :lua require("pickers.inbox")() 12 | return function() 13 | local dir = vault_main .. "/§ Inbox" 14 | local files = vim.fn.globpath(dir, "**/*.md", true, true) 15 | 16 | local items = {} 17 | local longest_name = 0 18 | 19 | for _, path in ipairs(files) do 20 | local relpath = Path:new(path):make_relative(dir) 21 | 22 | -- Skip files in § Inbox/00 Sleeping 23 | if relpath:match("^00 Sleeping/") then 24 | goto continue 25 | end 26 | 27 | local filename = Path:new(path):shorten():match("([^/]+)$") 28 | 29 | -- Skip files that start with "@" 30 | if filename:sub(1, 1) == "@" then 31 | goto continue 32 | end 33 | 34 | local ctime = get_creation_time(path) 35 | local name = filename or path 36 | local label = string.format("%s | %s", name, os.date("%Y-%m-%d", ctime)) 37 | 38 | table.insert(items, { 39 | text = label, 40 | name = name, 41 | path = path, 42 | created = ctime, 43 | }) 44 | 45 | longest_name = math.max(longest_name, #name) 46 | 47 | ::continue:: 48 | end 49 | 50 | -- Sort by creation date (newest first) 51 | table.sort(items, function(a, b) 52 | return a.created > b.created 53 | end) 54 | 55 | -- Use Snacks picker with formatted label 56 | return Snacks.picker({ 57 | title = "📥 Inbox Notes Review", 58 | items = items, 59 | format = function(item) 60 | return { 61 | { ('%-' .. longest_name .. 's'):format(item.name), 'SnacksPickerLabel' }, 62 | { " | " .. os.date("%Y-%m-%d", item.created), 'SnacksPickerComment' }, 63 | } 64 | end, 65 | confirm = function(picker, item) 66 | picker:close() 67 | vim.cmd("edit " .. item.path) 68 | end, 69 | }) 70 | end 71 | -------------------------------------------------------------------------------- /gh/.config/gh/config.yml: -------------------------------------------------------------------------------- 1 | # What protocol to use when performing git operations. Supported values: ssh, https 2 | git_protocol: ssh 3 | # What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment. 4 | editor: code 5 | # When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled 6 | prompt: disabled 7 | # A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager. 8 | pager: delta -s 9 | # Aliases allow you to create nicknames for gh commands 10 | browser: "" 11 | aliases: 12 | a: "!git status --short | peco | awk '{print $2}' | xargs git add" 13 | co: '!id="$(gh pr list -L100 | fzf | cut -f1)"; [ -n "$id" ] && gh pr checkout "$id"' 14 | zen: api zen 15 | # triage - source: https://github.com/cli/cli/discussions/2618#discussioncomment-211346 16 | il: issue list 17 | isearch: | 18 | !gh issue list -L300 | ag $1 | cut -f1,3 19 | iv: issue view 20 | label: | 21 | !jq -n "{\"labels\":[\"$2\"]}" | gh api "repos/:owner/:repo/issues/$1/labels" --input - 22 | triage: | 23 | !gh api graphql --paginate -Fquery='query($endCursor:String){repository(owner:"cli",name:"cli"){issues(first:100,states:OPEN,after:$endCursor){pageInfo{hasNextPage endCursor}edges{node{number title labels(first:10){totalCount edges{node{name}}}}}}}}' | jq -r '.data.repository.issues.edges|map(.node)|map(select(any(.labels.edges[]; .node.name | test("p1|p2|p3|core|docs|help wanted|tracking issue|needs-design|blocked|needs-user-input")) | not))|map("\(.number)\t\(.title)")|.[]' 24 | # workflow 25 | job: '!gh run list -w "$1" -L1 | awk "{print \$13}" | xargs -I% gh run view % -v' 26 | # use: gh job ci 27 | ### 28 | live: "api --hostname github.tools.sap graphql -f query='\n mutation {\n changeUserStatus(input:{\n message: \"$1\",\n emoji: \"\U0001F4FA\"\n }) {\n status { message, emoji }\n }\n }'\n" 29 | assigned: issue list --assignee @me 30 | authswitch: '!bash -c "pass show $1/$2/pat | gh auth login --with-token && gh auth status 2> >(grep \"Logged in to $1\")"' 31 | -------------------------------------------------------------------------------- /other-configs/scripts/kind-with-registry.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Adapted from: 4 | # https://github.com/kubernetes-sigs/kind/commits/master/site/static/examples/kind-with-registry.sh 5 | # 6 | # Copyright 2020 The Kubernetes Project 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | 20 | set -o errexit 21 | 22 | # desired cluster name; default is "kind" 23 | KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-development}" 24 | 25 | # create registry container unless it already exists 26 | reg_name='kind-registry' 27 | reg_port='5000' 28 | running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" 29 | if [ "${running}" != 'true' ]; then 30 | docker run \ 31 | -d --restart=always -p "${reg_port}:5000" --name "${reg_name}" \ 32 | registry:2 33 | fi 34 | 35 | # create a cluster with the local registry enabled in containerd 36 | cat <> /etc/hosts" 48 | for node in $(kind get nodes --name "${KIND_CLUSTER_NAME}"); do 49 | docker exec "${node}" sh -c "${cmd}" 50 | kubectl annotate node "${node}" \ 51 | tilt.dev/registry=localhost:${reg_port} \ 52 | tilt.dev/registry-from-cluster=registry:${reg_port} 53 | done -------------------------------------------------------------------------------- /git/.gitconfig: -------------------------------------------------------------------------------- 1 | [push] 2 | default = simple 3 | [pull] 4 | ff = only 5 | 6 | [user] 7 | name = Carlisia Campos 8 | email = carlisia@gmail.com 9 | signingkey = 6707B608DD1E41DDDF8A7FCEC23690E728F56717 10 | 11 | [credential] 12 | helper = osxkeychain 13 | 14 | [alias] 15 | co = checkout 16 | oops = reset --hard 'HEAD@{1}' 17 | forgot = commit --amend -C HEAD 18 | lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all 19 | wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads 20 | reflog-detail = log -g --abbrev-commit --pretty=oneline 21 | 22 | [diff] 23 | tool = vscode 24 | [difftool "vscode"] 25 | cmd = code --wait --diff $LOCAL $REMOTE 26 | 27 | [merge] 28 | # tool = vimdiff 29 | [mergetool "kdiff3"] 30 | keepBackup = true 31 | # path = /usr/local/bin/kdiff3 32 | [filter "media"] 33 | required = true 34 | clean = git media clean %f 35 | smudge = git media smudge %f 36 | [core] 37 | pager = diff-so-fancy | less --tabs=4 -RFX 38 | editor = nvim 39 | excludesfile = ~/.gitignore_global 40 | [interactive] 41 | diffFilter = diff-so-fancy --patch 42 | [init] 43 | defaultBranch = main 44 | 45 | 46 | [delta] 47 | line-numbers = true 48 | zero-style = dim syntax 49 | 50 | 51 | [filter "hawser"] 52 | clean = git hawser clean %f 53 | smudge = git hawser smudge %f 54 | required = true 55 | 56 | [http] 57 | cookiefile = /Users/carlisiacampos/.gitcookies 58 | 59 | [url "git@github.com:"] 60 | insteadOf = https://github.com/ 61 | 62 | [url "git@gitlab.com:"] 63 | insteadOf = https://gitlab.com/ 64 | 65 | [filter "lfs"] 66 | # First time: 67 | # brew install git-lfs 68 | # git lfs install 69 | # Configure per repo when you have large files in your repository and/or a lot of binaries: 70 | # https://mydeveloperplanet.com/2018/10/31/git-lfs-why-and-how-to-use/ 71 | process = git-lfs filter-process 72 | required = true 73 | clean = git-lfs clean -- %f 74 | smudge = git-lfs smudge -- %f 75 | [gc] 76 | autoDetach = false 77 | [commit] 78 | gpsign = true 79 | gpgsign = true 80 | [gpg] 81 | program = /opt/homebrew/bin/gpg 82 | -------------------------------------------------------------------------------- /yazi/.config/yazi/package.toml: -------------------------------------------------------------------------------- 1 | [[plugin.deps]] 2 | use = "Reledia/glow" 3 | rev = "c76bf4f" 4 | hash = "a6b78bf9af5390e3a85a6951fbb7b93" 5 | 6 | [[plugin.deps]] 7 | use = "yazi-rs/plugins:git" 8 | rev = "2730199" 9 | hash = "e0d2c8d7e7afe5b82270367098d1a821" 10 | 11 | [[plugin.deps]] 12 | use = "yazi-rs/plugins:smart-filter" 13 | rev = "2730199" 14 | hash = "f0c4b41b5d19a3144958383333eff6e7" 15 | 16 | [[plugin.deps]] 17 | use = "imsi32/yatline" 18 | rev = "6b0fc1e" 19 | hash = "ab115c6cc77f5710c27f39dfa2f3d4d" 20 | 21 | [[plugin.deps]] 22 | use = "imsi32/yatline-githead" 23 | rev = "3b0eb7c" 24 | hash = "bfd30c396bbe2af526cb949d97ce3dcf" 25 | 26 | [[plugin.deps]] 27 | use = "yazi-rs/plugins:chmod" 28 | rev = "2730199" 29 | hash = "2f1053f89d1a301a648ab181d0948e38" 30 | 31 | [[plugin.deps]] 32 | use = "lpanebr/yazi-plugins:yatline-symlink" 33 | rev = "ca18a2c" 34 | hash = "32939ad5b4738c2595a904997fd30ea6" 35 | 36 | [[plugin.deps]] 37 | use = "wekauwau/yatline-tokyo-night" 38 | rev = "19dbd25" 39 | hash = "5f00a80a79b9f7fd8e24d6fa5dbb3ae" 40 | 41 | [[plugin.deps]] 42 | use = "wakaka6/yatline-dracula" 43 | rev = "82dde5a" 44 | hash = "bc0f8b6847f57a3519050b18ab85ae8" 45 | 46 | [[plugin.deps]] 47 | use = "yazi-rs/plugins:full-border" 48 | rev = "2730199" 49 | hash = "1f3dad061209081a6b04dd6ff2cb06c7" 50 | 51 | [[plugin.deps]] 52 | use = "hankertrix/augment-command" 53 | rev = "926b1d1" 54 | hash = "a8a1927e911080120847e813dbc39bad" 55 | 56 | [[plugin.deps]] 57 | use = "yazi-rs/plugins:toggle-pane" 58 | rev = "2730199" 59 | hash = "5c9dda1a587b8f5b6f63e3d5375bda88" 60 | 61 | [[plugin.deps]] 62 | use = "AnirudhG07/custom-shell" 63 | rev = "6b4550a" 64 | hash = "43019cca17a4d7b41746c2e0a6b8f33f" 65 | 66 | [[flavor.deps]] 67 | use = "yazi-rs/flavors:catppuccin-mocha" 68 | rev = "68326b4" 69 | hash = "2ac87e1b3a61f5887472899e86535d29" 70 | 71 | [[flavor.deps]] 72 | use = "yazi-rs/flavors:dracula" 73 | rev = "68326b4" 74 | hash = "53e1f10ae0f6abd406e463fceca8622a" 75 | 76 | [[flavor.deps]] 77 | use = "yazi-rs/flavors:catppuccin-macchiato" 78 | rev = "68326b4" 79 | hash = "3ec21bcfd2735cfcbab61faaf43e59e4" 80 | 81 | [[flavor.deps]] 82 | use = "tkapias/nightfly" 83 | rev = "599b8ad" 84 | hash = "d1a9e05ecbbd63bc5bb85a54e7f1e33a" 85 | 86 | [[flavor.deps]] 87 | use = "yazi-rs/flavors:catppuccin-latte" 88 | rev = "68326b4" 89 | hash = "5dffea1e87c50b18b8bb1599f6d4881a" 90 | -------------------------------------------------------------------------------- /ghostty/.config/ghostty/config: -------------------------------------------------------------------------------- 1 | # https://github.com/ghostty-org/ghostty/blob/d6e76858164d52cff460fedc61ddf2e560912d71/src/input/key.zig#L255 2 | # https://ghostty.org/docs/config/keybind 3 | 4 | # Fonts 5 | font-family = "Fira Code" 6 | font-family-bold = "Fira Code" 7 | font-family-italic = "Maple Mono" 8 | font-family-bold-italic = "Maple Mono" 9 | font-family = "Symbols Nerd Font Mono" 10 | font-size = 14 11 | adjust-underline-position = 4 12 | 13 | # Mouse 14 | mouse-hide-while-typing = false 15 | 16 | # Theme 17 | # theme = catppuccin-frappe 18 | # theme = breeze 19 | # theme = nord 20 | theme = tokyonight_moon 21 | cursor-invert-fg-bg = true 22 | bold-is-bright = true 23 | background-opacity = 0.95 24 | 25 | # keybindings 26 | keybind = clear 27 | keybind = super+shift+r=reload_config 28 | keybind = super+shift+c=open_config 29 | keybind = super+shift+s=write_screen_file:open 30 | keybind = super+w=close_surface 31 | keybind = ctrl+shift+q+=quit 32 | keybind = super+n=new_window 33 | keybind = super+c=copy_to_clipboard 34 | keybind = super+v=paste_from_clipboard 35 | 36 | # toggles 37 | keybind = super+shift+i=inspector:toggle 38 | # zoom in on the current tab: 39 | keybind = cmd+shift+t=toggle_tab_overview 40 | keybind = cmd+shift+v=toggle_visibility 41 | 42 | ## Global: 43 | ## "p" for "peak" 44 | keybind = global:ctrl+shift+p=toggle_quick_terminal 45 | 46 | # Window 47 | window-padding-y = 2,0 48 | window-padding-balance = true 49 | window-decoration = auto 50 | window-save-state = always 51 | initial-window = true 52 | quit-after-last-window-closed = true 53 | quick-terminal-autohide = false 54 | macos-icon = holographic 55 | gtk-single-instance = false 56 | macos-titlebar-style = tabs 57 | adw-toolbar-style = raised-border 58 | 59 | # Tabs 60 | keybind = super+t=new_tab 61 | keybind = super+shift+h=previous_tab 62 | keybind = super+shift+l=next_tab 63 | keybind = super+shift+comma=move_tab:-1 64 | keybind = super+shift+period=move_tab:1 65 | 66 | gtk-wide-tabs = false 67 | 68 | # Splits 69 | keybind = alt+shift+h=goto_split:left 70 | keybind = alt+shift+j=goto_split:bottom 71 | keybind = alt+shift+k=goto_split:top 72 | keybind = alt+shift+l=goto_split:right 73 | keybind = super+shift+enter=new_split:auto 74 | keybind = cmd+d=new_split:right 75 | keybind = cmd+shift+d=new_split:down 76 | keybind = cmd+shift+m=toggle_split_zoom 77 | 78 | # Other 79 | shell-integration-features = cursor,sudo,title 80 | copy-on-select = false 81 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/configs/noice.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | M.config = { 4 | cmdline = { 5 | enabled = true, -- enables the Noice cmdline UI 6 | view = "cmdline_popup", -- view for rendering the cmdline. Change to `cmdline` to get a classic cmdline at the bottom 7 | }, 8 | messages = { 9 | -- NOTE: If you enable messages, then the cmdline is enabled automatically. 10 | -- This is a current Neovim limitation. 11 | enabled = true, -- enables the Noice messages UI 12 | view = "notify", -- default view for messages 13 | view_error = false, -- view for errors 14 | view_warn = false, -- view for warnings 15 | view_history = "messages", -- view for :messages 16 | view_search = "virtualtext", -- view for search count messages. Set to `false` to disable 17 | }, 18 | notify = { enabled = false }, 19 | notifier = { 20 | top_down = false, 21 | }, 22 | presets = { 23 | command_palette = { 24 | views = { 25 | cmdline_popup = { 26 | position = { 27 | row = "40%", 28 | col = "50%", 29 | }, 30 | }, 31 | cmdline_popupmenu = { 32 | position = { 33 | row = "40%", 34 | col = "50%", 35 | }, 36 | }, 37 | }, 38 | }, 39 | }, 40 | lsp = { 41 | progress = { 42 | enabled = true, 43 | -- Lsp Progress is formatted using the builtins for lsp_progress. See config.format.builtin 44 | -- See the section on formatting for more details on how to customize. 45 | -- - @type NoiceFormat|string 46 | format = "lsp_progress", 47 | -- - @type NoiceFormat|string 48 | format_done = "lsp_progress_done", 49 | throttle = 1000 / 30, -- frequency to update lsp progress message 50 | view = "mini", 51 | }, 52 | override = { 53 | -- override the default lsp markdown formatter with Noice 54 | ["vim.lsp.util.convert_input_to_markdown_lines"] = true, 55 | -- override the lsp markdown formatter with Noice 56 | ["vim.lsp.util.stylize_markdown"] = true, 57 | -- override cmp documentation with Noice (needs the other options to work) 58 | ["cmp.entry.get_documentation"] = true, 59 | }, 60 | signature = { enabled = false }, 61 | hover = { enabled = false }, 62 | message = { 63 | -- Messages shown by lsp servers 64 | enabled = false, 65 | }, 66 | }, 67 | } 68 | 69 | return M 70 | -------------------------------------------------------------------------------- /k9s/.k9s/skin.yml: -------------------------------------------------------------------------------- 1 | # K9s Gruvbox Dark Skin Contributed by [@indiebrain](https://github.com/indiebrain) 2 | foreground: &foreground "#ebdbb2" 3 | background: &background "#272727" 4 | current_line: ¤t_line "#ebdbb2" 5 | selection: &selection "#3c3735" 6 | comment: &comment "#bdad93" 7 | cyan: &cyan "#689d69" 8 | green: &green "#989719" 9 | orange: &orange "#d79920" 10 | magenta: &magenta "#b16185" 11 | blue: &blue "#448488" 12 | red: &red "#cc231c" 13 | 14 | k9s: 15 | body: 16 | fgColor: *foreground 17 | bgColor: *background 18 | logoColor: *blue 19 | info: 20 | fgColor: *magenta 21 | sectionColor: *foreground 22 | dialog: 23 | fgColor: *foreground 24 | bgColor: *background 25 | buttonFgColor: *foreground 26 | buttonBgColor: *magenta 27 | buttonFocusFgColor: white 28 | buttonFocusBgColor: *cyan 29 | labelFgColor: *orange 30 | fieldFgColor: *foreground 31 | frame: 32 | border: 33 | fgColor: *selection 34 | focusColor: *current_line 35 | menu: 36 | fgColor: *foreground 37 | keyColor: *magenta 38 | numKeyColor: *magenta 39 | crumbs: 40 | fgColor: *foreground 41 | bgColor: *comment 42 | activeColor: *blue 43 | status: 44 | newColor: *cyan 45 | modifyColor: *blue 46 | addColor: *green 47 | errorColor: *red 48 | highlightcolor: *orange 49 | killColor: *comment 50 | completedColor: *comment 51 | title: 52 | fgColor: *foreground 53 | bgColor: *background 54 | highlightColor: *orange 55 | counterColor: *blue 56 | filterColor: *magenta 57 | views: 58 | charts: 59 | bgColor: background 60 | defaultDialColors: 61 | - *blue 62 | - *red 63 | defaultChartColors: 64 | - *blue 65 | - *red 66 | table: 67 | fgColor: *foreground 68 | bgColor: *background 69 | cursorFgColor: *foreground 70 | cursorBgColor: *current_line 71 | header: 72 | fgColor: *foreground 73 | bgColor: *background 74 | sorterColor: *selection 75 | xray: 76 | fgColor: *foreground 77 | bgColor: *background 78 | cursorColor: *current_line 79 | graphicColor: *blue 80 | showIcons: false 81 | yaml: 82 | keyColor: *magenta 83 | colonColor: *blue 84 | valueColor: *foreground 85 | logs: 86 | fgColor: *foreground 87 | bgColor: *background 88 | indicator: 89 | fgColor: *foreground 90 | bgColor: *background -------------------------------------------------------------------------------- /yazi/.config/yazi/plugins/yatline-dracula.yazi/main.lua: -------------------------------------------------------------------------------- 1 | --==================-- 2 | -- Dracula Theme -- 3 | --==================-- 4 | 5 | local dracula_palette = { 6 | bg = "#282a36", -- Dracula background 7 | bg_highlight = "#44475a", -- Dracula current line/selection 8 | fg = "#f8f8f2", -- Dracula foreground 9 | blue = "#6272a4", -- Dracula comment 10 | cyan = "#8be9fd", -- Dracula cyan 11 | green = "#50fa7b", -- Dracula green 12 | orange = "#ffb86c", -- Dracula orange 13 | pink = "#ff79c6", -- Dracula pink 14 | purple = "#bd93f9", -- Dracula purple 15 | red = "#ff5555", -- Dracula red 16 | yellow = "#f1fa8c", -- Dracula yellow 17 | } 18 | 19 | --- Gets the Dracula theme. 20 | --- @return table theme Used in Yatline. 21 | local function dracula_theme() 22 | local palette = dracula_palette 23 | 24 | return { 25 | section_separator = { open = "", close = "" }, 26 | part_separator = { open = "", close = "" }, 27 | inverse_separator = { open = "", close = "" }, 28 | ---#=== yatline ===#--- 29 | style_a = { 30 | fg = palette.bg, 31 | bg_mode = { 32 | normal = palette.purple, -- Using purple as primary mode color 33 | select = palette.pink, -- Using pink for select mode 34 | un_set = palette.red, -- Keeping red for unset mode 35 | }, 36 | }, 37 | style_b = { bg = palette.blue, fg = palette.fg }, 38 | style_c = { bg = palette.bg_highlight, fg = palette.fg }, 39 | 40 | permissions_t_fg = palette.cyan, -- Using cyan for 't' permissions 41 | permissions_r_fg = palette.yellow, -- Using yellow for 'r' permissions 42 | permissions_w_fg = palette.red, -- Using red for 'w' permissions 43 | permissions_x_fg = palette.green, -- Using green for 'x' permissions 44 | permissions_s_fg = palette.fg, -- Using default fg for 's' permissions 45 | 46 | selected = { icon = "󰻭", fg = palette.pink }, -- Using pink for selected items 47 | copied = { icon = "", fg = palette.green }, -- Using green for copied items 48 | cut = { icon = "", fg = palette.red }, -- Using red for cut items 49 | 50 | total = { icon = "󰮍", fg = palette.yellow }, -- Using yellow for totals 51 | succ = { icon = "", fg = palette.green }, -- Using green for success 52 | fail = { icon = "", fg = palette.red }, -- Using red for failures 53 | found = { icon = "󰮕", fg = palette.cyan }, -- Using cyan for found items 54 | processed = { icon = "󰐍", fg = palette.orange }, -- Using orange for processed items 55 | } 56 | end 57 | 58 | return { 59 | setup = function() 60 | return dracula_theme() 61 | end, 62 | } 63 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/utils/lsp_bindings_markdown.lua: -------------------------------------------------------------------------------- 1 | local helper = require "utils.functions" 2 | 3 | local M = {} 4 | 5 | --- Dashboards 6 | M.notes_dashboards = { 7 | wf = { 8 | function() 9 | require "pickers.fleeting_notes"() 10 | end, 11 | "🌀 Fleeting notes", 12 | }, 13 | wg = { 14 | function() 15 | require "pickers.gratitude"() 16 | end, 17 | "🌼 Gratitude logs", 18 | }, 19 | wi = { 20 | function() 21 | require "pickers.inbox"() 22 | end, 23 | "📥 Inbox", 24 | }, 25 | } 26 | 27 | M.obsidian_workflows = { 28 | -- General note actions 29 | oae = { "ObsidianExtractNote", "Extract selection to new note" }, 30 | oar = { "ObsidianRename", "Rename note and update backlinks" }, 31 | 32 | -- Daily note commands 33 | odt = { "ObsidianToday", "Open/create today's note" }, 34 | odd = { "ObsidianDailies", "List daily notes" }, 35 | odm = { "ObsidianTomorrow", "Open/create tomorrow's note" }, 36 | ody = { "ObsidianYesterday", "Open/create yesterday's note" }, 37 | 38 | -- Links 39 | olh = { "ObsidianFollowLink hsplit", "Open link horizontal" }, 40 | olv = { "ObsidianFollowLink vsplit", "Open link vertical" }, 41 | 42 | olb = { "ObsidianBacklinks", "Show backlinks to current note" }, 43 | oll = { "ObsidianLinks", "List links in current buffer" }, 44 | oln = { "ObsidianLinkNew", "New linked note from selection" }, 45 | ols = { "ObsidianLink", "Link visual selection to note" }, 46 | 47 | -- Template-related 48 | otc = { ":ObsidianTemplate note :lua vim.cmd([[1,/^\\S/s/^\\n\\{1,}//]])", "Convert to note template" }, 49 | oti = { "ObsidianTemplate", "Insert template" }, 50 | otn = { "ObsidianNewFromTemplate", "New note from template" }, 51 | 52 | -- Others 53 | of = { "ObsidianFollowLink", "Open link" }, 54 | og = { "ObsidianTags", "Show all tags in vault" }, 55 | on = { ":CreateOrOpenNote ", "Create or open note" }, 56 | op = { "MarkdownPreview", "Preview on browser" }, 57 | os = { "ObsidianSearch", "Search/create note with picker" }, 58 | ox = { "ObsidianToggleCheckbox", "Toggle checkbox" }, 59 | } 60 | 61 | M.images = { 62 | is = { helper.select_image, "Select an image to insert" }, 63 | ip = { "PasteImage", "Paste an image" }, 64 | ir = { helper.rename_image_under_cursor, "Rename an image" }, 65 | id = { helper.delete_image_under_cursor, "Delete an image" }, 66 | } 67 | 68 | return M 69 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/configs/lspconfig.lua: -------------------------------------------------------------------------------- 1 | -- [nvim-lspconfig/doc/configs.md at master · neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md) 2 | local configs = require "nvchad.configs.lspconfig" 3 | 4 | local servers = {} 5 | 6 | -- Clone `configs.capabilities` so it's not mutated, because Lua tables are reference-based: 7 | local base_capabilities = vim.deepcopy(configs.capabilities) 8 | -- Helper to optionally extend capabilities per server 9 | local function with_capabilities(custom) 10 | return vim.tbl_deep_extend("force", {}, base_capabilities, custom or {}) 11 | end 12 | 13 | -- https://github.com/golang/tools/blob/3e76cae71578160dca62d1cab42a715ef960c892/gopls/doc/settings.md 14 | -- https://github.com/golang/tools/blob/master/gopls/doc/vim.md 15 | require("go").setup(require("configs.go_plugins").govim) 16 | servers["gopls"] = require("go.lsp").config() 17 | 18 | servers["sqlls"] = { 19 | filetypes = { "sql", "mysql", "plsql" }, 20 | } 21 | 22 | servers["yamlls"] = { 23 | settings = { 24 | yaml = { 25 | schemas = { 26 | ["https://raw.githubusercontent.com/kedro-org/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"] = "conf/**/*catalog*", 27 | ["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*", 28 | }, 29 | }, 30 | }, 31 | } 32 | 33 | servers["jsonls"] = { 34 | settings = { 35 | json = { 36 | schemas = { 37 | { 38 | fileMatch = { "package.json" }, 39 | url = "https://json.schemastore.org/package.json", 40 | }, 41 | }, 42 | validate = { enable = true }, 43 | }, 44 | }, 45 | } 46 | 47 | servers["marksman"] = { 48 | filetypes = { "markdown", "md", "mdx" }, 49 | capabilities = with_capabilities { 50 | workspace = { 51 | didChangeWatchedFiles = { 52 | dynamicRegistration = true, 53 | }, 54 | }, 55 | textDocument = { 56 | foldingRange = { 57 | dynamicRegistration = false, 58 | lineFoldingOnly = true, 59 | }, 60 | }, 61 | }, 62 | } 63 | 64 | servers["taplo"] = {} 65 | 66 | require("lspconfig").lua_ls.setup { 67 | settings = { 68 | Lua = { 69 | hint = { 70 | enable = true, 71 | paramName = "All", 72 | paramType = true, 73 | setType = true, 74 | arrayIndex = "Auto", 75 | semicolon = "Disable", 76 | }, 77 | }, 78 | }, 79 | } 80 | 81 | for name, opts in pairs(servers) do 82 | opts.on_init = configs.on_init 83 | opts.capabilities = opts.capabilities or base_capabilities 84 | 85 | require("lspconfig")[name].setup(opts) 86 | end 87 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/aws-nginx-restic/with-pv.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2017 the Velero contributors. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | --- 16 | apiVersion: v1 17 | kind: Namespace 18 | metadata: 19 | name: restic-nginx 20 | labels: 21 | app: nginx 22 | 23 | --- 24 | kind: PersistentVolumeClaim 25 | apiVersion: v1 26 | metadata: 27 | name: nginx-logs 28 | namespace: restic-nginx 29 | labels: 30 | app: nginx 31 | spec: 32 | storageClassName: 33 | accessModes: 34 | - ReadWriteOnce 35 | resources: 36 | requests: 37 | storage: 50Mi 38 | 39 | --- 40 | apiVersion: apps/v1beta1 41 | kind: Deployment 42 | metadata: 43 | name: nginx-deployment 44 | namespace: restic-nginx 45 | spec: 46 | replicas: 1 47 | template: 48 | metadata: 49 | labels: 50 | app: nginx 51 | annotations: 52 | pre.hook.backup.velero.io/container: fsfreeze 53 | pre.hook.backup.velero.io/command: '["/sbin/fsfreeze", "--freeze", "/var/log/nginx"]' 54 | post.hook.backup.velero.io/container: fsfreeze 55 | post.hook.backup.velero.io/command: '["/sbin/fsfreeze", "--unfreeze", "/var/log/nginx"]' 56 | spec: 57 | volumes: 58 | - name: nginx-logs 59 | persistentVolumeClaim: 60 | claimName: nginx-logs 61 | containers: 62 | - image: nginx:1.7.9 63 | name: nginx 64 | ports: 65 | - containerPort: 80 66 | volumeMounts: 67 | - mountPath: "/var/log/nginx" 68 | name: nginx-logs 69 | readOnly: false 70 | - image: gcr.io/heptio-images/fsfreeze-pause:latest 71 | name: fsfreeze 72 | securityContext: 73 | privileged: true 74 | volumeMounts: 75 | - mountPath: "/var/log/nginx" 76 | name: nginx-logs 77 | readOnly: false 78 | 79 | --- 80 | apiVersion: v1 81 | kind: Service 82 | metadata: 83 | labels: 84 | app: nginx 85 | name: my-nginx 86 | namespace: restic-nginx 87 | spec: 88 | ports: 89 | - port: 80 90 | targetPort: 80 91 | selector: 92 | app: nginx 93 | type: LoadBalancer 94 | -------------------------------------------------------------------------------- /other-configs/scripts/demos/velero-scripts/local-minio/with-pv.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2017 the Velero contributors. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | --- 16 | apiVersion: v1 17 | kind: Namespace 18 | metadata: 19 | name: nginx-example 20 | labels: 21 | app: nginx 22 | 23 | --- 24 | kind: PersistentVolumeClaim 25 | apiVersion: v1 26 | metadata: 27 | name: nginx-logs 28 | namespace: nginx-example 29 | labels: 30 | app: nginx 31 | spec: 32 | storageClassName: 33 | accessModes: 34 | - ReadWriteOnce 35 | resources: 36 | requests: 37 | storage: 50Mi 38 | 39 | --- 40 | apiVersion: apps/v1beta1 41 | kind: Deployment 42 | metadata: 43 | name: nginx-deployment 44 | namespace: nginx-example 45 | spec: 46 | replicas: 1 47 | template: 48 | metadata: 49 | labels: 50 | app: nginx 51 | # annotations: 52 | # pre.hook.backup.velero.io/container: fsfreeze 53 | # pre.hook.backup.velero.io/command: '["/sbin/fsfreeze", "--freeze", "/var/log/nginx"]' 54 | # post.hook.backup.velero.io/container: fsfreeze 55 | # post.hook.backup.velero.io/command: '["/sbin/fsfreeze", "--unfreeze", "/var/log/nginx"]' 56 | spec: 57 | volumes: 58 | - name: nginx-logs 59 | persistentVolumeClaim: 60 | claimName: nginx-logs 61 | containers: 62 | - image: nginx:1.7.9 63 | name: nginx 64 | ports: 65 | - containerPort: 80 66 | volumeMounts: 67 | - mountPath: "/var/log/nginx" 68 | name: nginx-logs 69 | readOnly: false 70 | # - image: gcr.io/heptio-images/fsfreeze-pause:latest 71 | # name: fsfreeze 72 | # securityContext: 73 | # privileged: true 74 | # volumeMounts: 75 | # - mountPath: "/var/log/nginx" 76 | # name: nginx-logs 77 | # readOnly: false 78 | 79 | --- 80 | apiVersion: v1 81 | kind: Service 82 | metadata: 83 | labels: 84 | app: nginx 85 | name: my-nginx 86 | namespace: nginx-example 87 | spec: 88 | ports: 89 | - port: 80 90 | targetPort: 80 91 | selector: 92 | app: nginx 93 | type: LoadBalancer 94 | -------------------------------------------------------------------------------- /fish/.config/fish/config.fish: -------------------------------------------------------------------------------- 1 | # Shell 2 | set -gx SHELL /opt/homebrew/bin/fish 3 | # XDG 4 | set -gx XDG_CONFIG_HOME $HOME/.config 5 | # CDPATH 6 | set -gx CDPATH $XDG_CONFIG_HOME # magic! 7 | 8 | # Editor 9 | set -gx EDITOR nvim 10 | set -gx VISUAL $EDITOR 11 | set -gx SUDO_EDITOR $EDITOR 12 | 13 | # GPG 14 | set -gx GPG_TTY (tty) 15 | 16 | # Projects 17 | set -gx PROJECTS $HOME/code/src/github.com 18 | set -gx VAULT_MAIN $SECOND_BRAIN 19 | 20 | # Path 21 | set -x fish_user_paths 22 | fish_add_path $HOME 23 | fish_add_path $HOME/.local/bin 24 | fish_add_path /opt/homebrew/bin 25 | fish_add_path /opt/homebrew/opt/coreutils/libexec/gnubin 26 | fish_add_path /usr/local/bin 27 | 28 | # Go 29 | set -x GOPATH ~/code 30 | set -x GOBIN $GOPATH/bin 31 | fish_add_path $GOPATH $GOBIN 32 | 33 | # Rust 34 | fish_add_path $HOME/.cargo/bin 35 | 36 | # Fish 37 | set fish_greeting 38 | function fish_user_key_bindings 39 | fish_vi_key_bindings 40 | commandline -f forward-char # Enters insert mode by default 41 | end 42 | 43 | # shortcut s/command rm/\rm 44 | function \rm --wraps=command 45 | command rm $argv 46 | end 47 | 48 | # Startship prompt 49 | starship init fish | source 50 | 51 | # ----- aliases# Git 52 | alias g="git status -sb" 53 | alias ggl "git log --pretty=oneline -n 20 --graph --abbrev-commit" 54 | alias ggsl "git shortlog --summary --numbered" 55 | 56 | # Visual Studio Code – path escape 57 | alias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code" 58 | 59 | # Python & pip 60 | alias python="python3" 61 | alias pip="pip3" 62 | 63 | alias vl="nvim leetcode.nvim" 64 | 65 | # Tools 66 | alias j="z" #jethrokuan/z (jump to projects) 67 | alias zz="zellij" 68 | 69 | alias rm='echo "🧨 NOT REMOVED! Use `trash` or, for permanent deletion, `\rm`."; false' 70 | 71 | # bat 72 | alias cat='bat' 73 | alias less='bat' 74 | alias head='bat --line-range :10' 75 | alias tail='bat --line-range -10:' 76 | alias batdiff='git diff --name-only | xargs bat' 77 | 78 | #previewer for fzf: 79 | set -x FZF_DEFAULT_OPTS '--preview "bat --style=numbers --color=always --line-range :500 {}"' 80 | 81 | # ----- abbr 82 | 83 | # Editor 84 | abbr vim nvim 85 | abbr vi nvim 86 | abbr v nvim 87 | 88 | # Kubernetes 89 | abbr kk kubectl 90 | abbr kkgp "kubectl get pods" 91 | abbr kkgn "kubectl get nodes" 92 | abbr kkgd "kubectl get deploy" 93 | abbr kkgr "kubectl get rs" 94 | abbr kkgs "kubectl get ns" 95 | 96 | abbr kkpka "pbpaste | kubectl apply -f-" 97 | abbr kkpkr "pbpaste | kubectl delete -f-" 98 | 99 | # Eza – enhanced ls alternatives 100 | if type -q eza 101 | abbr ll "eza -l -a --icons" 102 | abbr llt "eza -l -a --icons --tree" 103 | end 104 | -------------------------------------------------------------------------------- /nvim/.config/nvim/lua/configs/render-markdown.lua: -------------------------------------------------------------------------------- 1 | local M = {} 2 | 3 | local color1_bg = "#f7ca88" 4 | local color2_bg = "#a86c9a" 5 | local color3_bg = "#268bd2" 6 | local color4_bg = "#849900" 7 | local color5_bg = "#a16946" 8 | local color6_bg = "#656565" 9 | local color_fg = "#323449" 10 | 11 | vim.cmd(string.format([[highlight Headline1Bg guifg=%s guibg=%s]], color_fg, color1_bg)) 12 | vim.cmd(string.format([[highlight Headline2Bg guifg=%s guibg=%s]], color_fg, color2_bg)) 13 | vim.cmd(string.format([[highlight Headline3Bg guifg=%s guibg=%s]], color_fg, color3_bg)) 14 | vim.cmd(string.format([[highlight Headline4Bg guifg=%s guibg=%s]], color_fg, color4_bg)) 15 | vim.cmd(string.format([[highlight Headline5Bg guifg=%s guibg=%s]], color_fg, color5_bg)) 16 | vim.cmd(string.format([[highlight Headline6Bg guifg=%s guibg=%s]], color_fg, color6_bg)) 17 | 18 | vim.cmd(string.format([[highlight Headline1Fg cterm=bold gui=bold guifg=%s]], color1_bg)) 19 | vim.cmd(string.format([[highlight Headline2Fg cterm=bold gui=bold guifg=%s]], color2_bg)) 20 | vim.cmd(string.format([[highlight Headline3Fg cterm=bold gui=bold guifg=%s]], color3_bg)) 21 | vim.cmd(string.format([[highlight Headline4Fg cterm=bold gui=bold guifg=%s]], color4_bg)) 22 | vim.cmd(string.format([[highlight Headline5Fg cterm=bold gui=bold guifg=%s]], color5_bg)) 23 | vim.cmd(string.format([[highlight Headline6Fg cterm=bold gui=bold guifg=%s]], color6_bg)) 24 | 25 | M.opts = { 26 | preset = "obsidian", 27 | completions = { lsp = { enabled = false } }, -- no need to add the nvim-cmp source if lsp based completions is enabled here. 28 | code = { width = "block" }, 29 | render_modes = true, 30 | indent = { 31 | -- Turn on / off org-indent-mode. 32 | enabled = false, 33 | -- Additional modes to render indents. 34 | render_modes = true, 35 | -- Amount of additional padding added for each heading level. 36 | per_level = 2, 37 | -- Heading levels <= this value will not be indented. 38 | -- Use 0 to begin indenting from the very first level. 39 | skip_level = 2, 40 | -- Do not indent heading titles, only the body. 41 | skip_heading = false, 42 | -- Prefix added when indenting, one per level. 43 | icon = "▎", 44 | -- Applied to icon. 45 | highlight = "RenderMarkdownIndent", 46 | }, 47 | 48 | -- These are the colors for the eldritch colorscheme 49 | heading = { 50 | width = { "full", "block" }, 51 | min_width = 30, 52 | backgrounds = { 53 | "Headline1Bg", 54 | "Headline2Bg", 55 | "Headline3Bg", 56 | "Headline4Bg", 57 | "Headline5Bg", 58 | "Headline6Bg", 59 | }, 60 | foregrounds = { 61 | "Headline1Fg", 62 | "Headline2Fg", 63 | "Headline3Fg", 64 | "Headline4Fg", 65 | "Headline5Fg", 66 | "Headline6Fg", 67 | }, 68 | }, 69 | } 70 | 71 | return M 72 | -------------------------------------------------------------------------------- /fish/.config/fish/config.fish.backup: -------------------------------------------------------------------------------- 1 | set -x SHELL /usr/local/bin/fish 2 | 3 | # prompt stuff 4 | set -x GIT_TERMINAL_PROMPT 1 5 | # alias zen=fish_greeting 6 | starship init fish | source 7 | 8 | # if status --is-interactive 9 | # and not set -q TMUX 10 | # exec tmux 11 | # end 12 | 13 | # Base16 Shell 14 | if status --is-interactive 15 | set BASE16_SHELL "$HOME/.config/base16-shell" 16 | source "$BASE16_SHELL/profile_helper.fish" 17 | end 18 | 19 | # For gpg keys 20 | # set -gx GPG_TTY /dev/ttys054 21 | 22 | set -x GOPATH $HOME/working 23 | 24 | set -x EDITOR nvim 25 | 26 | alias go=richgo 27 | 28 | set -x PATH $PATH ~/.local/share/nvim/lsp_servers/yamlls/node_modules/yaml-language-server/bin /usr/local/go/bin /usr/local/bin /usr/local/sbin $GOPATH/bin /Users/carlisiac /Users/carlisiac/Kui-darwin-x64 /Users/carlisiac/dotfiles /usr/local/bin/golangci-lint /usr/local/kubebuilder/bin $HOME/.gem/ruby/2.7.0/bin $HOME/.krew/bin /Users/carlisiac/.cargo/bin fish fish_indent /Users/carlisiac/working/src/github.com/carlisia/dotfiles/other-configs/scripts/jq-script /Users/carlisiac/.local/bin 29 | 30 | alias python="python3" 31 | alias g="git status -sb" 32 | 33 | alias dev="eval sh /Users/carlisiac/working/src/github.com/carlisia/dotfiles/other-configs/scripts/tmux-scripts/workspace" 34 | 35 | alias j="z" 36 | alias c="code ." 37 | 38 | alias k kubectl 39 | alias gp "k get pods" 40 | alias gn "k get nodes" 41 | alias gd "k get deploy" 42 | alias gr "k get rs" 43 | alias gs "k get ns" 44 | 45 | alias pka "pbpaste | kubectl apply -f-" 46 | alias pkr "pbpaste | kubectl delete -f-" 47 | 48 | # # alias knd "bass source /Users/carlisiac/working/src/github.com/carlisia/dotfiles/scripts/kind-with-registry.sh" 49 | 50 | alias ks kube-shell 51 | 52 | if [ ! -n "$__shhist_session" ] 53 | if [ -n "$TERM_SESSION_ID" ] 54 | set __shhist_session $TERM_SESSION_ID 55 | else 56 | set __shhist_session (random)-$fish_pid 57 | end 58 | end 59 | 60 | # function fish_greeting 61 | # # echo The time is (set_color yellow; date +%T; set_color normal) 62 | # # echo 63 | # # gh zen 64 | # end 65 | 66 | # alias h="shhist search" 67 | alias h="history search" 68 | alias gg="garden" 69 | alias gita="python3 -m gita" 70 | 71 | # gh cli / to be run inside a repo directory 72 | alias pr="gh pr list | fzf" 73 | alias co="gh co" 74 | alias gw="gh worktree" 75 | 76 | alias v=nvim 77 | alias l="git log --pretty=oneline -n 20 --graph --abbrev-commit" 78 | alias cc="git shortlog --summary --numbered" 79 | 80 | # iTerm2 shell integration 81 | test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish 82 | 83 | # The next line updates PATH for the Google Cloud SDK. 84 | if [ -f '/Users/carlisiac/Downloads/google-cloud-sdk/path.fish.inc' ]; . '/Users/carlisiac/Downloads/google-cloud-sdk/path.fish.inc'; end 85 | -------------------------------------------------------------------------------- /yazi/.config/yazi/README.md: -------------------------------------------------------------------------------- 1 | # REAMDE 2 | 3 | This is a terminal file manager built in Rust. 4 | 5 | [Yazi](https://yazi-rs.github.io/) 6 | 7 | [Shell wrapper | Yazi](https://yazi-rs.github.io/docs/quick-start#shell-wrapper) 8 | 9 | > [!TIP] 10 | > To reload settings: 11 | > `yazi --clear-cache` 12 | 13 | ## Theme flavors 14 | 15 | [yazi-rs/flavors: Some Yazi flavors maintained by community.](https://github.com/yazi-rs/flavors) 16 | 17 | ## Plugins 18 | 19 | `ya pack -l` # list 20 | `ya pack -u` # update all plugins 21 | `ya pack -d yazi-rs/plugins:git` # delete a specific plugin 22 | 23 | ### Plugins I use 24 | 25 | For plugin options: 26 | 27 | - [yazi-rs/plugins: Place code snippets from docs into this monorepo, so that users can update more easily via package manager.](https://github.com/yazi-rs/plugins?tab=readme-ov-file) 28 | - [AnirudhG07/awesome-yazi: A collection of Yazi's Plugins, flavours and more resources.](https://github.com/AnirudhG07/awesome-yazi) 29 | 30 | #### custom-shell 31 | 32 | [AnirudhG07/custom-shell.yazi: Set your custom-shell as default shell in yazi!](https://github.com/AnirudhG07/custom-shell.yazi) 33 | 34 | #### chmod 35 | 36 | [plugins/chmod.yazi at main · yazi-rs/plugins](https://github.com/yazi-rs/plugins/tree/main/chmod.yazi) 37 | 38 | #### smart-filter 39 | 40 | [plugins/smart-filter.yazi at main · yazi-rs/plugins](https://github.com/yazi-rs/plugins/tree/main/smart-filter.yazi) 41 | 42 | #### augument-command 43 | 44 | [hankertrix/augment-command.yazi: A plugin to augment some Yazi commands.](https://github.com/hankertrix/augment-command.yazi?tab=readme-ov-file#arrow-arrow) 45 | 46 | #### git 47 | 48 | [plugins/git.yazi at main · yazi-rs/plugins](https://github.com/yazi-rs/plugins/tree/main/git.yazi) 49 | 50 | #### glow 51 | 52 | [Reledia/glow.yazi: Glow preview plugin for yazi](https://github.com/Reledia/glow.yazi) 53 | 54 | #### full-border 55 | 56 | [plugins/full-border.yazi at main · yazi-rs/plugins](https://github.com/yazi-rs/plugins/tree/main/full-border.yazi) 57 | 58 | #### yatline 59 | 60 | ##### Configuration of components for yatline 61 | 62 | [Configuration · imsi32/yatline.yazi Wiki](https://github.com/imsi32/yatline.yazi/wiki/Configuration) 63 | 64 | ##### yatline add-ons 65 | 66 | - [imsi32/yatline-githead.yazi: githead.yazi with yatline.yazi support](https://github.com/imsi32/yatline-githead.yazi) 67 | - [yazi-plugins/yatline-symlink.yazi at main · lpanebr/yazi-plugins](https://github.com/lpanebr/yazi-plugins/tree/main/yatline-symlink.yazi) 68 | 69 | ###### yatline themes I cycle thru 70 | 71 | - [wekauwau/yatline-tokyo-night.yazi: Tokyo Night for Yatline](https://github.com/wekauwau/yatline-tokyo-night.yazi) 72 | - [wakaka6/yatli:w 73 | ne-dracula.yazi: 🧛🏻‍♂️Draculap theme for Yatline plugin.](https://github.com/wakaka6/yatline-dracula.yazi) 74 | 75 | ## sorting thru 76 | 77 | yazi-rs/plugins:chmod (2730199) 78 | -------------------------------------------------------------------------------- /other-configs/scripts/knative-stats.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # gita super net checkout main 4 | # gita fetch net 5 | # gita pull net 6 | 7 | 8 | # # knative/serving 9 | # NETWORKING_DIR=$(dirname "$(find /Users/carlisiac/working/src/github.com/knative -name OWNERS | xargs grep -rl 'area/networking')" | xargs) 10 | # for i in $NETWORKING_DIR; do pushd serving > /dev/null || exit; git log --author="carlisia" --pretty=format:"%ad,%h,%an" --date=short -- "$i"; popd > /dev/null || exit; done | sort -u | cut -f1,3 -d, > serving.raw.txt 11 | 12 | # knative-sandbox/net* and knative/networking 13 | # # for i in net*; do pushd $i > /dev/null ; git log --pretty=format:"%ad,%an" --date=short; popd > /dev/null ; done > repo-net.raw.txt 14 | all_paths=() 15 | # allRepoNames=( "$(gita group ll net)" ) 16 | read -r -a all_repo_names < <(gita group ll net) 17 | 18 | for i in "${all_repo_names[@]}" 19 | do 20 | # echo "$i" 21 | all_paths+=( "$(gita ls "$i")" ) 22 | # all_paths=( "$(gita ls "$i")" ) 23 | done 24 | 25 | 26 | now=$(date +"%m_%d_%Y") 27 | now=$(date +"%Y-%m-%d") 28 | printf "📆 Last Run: %s\n" "${now}" > ~/repos-workflow/prs-reviewed.yaml 29 | echo -e "🤓 PRs Reviewed\n" >> ~/repos-workflow/prs-reviewed.yaml 30 | 31 | echo -e "---\nPRs Reviewed (。◕‿◕。)" >> ~/repos-workflow/prs-reviewed.yaml 32 | for i in "${all_paths[@]}" 33 | do 34 | pushd "$i" > /dev/null || exit; 35 | printf '\n%s:\n' "$(git remote show origin -n | grep "Fetch URL:" | sed -E "s#^.*/(.*)#\1#" | sed "s#.git##")"; 36 | # git log --graph "$(git describe --abbrev=0 --tags).." --first-parent --oneline \ 37 | # --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'; 38 | # gh pr list -s merged --search "commenter:@me approve in:comments -author:@me -author:knative-automation" 39 | gh pr list -s open --search " -author:@me -author:knative-automation -label:size/XS -label:size/S" --json author,title,assignees,author,createdAt,updatedAt,headRepository,mergedAt,number,url,state,labels | tee /tmp/ins | 40 | jq ' 41 | [.[] | 42 | { 43 | lastupdate: (if .updatedAt == null then "" else (.updatedAt | strptime("%Y-%m-%dT%H:%M:%SZ") | todate[0:10]) end), 44 | created: (if .createdAt == null then "" else (.createdAt | strptime("%Y-%m-%dT%H:%M:%SZ") | todate[0:10]) end ), 45 | number: .number, 46 | author: .author.login, 47 | title: .title, 48 | labels: [.labels[].name] | join(", "), 49 | url: .url, 50 | } 51 | ] | sort_by(.updatedAt) ' | jtbl -m 52 | printf '\n'; 53 | popd > /dev/null || exit; 54 | 55 | done >> ~/repos-workflow/prs-reviewed.yaml 56 | 57 | echo -e "\n\ndone ✅" >> ~/repos-workflow/prs-reviewed.yaml 58 | 59 | # summary 60 | # TODO: Replace start date. 61 | # cat -- *.raw.txt | awk -F',' '$0 >= "2021-12-01"' | cut -f2 -d, | sort | uniq -c | sort -k1 -n -r 62 | cat ~/repos-workflow/prs-reviewed.yaml -------------------------------------------------------------------------------- /other-configs/scripts/knative-stats copy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | # gita super net checkout main 4 | # gita fetch net 5 | # gita pull net 6 | 7 | 8 | # # knative/serving 9 | # NETWORKING_DIR=$(dirname "$(find /Users/carlisiac/working/src/github.com/knative -name OWNERS | xargs grep -rl 'area/networking')" | xargs) 10 | # for i in $NETWORKING_DIR; do pushd serving > /dev/null || exit; git log --author="carlisia" --pretty=format:"%ad,%h,%an" --date=short -- "$i"; popd > /dev/null || exit; done | sort -u | cut -f1,3 -d, > serving.raw.txt 11 | 12 | # knative-sandbox/net* and knative/networking 13 | # # for i in net*; do pushd $i > /dev/null ; git log --pretty=format:"%ad,%an" --date=short; popd > /dev/null ; done > repo-net.raw.txt 14 | all_paths=() 15 | # allRepoNames=( "$(gita group ll net)" ) 16 | read -r -a all_repo_names < <(gita group ll net) 17 | 18 | for i in "${all_repo_names[@]}" 19 | do 20 | # echo "$i" 21 | all_paths+=( "$(gita ls "$i")" ) 22 | # all_paths=( "$(gita ls "$i")" ) 23 | done 24 | 25 | 26 | now=$(date +"%m_%d_%Y") 27 | now=$(date +"%Y-%m-%d") 28 | printf "📆 Last Run: %s\n" "${now}" > ~/repos-workflow/prs-reviewed.yaml 29 | echo -e "🤓 PRs Reviewed\n" >> ~/repos-workflow/prs-reviewed.yaml 30 | 31 | echo -e "---\nPRs Reviewed (。◕‿◕。)" >> ~/repos-workflow/prs-reviewed.yaml 32 | for i in "${all_paths[@]}" 33 | do 34 | pushd "$i" > /dev/null || exit; 35 | printf '\n%s:\n' "$(git remote show origin -n | grep "Fetch URL:" | sed -E "s#^.*/(.*)#\1#" | sed "s#.git##")"; 36 | # git log --graph "$(git describe --abbrev=0 --tags).." --first-parent --oneline \ 37 | # --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'; 38 | # gh pr list -s merged --search "commenter:@me approve in:comments -author:@me -author:knative-automation" 39 | gh pr list -s open --search " -author:@me -author:knative-automation -label:size/XS -label:size/S" --json author,title,assignees,author,createdAt,updatedAt,headRepository,mergedAt,number,url,state,labels | tee /tmp/ins | 40 | jq ' 41 | [.[] | 42 | { 43 | lastupdate: (if .updatedAt == null then "" else (.updatedAt | strptime("%Y-%m-%dT%H:%M:%SZ") | todate[0:10]) end), 44 | created: (if .createdAt == null then "" else (.createdAt | strptime("%Y-%m-%dT%H:%M:%SZ") | todate[0:10]) end ), 45 | number: .number, 46 | author: .author.login, 47 | title: .title, 48 | labels: [.labels[].name] | join(", "), 49 | url: .url, 50 | } 51 | ] | sort_by(.updatedAt) ' | jtbl -m 52 | printf '\n'; 53 | popd > /dev/null || exit; 54 | 55 | done >> ~/repos-workflow/prs-reviewed.yaml 56 | 57 | echo -e "\n\ndone ✅" >> ~/repos-workflow/prs-reviewed.yaml 58 | 59 | # summary 60 | # TODO: Replace start date. 61 | # cat -- *.raw.txt | awk -F',' '$0 >= "2021-12-01"' | cut -f2 -d, | sort | uniq -c | sort -k1 -n -r 62 | cat ~/repos-workflow/prs-reviewed.yaml -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | 3 | if [ -z "$USER" ]; then 4 | USER=$(id -un) 5 | fi 6 | 7 | # THIS IS OUT OF DATE! (March 11, 2025) 8 | # 🧨 9 | 10 | echo >&2 "=====================================================================" 11 | echo >&2 " Setting up codespaces environment (linux based)" 12 | echo >&2 "" 13 | echo >&2 " USER $USER" 14 | echo >&2 " HOME $HOME" 15 | echo >&2 "=====================================================================" 16 | 17 | cd "$HOME" || exit 18 | 19 | # Make passwordless sudo work 20 | export SUDO_ASKPASS=/bin/true 21 | 22 | # No thank you 23 | rm -rf .oh-my-bash 24 | rm -rf .oh-my-zsh 25 | rm .zshrc 26 | 27 | # Install fzf 28 | FZF_VERSION=0.30.0 29 | curl -L https://github.com/junegunn/fzf/releases/download/"${FZF_VERSION}"/fzf-"${FZF_VERSION}"-linux_amd64.tar.gz | tar xzC "$HOME"/bin 30 | 31 | # Install neovim 32 | NVIM_VERSION=0.7.0 33 | sudo apt-get install -y libfuse2 34 | curl -L -o "$HOME"/bin/nvim https://github.com/neovim/neovim/releases/download/v"${NVIM_VERSION}"/nvim.appimage 35 | chmod a+x "$HOME"/bin/nvim 36 | 37 | bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 38 | # - Run these two commands in your terminal to add Homebrew to your PATH: 39 | echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >>/home/codespace/.profile 40 | eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" 41 | # - Install Homebrew's dependencies if you have sudo access: 42 | sudo apt-get install build-essential 43 | # - We recommend that you install GCC: 44 | brew install gcc 45 | 46 | brew install stow 47 | 48 | stow base16-shell -t "$HOME" 49 | 50 | stow fish -t "$HOME" 51 | 52 | stow gh -t "$HOME" 53 | 54 | stow git -t "$HOME" 55 | 56 | git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim 57 | ln -s "$HOME"/working/src/github.com/carlisia/dotfiles/nvim/lua/custom/ ~/.config/nvim/lua/ 58 | 59 | bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh) 60 | 61 | stow nvim -t "$HOME" 62 | 63 | stow starfish -t "$HOME" 64 | 65 | #####NOTE: go over all the lsp, formatters, fonts,etc and figure out what needs installing in the system. Here are some. 66 | # for nvim, need to install: 67 | brew install luarocks 68 | luarocks install luacheck 69 | luarocks install lanes 70 | npm install -g @fsouza/prettierd 71 | 72 | # the language servers 73 | brew install lua-language-server 74 | npm i -g bash-language-server 75 | go install mvdan.cc/sh/v3/cmd/shfmt@latest 76 | brew install stylua 77 | 78 | 79 | # @todo 80 | # Install fish and fish themes + plugins 81 | # fzf: fisher install PatrickF1/fzf.fish 82 | # Install omf and install themes, or use starship 83 | # Install a Nerd Font 84 | # Install richgo, eza, peco, ripgrep 85 | # brew install pngpaste (for obsidian) / kubectl / tmux + tmp plugin manager 86 | # 87 | # Note to self: look at research in "MacOs install scripts research" note. 88 | # Font: CodeNewRoman Nerd Font Propo 89 | -------------------------------------------------------------------------------- /fish/.config/fish/fish_variables: -------------------------------------------------------------------------------- 1 | # This file contains fish universal variable definitions. 2 | # VERSION: 3.0 3 | SETUVAR ZO_CMD:zo 4 | SETUVAR Z_CMD:z 5 | SETUVAR Z_DATA:/Users/carlisiacampos/\x2elocal/share/z/data 6 | SETUVAR Z_DATA_DIR:/Users/carlisiacampos/\x2elocal/share/z 7 | SETUVAR Z_EXCLUDE:\x5e/Users/carlisiacampos\x24 8 | SETUVAR __fish_initialized:3800 9 | SETUVAR _fisher_evanlucas_2F_fish_2D_kubectl_2D_completions_files:\x7e/\x2econfig/fish/completions/kubectl\x2efish 10 | SETUVAR _fisher_jethrokuan_2F_z_files:\x7e/\x2econfig/fish/functions/__z\x2efish\x1e\x7e/\x2econfig/fish/functions/__z_add\x2efish\x1e\x7e/\x2econfig/fish/functions/__z_clean\x2efish\x1e\x7e/\x2econfig/fish/functions/__z_complete\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/z\x2efish 11 | SETUVAR _fisher_jorgebucaran_2F_fisher_files:\x7e/\x2econfig/fish/functions/fisher\x2efish\x1e\x7e/\x2econfig/fish/completions/fisher\x2efish 12 | SETUVAR _fisher_plugins:jorgebucaran/fisher\x1eevanlucas/fish\x2dkubectl\x2dcompletions\x1ejethrokuan/z 13 | SETUVAR _fisher_upgraded_to_4_4:\x1d 14 | SETUVAR fish_color_autosuggestion:4c566a 15 | SETUVAR fish_color_cancel:\x2d\x2dreverse 16 | SETUVAR fish_color_command:88c0d0 17 | SETUVAR fish_color_comment:4c566a\x1e\x2d\x2ditalics 18 | SETUVAR fish_color_cwd:5e81ac 19 | SETUVAR fish_color_cwd_root:bf616a 20 | SETUVAR fish_color_end:81a1c1 21 | SETUVAR fish_color_error:bf616a 22 | SETUVAR fish_color_escape:ebcb8b 23 | SETUVAR fish_color_history_current:e5e9f0\x1e\x2d\x2dbold 24 | SETUVAR fish_color_host:a3be8c 25 | SETUVAR fish_color_host_remote:ebcb8b 26 | SETUVAR fish_color_keyword:81a1c1 27 | SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue 28 | SETUVAR fish_color_normal:normal 29 | SETUVAR fish_color_operator:81a1c1 30 | SETUVAR fish_color_option:8fbcbb 31 | SETUVAR fish_color_param:d8dee9 32 | SETUVAR fish_color_quote:a3be8c 33 | SETUVAR fish_color_redirection:b48ead\x1e\x2d\x2dbold 34 | SETUVAR fish_color_search_match:\x2d\x2dbold\x1e\x2d\x2dbackground\x3d434c5e 35 | SETUVAR fish_color_selection:d8dee9\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3d434c5e 36 | SETUVAR fish_color_status:bf616a 37 | SETUVAR fish_color_user:a3be8c 38 | SETUVAR fish_color_valid_path:\x2d\x2dunderline 39 | SETUVAR fish_key_bindings:fish_vi_key_bindings 40 | SETUVAR fish_pager_color_background:\x1d 41 | SETUVAR fish_pager_color_completion:e5e9f0 42 | SETUVAR fish_pager_color_description:ebcb8b\x1e\x2d\x2ditalics 43 | SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline 44 | SETUVAR fish_pager_color_progress:3b4252\x1e\x2d\x2dbackground\x3dd08770 45 | SETUVAR fish_pager_color_secondary_background:\x1d 46 | SETUVAR fish_pager_color_secondary_completion:\x1d 47 | SETUVAR fish_pager_color_secondary_description:\x1d 48 | SETUVAR fish_pager_color_secondary_prefix:\x1d 49 | SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3d434c5e 50 | SETUVAR fish_pager_color_selected_completion:\x1d 51 | SETUVAR fish_pager_color_selected_description:\x1d 52 | SETUVAR fish_pager_color_selected_prefix:\x1d 53 | -------------------------------------------------------------------------------- /starship/.config/starship.toml: -------------------------------------------------------------------------------- 1 | command_timeout = 3500 2 | 3 | # Get editor completions based on the config schema 4 | "$schema" = 'https://starship.rs/config-schema.json' 5 | 6 | format = """ 7 | $username\ 8 | $hostname\ 9 | $directory\ 10 | $git_branch\ 11 | $git_state\ 12 | $git_status\ 13 | $cmd_duration\ 14 | $line_break\ 15 | $golang\ 16 | $python\ 17 | $character""" 18 | 19 | # Comment/uncomment the lines below to toggle between a loaded and a very minimalist prompt. Good for doing code demos. 20 | # ############################### - from here 21 | # format = """ 22 | # $directory \ 23 | # $shell \ 24 | # """ 25 | 26 | # [shell] 27 | # fish_indicator = "" 28 | # powershell_indicator = "_" 29 | # unknown_indicator = "mystery shell" 30 | # disabled = false 31 | # ############################### - to here 32 | 33 | [status] 34 | style = "bg:black" 35 | symbol = "🔴" 36 | format = '[\[$symbol $common_meaning$signal_name$maybe_int\]]($style) ' 37 | map_symbol = true 38 | disabled = false 39 | 40 | [character] 41 | success_symbol = "[➜](bold green) " 42 | error_symbol = "[✗](bold red) " 43 | vicmd_symbol = "[➜ V](bold purple) " 44 | 45 | [directory] 46 | # disabled = true 47 | truncate_to_repo = false 48 | home_symbol = "$HOME" 49 | 50 | [cmd_duration] 51 | min_time = 5 52 | format = "took [$duration](bold purple)" 53 | 54 | [hostname] 55 | ssh_only = true 56 | format = "[$hostname](red) " 57 | trim_at = ".companyname.com" 58 | disabled = false 59 | 60 | [username] 61 | style_user = "white bold" 62 | style_root = "black bold" 63 | format = "[$user]($style) " 64 | disabled = false 65 | show_always = false 66 | 67 | [gcloud] 68 | disabled = true 69 | symbol = "️" 70 | 71 | [aws] 72 | disabled = true 73 | format = "[$symbol $region]($style) " 74 | style = "bold blue" 75 | symbol = "🅰 " 76 | 77 | 78 | [helm] 79 | format = "(bold white) " 80 | 81 | [docker_context] 82 | format = "[🐋 $context](blue bold)" 83 | 84 | [git_branch] 85 | symbol = "🌱 " 86 | format = "on [$symbol$branch]($style) " 87 | 88 | [git_commit] 89 | commit_hash_length = 4 90 | tag_symbol = "🔖 " 91 | 92 | [git_state] 93 | format = '[\($state( $progress_current of $progress_total)\)]($style) ' 94 | cherry_pick = "[🍒 PICKING](bold red)" 95 | 96 | [git_status] 97 | conflicted = "🏳" 98 | ahead = "🏎💨" 99 | behind = "😰" 100 | diverged = "😵" 101 | untracked = "🤷‍" 102 | stashed = "📦" 103 | modified = "📝" 104 | staged = '[++\($count\)](green)' 105 | renamed = "👅" 106 | deleted = "🗑" 107 | 108 | [kubernetes] 109 | # format = '[$context \($namespace\)](dimmed green) ' 110 | format = '[>$context](dimmed red) [$namespace](dimmed green) ' 111 | disabled = false 112 | [kubernetes.context_aliases] 113 | "dev.local.cluster.k8s" = "dev" 114 | 115 | [golang] 116 | # disabled = true 117 | symbol = '🐹 ' 118 | style = 'yellow bold' 119 | format = '[$symbol($version )]($style)' 120 | 121 | [python] 122 | format = '[🐍 $version](bold green) ' 123 | 124 | [container] 125 | format = '[$symbol \[$name\]]($style) ' 126 | 127 | -------------------------------------------------------------------------------- /yazi/.config/yazi/init.lua: -------------------------------------------------------------------------------- 1 | -- yati.manager 2 | function Linemode:size_and_mtime() 3 | local time = math.floor(self._file.cha.mtime or 0) 4 | if time == 0 then 5 | time = "" 6 | elseif os.date("%Y", time) == os.date("%Y") then 7 | time = os.date("%b %d %H:%M", time) 8 | else 9 | time = os.date("%b %d %Y", time) 10 | end 11 | 12 | local size = self._file:size() 13 | return string.format("%s %s", size and ya.readable_size(size) or "-", time) 14 | end 15 | 16 | require("custom-shell"):setup({ 17 | history_path = "default", 18 | save_history = true, 19 | }) 20 | 21 | -- Plugins 22 | -- require("zoxide"):setup({ 23 | -- update_db = true, 24 | -- }) 25 | 26 | -- require("session"):setup({ 27 | -- sync_yanked = true, 28 | -- }) 29 | 30 | require("git"):setup() 31 | require("full-border"):setup({ 32 | -- Available values: ui.Border.PLAIN, ui.Border.ROUNDED 33 | type = ui.Border.ROUNDED, 34 | }) 35 | 36 | -- yatline and add-ons 37 | local tokyo_night_theme = require("yatline-tokyo-night"):setup("night") 38 | local dracula_theme = require("yatline-dracula"):setup() 39 | local theme_in_use = dracula_theme 40 | 41 | require("yatline"):setup({ 42 | -- theme = tokyo_night_theme, 43 | theme = theme_in_use, 44 | 45 | show_background = false, 46 | component_positions = { "header", "tab", "status" }, 47 | 48 | header_line = { 49 | left = { 50 | section_a = { 51 | { type = "line", custom = false, name = "tabs", params = { "left" } }, 52 | }, 53 | section_b = { 54 | { type = "coloreds", custom = false, name = "symlink" }, 55 | }, 56 | section_c = { 57 | { type = "coloreds", custom = false, name = "githead" }, 58 | }, 59 | }, 60 | right = { 61 | section_a = { 62 | { type = "string", custom = false, name = "date", params = { "%A, %d %B %Y" } }, 63 | }, 64 | section_b = { 65 | { type = "string", custom = false, name = "date", params = { "%X" } }, 66 | }, 67 | section_c = {}, 68 | }, 69 | }, 70 | 71 | status_line = { 72 | left = { 73 | section_a = { 74 | { type = "string", custom = false, name = "tab_mode" }, 75 | }, 76 | section_b = { 77 | { type = "string", custom = false, name = "hovered_size" }, 78 | }, 79 | section_c = { 80 | { type = "string", custom = false, name = "hovered_path" }, 81 | { type = "coloreds", custom = false, name = "count" }, 82 | }, 83 | }, 84 | right = { 85 | section_a = { 86 | { type = "string", custom = false, name = "cursor_position" }, 87 | }, 88 | section_b = { 89 | { type = "string", custom = false, name = "cursor_percentage" }, 90 | }, 91 | section_c = { 92 | { type = "string", custom = false, name = "hovered_file_extension", params = { true } }, 93 | { type = "coloreds", custom = false, name = "permissions" }, 94 | }, 95 | }, 96 | }, 97 | }) 98 | 99 | -- yatline add-ons (must come AFTER yatline) 100 | require("yatline-githead"):setup({ 101 | theme = tokyo_night_theme, 102 | }) 103 | require("yatline-symlink"):setup() 104 | -------------------------------------------------------------------------------- /other-configs/scripts/cluster-scripts/aws: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -x SSH_KEY $HOME/.ssh/mykey.pem 4 | 5 | scp -i $SSH_KEY -o ProxyCommand="ssh -i \”{$SSH_KEY}\" ubuntu@18.144.62.35 nc %h %p" ubuntu@10.0.3.200:~/kubeconfig ./kubeconfig 6 | 7 | # scp -i $SSH_KEY -o ProxyCommand="ssh -i \"$SSH_KEY\" ubuntu@35.162.34.85 nc %h %p" ubuntu@10.0.29.120:~/kubeconfig ./kubeconfig 8 | scp -i $SSH_KEY -o ProxyCommand="ssh -i \"$SSH_KEY\" ubuntu@35.162.34.85 nc %h %p" ubuntu@10.0.29.120:~/kubeconfig ./kube/carlisia-ark 9 | 10 | scp -i $SSH_KEY -o ProxyCommand="ssh -i \"$SSH_KEY\" ubuntu@35.162.34.85 nc %h %p" ubuntu@10.0.29.120:~/kubeconfig $HOME/.kube 11 | 12 | 13 | 14 | echo "----------------------------------------------------" 15 | echo "Creating S3 bucket for ark" 16 | echo "----------------------------------------------------" 17 | 18 | aws s3api create-bucket \ 19 | --bucket bucket-for-ark \ 20 | --region us-west-2 \ 21 | --create-bucket-configuration LocationConstraint=us-west-2 22 | 23 | 24 | echo "----------------------------------------------------" 25 | echo "Creating IAM user" 26 | echo "----------------------------------------------------" 27 | 28 | aws iam create-user --user-name heptio-ark 29 | 30 | echo "----------------------------------------------------" 31 | echo "Attaching policies" 32 | echo "----------------------------------------------------" 33 | 34 | BUCKET=bucket-for-ark 35 | cat > heptio-ark-policy.json <