From 98cc484786ad9b0601133138e23a084522fbfc46 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 25 May 2022 21:35:07 +0430 Subject: update --- .vimrc | 2 ++ .zshrc | 3 ++- postit | 1 + python/main.py | 11 +++++++---- terminaldweller.com/cargo/Dockerfile | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index 2b24b97..65c3622 100644 --- a/.vimrc +++ b/.vimrc @@ -208,6 +208,7 @@ Plug 'HiPhish/info.vim' Plug 'kmonad/kmonad-vim' " Plug 'kana/vim-operator-user' " Plug 'terryma/vim-multiple-cursors' +" Plug 'Konfekt/vim-office' " Plug 'haya14busa/vim-operator-flashy' " Plug 'terryma/vim-expand-region' " Plug 'romainl/vim-devdocs' @@ -858,6 +859,7 @@ nnoremap 0 :call HighInterestingWord(0) "scratchpad let g:scratchpad_path = '/home/devi/.scratchpads' +let g:scratchpad_ftype = '' nmap (ToggleScratchPad) let g:tagbar_type_rust = { diff --git a/.zshrc b/.zshrc index 813744d..9eec30d 100644 --- a/.zshrc +++ b/.zshrc @@ -128,7 +128,8 @@ alias fixpgclirc="cp ~/scripts/.config/pgcli/config ~/.config/pgcli/config" alias jupyterlab="jupyter lab --no-browser --port 9989" alias iredisrc="vim ~/scripts/.iredisrc" alias fixiredisrc="cp ~/scripts/.iredisrc ~/.iredisrc" -alias irssi="irssi -n terminaldweller" +# alias irssi="irssi -n terminaldweller" +alias irssi="TERM=screen-256color docker run --runtime=runsc -it -e TERM -u $(id -u):$(id -g) --log-driver=none -v $HOME/.irssi:/home/user/.irssi:ro -v /etc/localtime:/etc/localtime:ro devi_irssi" alias joplinkeymap="vim ~/scripts/.config/joplin/keymap.json" alias fixjoplinkeymap="cp ~/scripts/.config/joplin/keymap.json ~/.config/joplin/keymap.json" alias postitrc="vim ~/scripts/postit" diff --git a/postit b/postit index 43f76cd..2330b8c 100644 --- a/postit +++ b/postit @@ -40,3 +40,4 @@ sudo mount -t cifs -o user=pi4,vers=2.0,domain=MSHOME //192.168.1.200/disk1 /hom account add telegram +XXXXXXXXXXX account add skypeweb thabogre@gmail.com XXXXXXXX git reset --hard HEAD~2 +tcpdump -ennqti enp0s0f0 \( arp or icmp \) diff --git a/python/main.py b/python/main.py index 6649cb2..b68aa5b 100755 --- a/python/main.py +++ b/python/main.py @@ -16,12 +16,15 @@ class Argparser(object): def __init__(self): parser = argparse.ArgumentParser() parser.add_argument("--string", type=str, help="string") - parser.add_argument("--bool", action="store_true", - help="bool", default=False) - parser.add_argument("--dbg", action="store_true", - help="debug", default=False) + parser.add_argument( + "--bool", action="store_true", help="bool", default=False + ) + parser.add_argument( + "--dbg", action="store_true", help="debug", default=False + ) self.args = parser.parse_args() + # write code here diff --git a/terminaldweller.com/cargo/Dockerfile b/terminaldweller.com/cargo/Dockerfile index 6907039..79f99c9 100644 --- a/terminaldweller.com/cargo/Dockerfile +++ b/terminaldweller.com/cargo/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.15 AS certbuilder RUN apk update && apk add openssl WORKDIR /certs -RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert +RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=cargo.terminaldweller.com" -keyout server.key -out server.cert FROM nginx:mainline-alpine COPY --from=certbuilder /certs/ /certs -- cgit v1.2.3