From 61f54b288ab92379d0ac719e522f1231a484e30b Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Fri, 8 Apr 2022 13:16:17 +0200 Subject: [PATCH] Changes on Fri 08 Apr 2022 01:16:17 PM CEST Signed-off-by: TuDatTr --- config/.config/sioyek/keys_user.config | 14 +++-- config/.local/share/ranger/bookmarks | 3 +- config/.ssh/config | 81 ++++++++------------------ config/.ssh/known_hosts | 15 ++++- config/.ssh/known_hosts.old | 13 ++++- emacs/.emacs.d/config.org | 64 ++++++++++---------- emacs/.emacs.d/init.el | 6 ++ 7 files changed, 98 insertions(+), 98 deletions(-) diff --git a/config/.config/sioyek/keys_user.config b/config/.config/sioyek/keys_user.config index e1d81f2..da8e93f 100644 --- a/config/.config/sioyek/keys_user.config +++ b/config/.config/sioyek/keys_user.config @@ -35,6 +35,10 @@ move_down move_up move_left move_right +move_down j +move_up k +move_left l +move_right h # Goto forward for one page width. (can be prefixed with a number) # (note that going forward for one page width is not usually what you want becaue if @@ -68,7 +72,7 @@ goto_toc t # zoom zoom_in -zoom_out = +zoom_in = zoom_out - # Automatically set the zoom level and horizontal offset such that the current page is centered horizontally and @@ -166,7 +170,7 @@ toggle_one_window # ---------- MISC ---------- # copy selected text -copy +copy y toggle_fullscreen @@ -193,12 +197,12 @@ toggle_synctex toggle_mouse_drag_mode # command the move the visual mark to the next/previous line -move_visual_mark_up k -move_visual_mark_down j +#move_visual_mark_up k +#move_visual_mark_down j # In visual scroll mode, mouse wheel performs `move_visual_mark_up` and `move_visual_mark_down` commands toggle_visual_scroll toggle_presentation_mode -#quit q +quit q diff --git a/config/.local/share/ranger/bookmarks b/config/.local/share/ranger/bookmarks index 3b566e8..8a2a7d9 100644 --- a/config/.local/share/ranger/bookmarks +++ b/config/.local/share/ranger/bookmarks @@ -9,7 +9,8 @@ t:/home/tuan/Templates w:/home/tuan/workspace_l k:/home/tuan/Documents/Uni/Studium/2017&2018 Wintersemester/Rechnerstrukturen und Betriebssysteme [4,0]/Rechnerstrukturen q:/home/tuan/Quick Drop -':/home/tuan/.config/sioyek +':/home/tuan/workspace_l/home_lab/syssec-embedded-security-writeup e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon s:/home/tuan/Pictures/Screenshots v:/home/tuan/.syncthing/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/06-Server_Setup/ansible +f:/home/tuan/Documents/Finanzen/Unternehmen/Rechnungen diff --git a/config/.ssh/config b/config/.ssh/config index 9cb0815..9275bb5 100644 --- a/config/.ssh/config +++ b/config/.ssh/config @@ -30,64 +30,25 @@ Host soft.tudattr.dev IdentityFile /mnt/veracrypt1/genesis # Homeserver -Host proxmox - HostName 10.1.10.2 +Host laya01 + HostName 192.168.2.190 Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox + User tudattr + IdentityFile /mnt/veracrypt1/genesis + +Host aya01 + HostName 10.0.0.100 + Port 22 + User tudattr + IdentityFile /mnt/veracrypt1/genesis -## CT -Host nginx - HostName 10.1.11.100 - Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox - -Host nextcloud - HostName 10.1.11.102 - Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox - -Host fireflyiii - HostName 10.1.11.105 - Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox - -Host plex - HostName 10.1.11.110 - Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox - -Host git - HostName 10.1.11.107 - Port 22 - User root - IdentityFile /mnt/veracrypt1/genesis - -Host soft - HostName 10.1.11.107 +Host git.aya01 + HostName 10.0.0.100 Port 23231 - User root + User tudattr IdentityFile /mnt/veracrypt1/genesis -Host portainer - HostName 10.1.11.103 - Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox - -Host ansible - HostName 10.1.11.104 - Port 22 - User root - IdentityFile /mnt/veracrypt1/proxmox - -## VM - -## Work +# Work Host iperf-client HostName 10.1.11.114 Port 22 @@ -107,9 +68,17 @@ Host ncs-server IdentityFile /mnt/veracrypt1/genesis ForwardX11 yes -Host remote-host - HostName 172.17.0.2 +Host ncs2 + HostName 192.168.1.13 Port 22 - User root + User tuan-dat.tran IdentityFile /mnt/veracrypt1/genesis + ProxyJump ncs-server + +Host p4switch + Hostname 192.168.1.5 + Port 22 + User user + IdentityFile /mnt/veracrypt1/genesis + ForwardX11 yes ProxyJump ncs-server \ No newline at end of file diff --git a/config/.ssh/known_hosts b/config/.ssh/known_hosts index 6893392..da9314c 100644 --- a/config/.ssh/known_hosts +++ b/config/.ssh/known_hosts @@ -15,12 +15,21 @@ 172.17.0.2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL91ES6ZHLMGfne5e4w4u8t6+Bhc2IVq66bWlkSBsC1T 172.17.0.2 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCqMJKpt3mwxe8Wm+J+oQmoh08MtD3WMUvfrum8gMxkubdl7lGfZ0zQx6FWIwoYmQ7J1W1gvbo0c6tvNiiC5AmpspoaNokVnUoDmHO/uCDctQfjdzvAl1xXN0cBL7Lkr9KHvyFYCC2+dhAIilk/EdY8UaO+LCNF6JklYye/R5c62pgavJp0c+EIk9e94Z5M35FcqIFFhgd2HY5243h7w7NC5s5d4VRCpO5tPigmI079D4QY9b1a5SIvqYMnfjCpxeCGxRlIaVpsbSwJ/dzikvv/Wgm9y3p5ZxAYAnbHZZqTmb3qjMj69wy74P7ekxgbi9gssV2LzyxXhIiJL/yv9qXOZ3lVAlr7c5e0RhPKoD2YKjJFA/eKCc3I9P7l49UTScU+7uvz9u5hDPZK01gm/Wi+qyL6WBf+5XYk1lgsj6bF+CXQCVDhgeQKK58iQmS+dgXjTOjMVw+jIeqwqFNBvLmh3EDpHrj6W+59f75+W2htn8r4/UthgIIiybAJLyx3Yc= 172.17.0.2 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFY+dczenTs/qRqZICtrNjS14c+E0GZ8sCfcq2dUufIVaUwIHut9q5fZUipQeVMvv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f/IhE6JJrvnY+RzlDz4h1Y5AXGGMTPGtrt9pcv/Irsn/CCQA5PQPUKDxJwsEsDlDR1DHSx/JX 10.168.68.117 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGQCTHUVicRdOGk3V/HiG0tZTupXNxxg1GZRHNurl4AoTAo6rJY2HaukCtP3jDEaiECPIpTLeVOn5VTOeNCZbkU= git.uni-due.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB/f8VVsjeXT82vK2GX1iU61w5JNLoQUQhOwCocA7Ox5 git.uni-due.de ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/ksWF8VRco/Wh39wEum8U+g9cMcQkEPlZN2kWxtw1EhtOVraCONnX6KPvbiKqDZQDKlV4FE+Cp9cVPj1NODN3fUiTsDSyj050juCVW16kx1nHSMYpFjzRUxhZMGGiKyTA1S24HDUhKVyqK/znss+oN93WUnE6w4rpQM3SUa7H6Kj1474kPlTNJR319dnsqixc5UjHacil0JkMDyksjb6kZwgfv/b0vHmgFqksHW5/7gVM0qjzwL+mElBxM1xyEEaGzw/C4x2wJDFUPryMryxgwa1FfaC5ywLgSFqh1w1mnxXnoAtO6uKWW9FIfMIlYpZ2TiXPCK3+HbbBm67vqrND git.uni-due.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAgroRZpxHSEmGpyVxJqzQeLi2sCVNON/7zxx5Jd6tzVG8bLvq+AhWpAo1jAqdGGkOmlynH4GoTb9xrnyeg07Mk= +10.168.68.106 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINcw2SSLRyxIhZUPST8BrBmbgVY3IRtKZduLoZowhyTO +10.168.68.106 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLi0dyMvhMJ2N86sQOvvHxFAy8cSWbJtAbR/Ap0FDO8bDf4bYkGtsp44vs8Sd8GLE9HA+bRRmzM7gsgfkuBBbyA= +10.168.68.206 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINcw2SSLRyxIhZUPST8BrBmbgVY3IRtKZduLoZowhyTO +192.168.2.190 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA +192.168.2.190 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBWnqb2d9cI1MIoc17D8uo7EgRdKkhkoUUY2UtUS9FfF1h5bJwyPfRS+TeSXbBDwuuXfTf7lNG2xYQ0Tpb+0sM0= +192.168.1.13 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHOOg2IlW9Cf1ERszajFPWfj8wAkmINsoz09Phwoio7M +10.0.0.100 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA +github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl +github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== +github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= +192.168.1.5 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINcw2SSLRyxIhZUPST8BrBmbgVY3IRtKZduLoZowhyTO +[10.0.0.100]:23231 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKa1sCIExBwatQ1X85p/xFmCY5MBAUDjABLd3fQgdA5n diff --git a/config/.ssh/known_hosts.old b/config/.ssh/known_hosts.old index 4705fe9..a87122e 100644 --- a/config/.ssh/known_hosts.old +++ b/config/.ssh/known_hosts.old @@ -15,10 +15,17 @@ 172.17.0.2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL91ES6ZHLMGfne5e4w4u8t6+Bhc2IVq66bWlkSBsC1T 172.17.0.2 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCqMJKpt3mwxe8Wm+J+oQmoh08MtD3WMUvfrum8gMxkubdl7lGfZ0zQx6FWIwoYmQ7J1W1gvbo0c6tvNiiC5AmpspoaNokVnUoDmHO/uCDctQfjdzvAl1xXN0cBL7Lkr9KHvyFYCC2+dhAIilk/EdY8UaO+LCNF6JklYye/R5c62pgavJp0c+EIk9e94Z5M35FcqIFFhgd2HY5243h7w7NC5s5d4VRCpO5tPigmI079D4QY9b1a5SIvqYMnfjCpxeCGxRlIaVpsbSwJ/dzikvv/Wgm9y3p5ZxAYAnbHZZqTmb3qjMj69wy74P7ekxgbi9gssV2LzyxXhIiJL/yv9qXOZ3lVAlr7c5e0RhPKoD2YKjJFA/eKCc3I9P7l49UTScU+7uvz9u5hDPZK01gm/Wi+qyL6WBf+5XYk1lgsj6bF+CXQCVDhgeQKK58iQmS+dgXjTOjMVw+jIeqwqFNBvLmh3EDpHrj6W+59f75+W2htn8r4/UthgIIiybAJLyx3Yc= 172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ST8BrBmbgVY3IRtKZduLoZowhyTO +10.168.68.106 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLi0dyMvhMJ2N86sQOvvHxFAy8cSWbJtAbR/Ap0FDO8bDf4bYkGtsp44vs8Sd8GLE9HA+bRRmzM7gsgfkuBBbyA= +10.168.68.206 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINcw2SSLRyxIhZUPST8BrBmbgVY3IRtKZduLoZowhyTO +192.168.2.190 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA +192.168.2.190 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBWnqb2d9cI1MIoc17D8uo7EgRdKkhkoUUY2UtUS9FfF1h5bJwyPfRS+TeSXbBDwuuXfTf7lNG2xYQ0Tpb+0sM0= +192.168.1.13 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHOOg2IlW9Cf1ERszajFPWfj8wAkmINsoz09Phwoio7M +10.0.0.100 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmO/pCjdy/dFQ1WWwL4VKo47vJPlx4ZQwl9N5JT1yhA +github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl diff --git a/emacs/.emacs.d/config.org b/emacs/.emacs.d/config.org index b95502b..27d7603 100644 --- a/emacs/.emacs.d/config.org +++ b/emacs/.emacs.d/config.org @@ -221,23 +221,23 @@ *** [[https://github.com/ledger/ledger-mode][ledger-mode]] #+BEGIN_SRC emacs-lisp (use-package ledger-mode - :mode ("\\.ledger\\'") - :config - (autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t) - (add-to-list 'load-path - (expand-file-name "/path/to/ledger/source/lisp/")) - (add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode)) - ) + :mode ("\\.ledger\\'") + :config + (autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t) + (add-to-list 'load-path + (expand-file-name "/path/to/ledger/source/lisp/")) + (add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode)) + ) #+END_SRC *** [[https://github.com/yoshiki/yaml-mode][yaml-mode]] #+BEGIN_SRC emacs-lisp (use-package yaml-mode - :config - (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) - :bind-keymap - ("\C-m" . (newline-and-indent)) - ) + :config + (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) + :bind-keymap + ("\C-m" . (newline-and-indent)) + ) #+END_SRC @@ -294,10 +294,10 @@ #+begin_src emacs-lisp (add-hook 'org-mode-hook - (lambda () - (org-bullets-mode 1) - (setq org-pretty-entities t) - (setq org-src-fontify-natively t))) + (lambda () + (org-bullets-mode 1) + (setq org-pretty-entities t) + (setq org-src-fontify-natively t))) #+end_src *** Enable utf8x on latex output @@ -309,14 +309,14 @@ *** minted options for pdfexport #+begin_src emacs-lisp (setq org-latex-listings 'minted - org-latex-packages-alist '(("" "minted")) - org-latex-pdf-process - '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" - "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")) + org-latex-packages-alist '(("" "minted")) + org-latex-pdf-process + '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" + "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")) #+end_src #+begin_src emacs-lisp (setq org-latex-minted-options '(("breaklines" "true") - ("breakanywhere" "true"))) + ("breakanywhere" "true"))) #+end_src *** Keybindings @@ -329,11 +329,11 @@ (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) - (C . t) - (makefile . t) - (shell . t) - (latex . t) - (python . t))) + (C . t) + (makefile . t) + (shell . t) + (latex . t) + (python . t))) (setq org-confirm-babel-evaluate nil) (setq org-src-tab-acts-natively t) @@ -342,15 +342,15 @@ ** C-mode #+begin_src emacs-lisp (add-hook 'c-mode-hook - (lambda () - (display-line-numbers-mode 1))) + (lambda () + (display-line-numbers-mode 1))) #+end_src ** C++-mode #+begin_src emacs-lisp (add-hook 'c++-mode-hook - (lambda () - (display-line-numbers-mode 1))) + (lambda () + (display-line-numbers-mode 1))) #+end_src ** rust-mode @@ -363,3 +363,7 @@ #+begin_src emacs-lisp (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) #+end_src +** p4-mode + #+begin_src emacs-lisp + (add-to-list 'auto-mode-alist '("\\.p4\\'" . c-mode)) + #+end_src diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 0a8a309..e804cc7 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -5,6 +5,12 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(auth-source-save-behavior nil) + '(ledger-reports + '(("privatausgaben" "%(binary) -f %(ledger-file) reg Girokonto and not expr 'any(account =~ /Unternehmenskosten|Versicherung|Wohnungskosten|Gemeinschaftskonto|LiviaE/)' and not @Umbuchung and not @Kleingeld --period 'this month'") + ("bal" "%(binary) -f %(ledger-file) bal") + ("reg" "%(binary) -f %(ledger-file) reg") + ("payee" "%(binary) -f %(ledger-file) reg @%(payee)") + ("account" "%(binary) -f %(ledger-file) reg %(account)"))) '(org-export-backends '(ascii html latex md odt)) '(package-selected-packages '(auctex-latexmk flycheck-rust ansible yasnippet use-package theme-magic rainbow-mode rainbow-delimiters ox-twbs ox-reveal ox-hugo org-bullets no-littering moe-theme magit ivy-prescient htmlize god-mode go-mode flycheck evil-collection diminish counsel company auctex)))