From ea08fa93da0018cdda8f5880db09bb0def53898e Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 11 Jan 2023 22:21:43 +0800 Subject: [PATCH 1/2] update --- nvim/init.vim | 1 - ssh/config | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index fee07e9..f7d79c5 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -86,7 +86,6 @@ Plug 'rust-lang/rust.vim' Plug 'danilo-augusto/vim-afterglow' Plug 'vim-scripts/TaskList.vim' Plug 'google/vim-jsonnet' -Plug 'github/copilot.vim' call plug#end() diff --git a/ssh/config b/ssh/config index 970d37b..e11ecc9 100644 --- a/ssh/config +++ b/ssh/config @@ -9,8 +9,8 @@ Host git.lawsnote.com HostName git.lawsnote.com Host dev - User mtfos - HostName 192.168.200.14 + User jay + HostName 192.168.200.15 Host vpn User root From c15cefb0103d78c21b99031ec28713edce4018d8 Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 11 Jan 2023 22:22:13 +0800 Subject: [PATCH 2/2] update --- zprofile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/zprofile b/zprofile index a92794b..f7caf6f 100644 --- a/zprofile +++ b/zprofile @@ -77,3 +77,30 @@ if [ -f '/Users/jay/apps/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jay/ap alias docker="lima nerdctl" export DOCKER_HOST="unix:///Users/jay/.lima/docker/sock/docker.sock" + +function ln-image-tags { + if [ -z "$1" ]; then + echo "usage: ln-image-tags " + exit 1 + fi + + curlie -L https://registry.lawsnote.com/v2/$1/tags/list +} + +function ln-save-image { + if [ -z "$1" ]; then + echo "usage: ln-save-image " + exit 1 + fi + + docker-save --rm -p -o . -i registry.lawsnote.com/$1 +} + +function minio-size { + if [ -z "$1" ]; then + echo "usage: minio-size " + exit 1 + fi + + mc ls -r --json $1 | jq -s 'map(.size) | add' | numfmt --to=iec-i --suffix=B --padding=7 +}