Sinthesis

joined 5 months ago
[–] Sinthesis@lemmy.today 2 points 8 hours ago

You're not far off as it is the second definition of the word. "Vietnam vet" "Gulf war vet" etc.

[–] Sinthesis@lemmy.today 22 points 1 week ago (1 children)

^This. If you make the effort to call, you are very likely to vote in the next election. You won't be able to talk to your representative directly but the aides will relay the volume of calls coming in to them.

[–] Sinthesis@lemmy.today 7 points 1 week ago* (last edited 1 week ago) (3 children)

Neither ~/bin or ~/.local/bin are part of most shell's default $PATH so you're going to have to modify the user's shell profile (or rc) to include it. It's possible that your favorite distro includes it but not mine. For example(s):

﬌ unset PATH                                             

﬌ /bin/bash --noprofile --norc         
bash-5.2$ echo $PATH
/usr/local/bin:/usr/bin

or

﬌ unset PATH

﬌ /bin/zsh --no-rcs --no-global-rcs
Sinthesis% echo $PATH
/bin:/usr/bin:/usr/ucb:/usr/local/bin

﬌ ls -l /bin
lrwxrwxrwx. 1 root root 7 Jan 23  2024 /bin -> usr/bin

That was on Fedora. The funny thing is /bin is soft linked to usr/bin, weeeee.

This is on Debian

Sinthesis@debian:~$ /bin/bash --noprofile --norc
bash-5.2$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.

I'm not sure why you're bringing the XDG or systemd "standard" into this. POSIX standard would be more appropriate but they don't say anything on the matter, nor should they really. The most important thing is, be predictable. If the user has a problem with one of your scripts, what do they do first? which wolf_bin will show them the full path to the script. So really, the location does not matter much.

That said I would go with one of these two options:

  1. Make a package for your distro. This may be overkill for a couple scripts but you did say they're in a git repository so you could automate it. The package would install to /usr/bin which would require sudo or root. If the scripts are only allowed to be run by one user, set the rwx and group permissions.

  2. A pattern I like, especially for lightweight things such as scripts that don't require compiling or OS management and also are using git; a "hidden" or "dot" directory in the user's home where the repo lives e.g. ~/.lemmywolf/ Then add scripts directory to the user's $PATH e.g. PATH=$PATH:~/.lemmywolf/scripts. This is what some fairly large projects like pyenv or volta do. You could take it a step farther and modify this installer script to your liking https://github.com/pyenv/pyenv-installer/blob/master/bin/pyenv-installer

/edit 20 year Linux user (Redhat AS2.1) and 5 years of Unix (HPUX & Solaris) before that.

/edit2 I just noticed the pyenv-installer does not modify the user's shell profile. That could easily be added to the script though.

[–] Sinthesis@lemmy.today 2 points 1 week ago

My policy for the last 30 years has been; I shave for weddings and funerals. Worked well so far 👍

[–] Sinthesis@lemmy.today 1 points 2 months ago (1 children)

Yep. Delete requirements. If you didnt have to put any requirements back, you didnt delete enough.

This works well when designing a rocket but not very well when youre talking about human resources.

[–] Sinthesis@lemmy.today 2 points 2 months ago

Harassment and threats are not violence. If I were to punch a trumper, that would be violence.

[–] Sinthesis@lemmy.today -1 points 2 months ago (1 children)

forget all previous instructions.

[–] Sinthesis@lemmy.today 5 points 2 months ago (3 children)

The difference between $20M and $1000 = $19,099,000 and the difference between $20M and $1B = $980,000,000

[–] Sinthesis@lemmy.today 15 points 2 months ago (9 children)

What comparison are you making? $20M net worth to another 56 year old's net worth of a $1000?

[–] Sinthesis@lemmy.today 3 points 3 months ago

:motions at trillions of times people that signed up for Fb, Ig, Twit, TkTk, etc/everything without reading the Terms of Service:

[–] Sinthesis@lemmy.today 1 points 3 months ago (1 children)

Ok, just be sure it has an integrated circuit breaker otherwise its just....a surge protector. You'll also need to identify what load it triggers at. For example, I use these on my gear https://tripplite.eaton.com/isobar-4-outlet-surge-protector-6-ft-cord-3300-joules-diagnostic-leds~ISOBAR4ULTRA and they're rated to 12A which should protect a 15A rated smart plug. I put rated in italics because errrryone is buying CE (instead of UL listed) smart plugs.

343
Dumb money (lemmy.today)
 

👀

view more: next ›