• 0 Posts
  • 87 Comments
Joined 1 year ago
cake
Cake day: September 7th, 2023

help-circle







  • For question 1: idk how to convert tex to svg, but maybe there’s a program called tex2svg . Often programs are named like that. However, if you want the contents of a file (which is basically markup text) in the clipboard from CLI you would use on Xorg X11 xclip or xclipboard like so:

    xclip -selection clipboard -in < myfile.txt

    … or on Wayland wl-copy from wl-clipboard like so:

    wl-copy < myfile.txt

    For question 3: after you have reviewed the potentially dangerous script, you would move it to a directory for non distribution files, eg. /usr/local/bin/ if it is for all users on your system. You would add that path to the PATH environment variable for all users who need it, but maybe better not for root. I mean you can, but make sure the permissions don’t allow non-root users to write or replace the file/dir so nobody can use it to escalate their privileges.


  • You can have multiple installed in parallel and you should be able to switch during login. Some are super small and fast. Not sure if it matters if you run Xorg or Wayland, but those are cool: WindowMaker (wmaker), enlightenment (version DR16 was the best, but has been discontinued), blackbox (extra small and fast), notion (a tiling WM that allows to do some things with the mouse and can be user scripted with Lua)



  • The trick is to name everything in a way so you don’t have to remember stuff. Like instead of class “Cronjob” method “process”, name it “ImageCacheEraser” and “purgeByContentID”. Same goes for variables. No need for short names. Nowadays, you can even write with short names at first, so typing is faster, then just use your IDE to rename them to full size afterwards.






  • You could get a cheap Android phone or tablet and install MacroDroid or Automate. They allow making simple programs from building blocks. Like “If notification is ckicked display message”. … but there’s the risk this somehow leads to wanting to use the internet/wifi.

    Unfortunately Lego Mindstorms have been discontinued AFAIK. It were components to build a robot that could be programmed from a PC. That would have been cool. I think one of the programming softwares was also for Mac. Maybe you can get it second hand?