From 09b7dcc2e18f78b37bb074368e34c78013c7be93 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 16 Mar 2025 17:07:24 +0000 Subject: [PATCH 1/6] Just add this lil newline --- my_home/.kshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/my_home/.kshrc b/my_home/.kshrc index 5018a24..ce88705 100644 --- a/my_home/.kshrc +++ b/my_home/.kshrc @@ -2,6 +2,7 @@ # Check login shell first if [ -t 0 ] && [ -x /usr/games/fortune ]; then + echo /usr/games/fortune echo fi From cc31b88da3962920c8d4f693562bd48b750f49ae Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:01:52 -0400 Subject: [PATCH 2/6] Add -b --- my_home/.kshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/my_home/.kshrc b/my_home/.kshrc index ce88705..ee796fa 100644 --- a/my_home/.kshrc +++ b/my_home/.kshrc @@ -8,8 +8,8 @@ if [ -t 0 ] && [ -x /usr/games/fortune ]; then fi # user specific aliases -alias l='ls -lhF' -alias la='ls -lahF' +alias l='ls -blhF' +alias la='ls -blahF' alias ..='cd ..' alias digg='dig +short +noshort' alias h='echo $HOME' From 6804ccae577fc2bfd55723b52a8f1e4817bf60cd Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:02:37 -0400 Subject: [PATCH 3/6] These TODOs are TODONE --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index 7a136e3..b7000c2 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,3 @@ things that don't use `$HOME/.config`. `my_usr` represents `/usr` etc. - -## TODO - -- Login shell check to do fortune output (breaks `rsync`) -- Make `mg` stop leaving those damn tilde files From 9e57d05af82e172567e5092041803b4c8b038f55 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:06:23 -0400 Subject: [PATCH 4/6] Make `doas` friendly --- my_home/.kshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/my_home/.kshrc b/my_home/.kshrc index ee796fa..e8312f2 100644 --- a/my_home/.kshrc +++ b/my_home/.kshrc @@ -20,10 +20,15 @@ alias p='cat' alias n='cat -n' # exports -export PS1='$USER:/${PWD#/}:!$ ' export HISTFILE="$HOME/.sh_history" export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.1/All/" +if [ $USER = 'root' ]; then + export PS1='$USER:/${PWD#/}:!# ' +else + export PS1='$USER:/${PWD#/}:!$ ' +fi + if command -v emacs > /dev/null 2>&1; then export EDITOR='emacs -nw' elif command -v mg > /dev/null 2>&1; then From f713492679fa1314dd10d31a84ba53e1121a519f Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:27:12 -0400 Subject: [PATCH 5/6] Don't throw error when no flycheck --- my_home/.emacs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/my_home/.emacs b/my_home/.emacs index 3c1601f..d5d4d0f 100644 --- a/my_home/.emacs +++ b/my_home/.emacs @@ -118,5 +118,6 @@ (setq js-switch-indent-offset 4) ;; Flycheck -(add-hook 'after-init-hook #'global-flycheck-mode) -(setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5")) +(when (require 'flycheck nil 'noerror) + (add-hook 'after-init-hook #'global-flycheck-mode) + (setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5"))) From c9a777dc5d718e6f9f74b85ed1e611aa60f92a78 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 23 Mar 2025 17:38:12 -0400 Subject: [PATCH 6/6] Make firewall 'one size fits all' --- my_etc/npf.conf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/my_etc/npf.conf b/my_etc/npf.conf index 2defbcb..6032ddf 100644 --- a/my_etc/npf.conf +++ b/my_etc/npf.conf @@ -1,12 +1,7 @@ # TODO: Allow in ICMP(v6) by message type # TODO: Rate-limit ssh -# ICMP(v6) -alg "icmp" - -group "services" in on vioif0 { - pass stateful proto tcp to any port ssh -} +$services = { mdns, ssh } group "localhost" in on lo0 { pass stateful all @@ -16,6 +11,8 @@ group default { # Default rule block all + pass stateful in proto { tcp, udp } to any port $services + # Let it goooooo pass stateful out all }