[-] StrangeAstronomer@lemmy.ml -4 points 5 months ago

so just use chatgpt or gemini - pretty sure they sucked in all of reddit to form their KB

[-] StrangeAstronomer@lemmy.ml 1 points 6 months ago

Wow! Just wow!

[-] StrangeAstronomer@lemmy.ml 1 points 6 months ago

Another approach entirely is to use pam_mount(8) which can automatically mount a disc on login. I use it to mount /home/$USER (obviously this couldn't be used to mount the root fs !!)

[-] StrangeAstronomer@lemmy.ml 1 points 6 months ago* (last edited 6 months ago)

I find the various linters and checkers a bit too intrusive while I'm trying to code - I prefer to just have a check when I stop fiddling with the code and save it. So I have these checks run in after-save-hook - if there are errors, I get a popup otherwise nothing and all is good:

;; ** syntax checking on file save:
(defun bh/check-syntax ()
  "Check syntax for various languages."
  (when (eq major-mode 'emacs-lisp-mode)
    (ignore-errors (kill-buffer byte-compile-log-buffer))
    (let ((byte-compile-warnings '(not free-vars obsolete unresolved)))
      (unless (byte-compile-file buffer-file-name)
        (pop-to-buffer byte-compile-log-buffer))))
  (when (eq major-mode 'sh-mode)
    (compile (format "bash -n %s && shellcheck -f gcc %s" buffer-file-name buffer-file-name) t))
  (when (eq major-mode 'ruby-mode)
    (compile (format "ruby -c %s" buffer-file-name) t))
  (when (eq major-mode 'python-mode)
    (compile (format "python -B -m py_compile %s" buffer-file-name) t))
  (when (eq major-mode 'awk-mode)
    (compile (format "AWKPATH=$PATH gawk --lint --source 'BEGIN { exit(0) } END { exit(0) }' --file %s" buffer-file-name) t)))

(add-hook 'after-save-hook #'bh/check-syntax)

I don't work much with json files but I daresay the idea could be extended to them. Sorry about the crappy elisp.

[-] StrangeAstronomer@lemmy.ml 1 points 1 year ago

I vote for voidlinux - I have no idea why, but I get almost double the battery life compared to fedora. No doubt it's something stupid I've done on fedora but - I just love void.

[-] StrangeAstronomer@lemmy.ml -3 points 1 year ago

Link for the video?

As a general rule of thumb, I've been told that anything less than a 50% performance boost is hardly noticeable.

I've also heard (but ready to stand corrected) that mitigation costs only about 10% CPU (depending on the CPU).

I don't get out of bed for a 10% performance boost.

[-] StrangeAstronomer@lemmy.ml 1 points 1 year ago

gtklock for sway/wayland

view more: ‹ prev next ›

StrangeAstronomer

joined 1 year ago