=== ANCHOR POEM ===
══════════─────────────────────────────────────────────────────────────────────────
# Create a symlink to the service directory in /var/service:
sudo ln -s /etc/sv/<service> /var/service/
# If you want to disable a service, create an empty file named "down" in the
# sevice's directory:
touch /etc/sv/<service/down
# ^^^ That will disable services that automatically start.
# That's a temporary solution though, if you want a more intense approach then
# sever the symlink.
rm /var/service/<service>
# If you want to test if a service is working correctly, first take it down
# temporarily, then re link the two directories. Then start the service once:
touch /etc /sv/<service/down
ln -s /etc/sv/<service> /var/service/
sv once <service>
# Then, if it works, remove the "down" file to enable the service:
rm /etc/sv/<service>/down
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════┴╧═══────────────────────────────────────────────────────────────────────────┘
=== SIMILARITY RANKED ===
--- #1 fediverse/3588 ---
════════════════════════════════════════════════════════───────────────────────────
┌─────────────────────────────┐
│ CW: re: computers-mentioned │
└─────────────────────────────┘
#!/bin/bash
set -euo pipefail
CHAPEL_DIR="/home/ritz/programming/chapel"
COMPILER_DIR="${CHAPEL_DIR}/language-files/files/chapel-2.1.0"
PROJECT_DIR="${CHAPEL_DIR}/projects/practice"
SOURCE_DIR="${PROJECT_DIR}/src"
clear
cd "${COMPILER_DIR}" > /dev/null
export CHPL_LLVM=system
source "${COMPILER_DIR}/util/setchplenv.bash" > /dev/null
cd - > /dev/null
cd "${PROJECT_DIR}" > /dev/null
echo "compiling..."
chpl "${SOURCE_DIR}/main.chpl"
clear
./main
cd - > /dev/null
you should update the directories at the top yourself, of course. And give it
a cursory glance to make sure it works on your setup.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #2 fediverse/3907 ---
══════════════════════════════════════════════════════════─────────────────────────
kinda wanna make a linux distro that has all the capabilities of a GUI distro
and isn't so minimal (like screen recording, calculator, screenshot, wifi
manager, etc etc) but with i3 instead of a desktop.
they could literally just be symlinks (shortcuts) to scripts that are in your
/usr/bin or whatever directory
seriously it's not like there's THAT many ways to use ffmpeg, why not just
write a script for them? that's what you're going to do when you use it for
the first time, anyway, so...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #3 fediverse/3878 ---
══════════════════════════════════════════════════════════─────────────────────────
@user-570
that's not actually my script, here's the real one:#!/bin/bash
alias cd="cd-improved"
function cd-improved(){
if [ "${1}" = "..." ] ; then
builtin cd .. && builtin cd ..
elif [ "${1}" = "...." ] ; then
builtin cd .. && builtin cd .. && builtin cd ..
elif [ "${1}" = "....." ] ; then
builtin cd .. && builtin cd .. && builtin cd ..
&& builtin cd ..
elif [ -d "./${1}" ] ; then
local target_dir="./${1}"
elif [ "${1}" = "cdir" ] ; then
local target_dir="$(tail -n 1 '/home/ritz/scripts/.cdir-target')"
echo ${target_dir}
else
local target_dir="${1}"
fi
if [ ! "${2}" = '--no-ls' ] ; then
builtin cd "${target_dir}" && ls -v --color=auto
else
builtin cd "${target_dir}"
fi
}
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #4 fediverse/5950 ---
══════════════════════════════════════════════════════════════════════════─────────
@user-138
wao I'm a cool kid _^
Hmmmm I googled "Network: file exists" and got this link:
https://access.redhat.com/solutions/1340713
my understanding of that is that maybe you're creating static routes, and for
some reason you're trying to create one that already exists? Maybe there's
something in your .bashrc config, if the file appears when you open a
terminal, or perhaps if it appears randomly then maybe there's a service or
something that's doing it.
Did you say it stopped when you swapped sim cards? ... on your phone? that's
bizzare... Maybe you were trying to create an ip route (whatever that is) that
was pointing to the same ip address as your phone? and when you swapped sims
it changed the ip address? If it appears again, maybe try setting static IP
addresses for both the phone and the computer in your router settings and see
if that fixes it. Though if you've ever seen the error while out and about at
like, a coffee shop or library or whatever, then that wouldn't apply since the
router is only for home base...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #5 fediverse/582 ---
═════════════════════════════════════════════──────────────────────────────────────
@user-431
I made an alias that overwrites cd so I don't have to do this. The important
line is line 27, you could probably accomplish something similar like this:
alias cd="cd ${1} && ls -v --color=auto"
I also set it up so I can change more than one directory up using ... or ....
or .....
also I have a few shortcut scripts, cdir and qcd. cdir creates a quick way to
drop a bookmark wherever I'd like, while qcd can make permanent bookmarks.
Also qcd makes it so whenever I open a new terminal it opens to the last
directory I was in, which is nice if you need a new terminal to do something
in the current folder and you don't want to have to walk alllllllll the way
back.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #6 fediverse/2674 ---
══════════════════════════════════════════════════════─────────────────────────────
┌────────────────────────────────────────────────────────────────────┐
│ CW: factually-untrue,-that-never-happened.-this-is-just-gesturing. │
└────────────────────────────────────────────────────────────────────┘
the kind of friendship where you SSH into each other's systems and leave notes
for one another.
as soon as you find one you message the person who left it like "yoooo only
just found this lol" and they're like oooo yeah did you see the bash script I
wrote in that directory "yeah totally I used it on one of my video files just
now - cool filter!"
ahhhh reminds me of all the times hackers have hacked my permanently insecure
system and left me friendly messages like "hey I'm on your side" or "how's
life, friend? I hope it's going well." or "never forget; you are worth all the
fear" y'know cute things like that
oh. right. because leaving vulnerabilities like that can lead to threat actors
affecting your stuff. how lame.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #7 notes/environment-variables ---
═══════────────────────────────────────────────────────────────────────────────────
To edit environment variables:
~/.bashrc is for variables only accessible by the user.
/etc/profile is for variables accessible by all users.
/etc/environment is for variables accessible by anyone.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘══════───┴╧───────────────────────────────────────────────────────────────────────────┘
--- #8 fediverse/5851 ---
══════════════════════════════════════════════════════════════════════════─────────
@user-1074
I realized there might be a lot of configuration required. Oh well here ya go:
https://pastebin.com/x40VXQnH
https://pastebin.com/H5C4umWq
https://pastebin.com/dgDeS5Xu
https://pastebin.com/JCLrwF1z
https://pastebin.com/As6diaYc
https://pastebin.com/0vwzJUW4
https://pastebin.com/jPKeV7D1
dependencies are dkjson.lua (included), bash, lua, luahpdf, and libharu.
throw that all in a directory and point an AI tool at it. Or just do it
yourself and waste an hour or three on something a computer can do in 2
minutes.
good luck it looks like this when it's done:
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #9 fediverse/1940 ---
═════════════════════════════════════════════════════──────────────────────────────
@user-579
Yeah if there isn't a package in the package manager XBPS then I usually just
install it from source. Which is ALSO something you can automate with a quick
and easy script! Just put all the notes from the README on Github or whatever
into a file named "update" and put that one level above the project directory!
For any installed program my file hierarchy usually looks like:
program-name
- run (script)
- update (script)
- files (directory to clone into)
- configs (point the program here)
I find that this kind of organization makes it MUCH easier to keep my packages
configured and installed as I'd like. Using a package manager is hard because
they're all specific per distro, but using this distro-agnostic approach
always seems to work better 9/10 times I find.
And if another program needs a library that you manually installed, just
symlink where it's looking to point to where you're installed! Or vice versa I
guess.
I use DWM so I don't have a desktop like KDE or anything like that
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #10 fediverse/466 ---
═════════════════════════════════════════════──────────────────────────────────────
I love Linux. All I have to do is type "authserver" and "worldserver" and
wouldn't you know it suddenly a universe is created (with very constrained
rules) that anyone might inhabit should they desire to. It's not like I'm
perfect - oh wait I have a toot about that, gimme a sec
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #11 fediverse/1868 ---
╔════════════════════════════════════════════════════──────────────────────────────┐
║ whyyyyyy do programs create all these dot-folders in my home directory? It's │
║ sooooo crowded. Why are they always putting things in random directories like │
║ /usr/bin or /lib/ or things like that? I'd much prefer to be able to trust │
║ that all my files are in one directory, so if I need to DELETE or MOVE them │
║ easily I don't have to worry about my config files being lost / sticking │
║ around. │
║ │
║ to that end, I always try and configure software I install on my system to put │
║ all their files into a single directory. If possible. │
║ │
║ Usually for like, a game, this involves having a directory for the project, a │
║ directory for the files (things that are deleted and recreated when │
║ reinstalling), a directory for config files, and usually an update script and │
║ a run script. It's so much nicer to not be clogged up all the time. │
║ │
║ industry standards apply primarily to industrial uses, and if they aren't │
║ customizable then they aren't fit for the industry. So why not keep things │
║ simple? I don't need all this junk cluttering up my desktop. │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧═════════════════════════════════════════───────────────────┴──────────┘
--- #12 fediverse/6026 ---
══════════════════════════════════════════════════════════════════════════─────────
"huh weird why does my ls -ltr output display 4096 for every single
directory's size"
"maybe there's a man-file option for it"
https://stackoverflow.com/questions/1019116/using-ls-to-list-directories-and-th
eir-total-sizes
what if every file had a record of every file that had a record of it. then,
we could see the total size no matter what level of the directory structure.
plus, it'd make deleting a lot easier, all you'd have to do is propagate a
process. that way it can get super messed up and complicated if ever shut down.
boom, robot mortality, they cherish it
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #13 fediverse/4218 ---
═══════════════════════════════════════════════════════════────────────────────────
there are plenty of pieces of linux that are insecure in some way. Including
x11, if I remember correctly. It is purely convention to not abuse these
insecurities, and whenever you use someone else's binary software you trust
that they won't betray you in some way.
pre-built binaries are privacy violations and should be illegal. They are
security threats because the model they're built upon is necessarily insecure.
Computers will never be completely secure because of how they are built, and
so we should use locally compiled software and interpreted scripts.
Unless they're too long, or impossible to read. Who reads EULAs these days? At
least those are written in english.
maybe computers aren't worth it. Maybe computers will solve all our problems.
Who can say, maybe you should ask an oracle like me
though do remember that anything you hear can and will be used against you,
monkey's paw style. So maybe, like... don't? unless you're into magic or
schizophrenia or something
I wnt 2 be cute and tch cpus
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #14 fediverse/3469 ---
════════════════════════════════════════════════════════───────────────────────────
you know how SSH password login is deprecated because the password needs to be
transmitted in cleartext or whatever?
what if we just... required two passwords?
the first initiates the conversation, and sets up an encrypted line. It
doesn't matter if anyone sees the first password because they'll get a new set
of encrypted keys, meaning each session automatically is encrypted in a
different, randomized way.
the second password is the one that actually authenticates you.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #15 fediverse/3668 ---
════════════════════════════════════════════════════════───────────────────────────
setting up an SSH server is like a rite of passage for Linux administrators
(notice I didn't say users, you can't use linux, only administer it)
... I'm having trouble with my rites >.>
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #16 fediverse/4883 ---
╔═══════════════════════════════════════════════════════════════───────────────────┐
║ what if you had several kindle-style paperwhite display screens. each │
║ connected to a raspberry pi that you used for compute tasks. │
║ │
║ each of these displays would display a .png file of exactly the same │
║ proportions as the size of the device. │
║ │
║ then, I could SSH into your computer and run one single command │
║ │
║ just one, stored on your computer, that you manually activate upon receiving a │
║ signal. │
║ │
║ like a virtual machine. do whatever you want with said signal, it's just a │
║ "thing" that tells you when to go. │
║ │
║ ... and run a function on a computer that performs a certain task. │
║ │
║ what task? oh right - I'd update the "today's news in cameron-ville" things │
║ every other day or so. It'd be just like, my status, my updates, here's what │
║ I'm thinking about, here's what I'm working on. │
║ │
║ you know, status updates. standups. │
║ │
║ boom, everyone knows what everyone's up to all of the time. │
║ │
║ like documenting your day for scientific purposes. except on a little device │
║ that you can scroll through with a touch. and you had like 5 or more 10+ 1 │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧════════════════════════════════════════════════════────────┴──────────┘
--- #17 fediverse/2622 ---
══════════════════════════════════════════════════════─────────────────────────────
what kind of linux user are you if you don't even like reading terminal
output? it's USEFUL and INTERESTING information!
WHY ELSE WOULD THE PROGRAMMER OUTPUT IT???
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #18 messages/181 ---
══════════════════════════════════════════════─────────────────────────────────────
I know you don't want to hear this, but there is a chance that there will come
a time where your life depends on your ability to debug a computer without the
internet. To set up an SSH server. To install Linux. To program in C. To do
something else that I'm not prepared for... If StackOverflow didn't exist
because network connectivity has been lost, could you remember syntax? Maybe
it's a good idea to set up a local LLM that can answer basic questions about
technology. Maybe it's a good idea to set up on your parents computer, just in
case you have to hide out there for a couple months. Maybe it's a good idea to
download wikipedia, just in case.
If I need to use a mac, I'm screwed
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #19 fediverse/5873 ---
══════════════════════════════════════════════════════════════════════════─────────
"the problem with linux is you have to spend part of the program just...
interacting with the filesystem. like, where is their /usr/bin file? (oh it's
called a directory over there, my bad) weird they put their config over here
(what language is that written in?) uhhhh I don't know much about localization
settings (-- two computers on a botnet --)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #20 fediverse/3234 ---
╔═══════════════════════════════════════════════════════───────────────────────────┐
║ ┌────────────────────────────────────────────────────────────────┐ │
║ │ CW: ritz-is-fucking-stupid-I-guess-oh-whoops-cursing-mentioned │ │
║ └────────────────────────────────────────────────────────────────┘ │
║ │
║ │
║ my understanding is that anyone with my IP address could make my heart bleed │
║ due to a hardware vulnerability on my motherboard. Though you might have to │
║ get past my decrepit ancient linksys EA 3500 router from 2012 first. │
║ │
║ unrelated, but does anyone want my IP address? I don't have any remote │
║ backups, so if you hate me now would be a great time to show me how despised I │
║ am. Alternatively you could try searching for anything evil to ensure that I │
║ can be trusted. You're gonna find mostly video games and source-code that I │
║ didn't write though. But also all my notes in directories that are │
║ non-standard, meaning you'll have to look around a bit. I leave little notes │
║ everywhere I go, so that I can remind myself how to do things in the │
║ directories I revisit months later. It's so weird how sometimes the things I │
║ wrote stop working after a while even if I didn't update my system lmao │
║ │
║ what is it with artists and self-immolation? "I never thought I'd actually di │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧════════════════════════════════════════════────────────────┴──────────┘
|