=== ANCHOR POEM ===
═════════════════════════════════════════════──────────────────────────────────────
@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 │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
=== SIMILARITY RANKED ===
--- #1 fediverse/1567 ---
═════════════════════════════════════════════════──────────────────────────────────
I helped make a script that saves the last directory you CD'd to in every
shell / terminal. It helps because when I open a new terminal I'm already
where I was working last, which means I'm less likely to forget what I was
doing.
However, it does make my home directory a bit more messy, as I no longer open
my computer to that place.
┌─────────┐ ┌───────────┐
│ 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 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 │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #4 fediverse/1246 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-883
hehe if I don't understand how it works it's difficult for me to use things.
My Linux friends get so exasperated with me because I'm like "cool script
gimme like 2 days to figure it out" and they're like "bro just use these
flags" and I'm like "no"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #5 fediverse/6345 ---
═════════════════════════════════════════════════════════════════════════════──────
anytime I want to do something new on my computer, I write a bash script.
if I forgot how to do the thing, I spend time meandering about my
file-directory-system. If I don't find it, that's okay, because all I have to
do is keep looking until I stumble upon it.
kinda makes me wish I had an LLM who managed the operating system and named
files with long-and-descriptive titles while taking in as context the general
eternal prompt stored in ~/.claude.md or wherever
--> /home/ritz/programs/cloud-code/
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════════════─────┘
--- #6 fediverse/1694 ---
════════════════════════════════════════════════════───────────────────────────────
would anyone be interested in a Bash+Lua script that takes your Mastodon
archive and turns it into a folder full of .txt files?
I also made a script that spits out a random one on your terminal, if you want
that
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘
--- #7 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 │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #8 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 │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #9 fediverse/548 ---
═════════════════════════════════════════════──────────────────────────────────────
I added a line to my .bashrc that cats out a random one of my notes every time
I open a terminal.
I keep reading things that I swear I didn't write, but feel right and true to
me in a way that could only imply that they came fully formed into my eyes
through the lines on my screen, cast upon the mirror panes of my hard disk
drive by the pounding of my keyboard as I once upon a time did cast a spell
upon my future.
It's pretty neat, but it speaks to a shadowed perspective that perhaps is
neither within nor without.
Side note, I think I've been possessed by a witch. But like... in a consensual
way. Like "Hey witch, wanna live? You can chill out with me." [ha that's one
way to look at it]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #10 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 │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #11 fediverse/1080 ---
═══════════════════════════════════════════════────────────────────────────────────
here's an idea - when typing a command in a BASH terminal if you push up it
inserts the previous command (as expected) but if you hold SHIFT and push up
it inserts the first argument in your previous command. Then, you can push up
again (while still holding shift) to go one command further back, and again to
get the third previous command.
Then, here's the cool part, if you are holding shift and you push left/right,
then it moves from the first argument of the previous command to the second,
third, fourth argument.
example:ls -ltr ~/pictures/my-art/
feh [shift+up inserts -ltr]
feh -ltr [hmmm that's not right]
feh -ltr [shift+right switches to 2nd argument]
feh ~/pictures/my-art/ [ah that's better]
would be even cooler if it highlighted it in your previous terminal output so
you could visually connect your current input with the previous input
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #12 fediverse/1762 ---
═════════════════════════════════════════════════════──────────────────────────────
This was the first bash script I ever wrote.
It's been updated a little, it was a bash alias first, but this is what it
looks like now.
Kinda shows what kinds of problems I needed to solve most.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #13 fediverse/928 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-226
especially if you teach them how to use the terminal.
the amount of problems I could solve increased exponentially once I learned
basic python and BASH.
I love using "tldr", which is a summarizer for man pages. You can use it to
store custom notes (and import some from the community) which show you how to
complete common tasks. It's so nice when you can see the options laid out in
use right there for you whenever you type "tldr " - I personally use
"tealdeer" which is a tldr browser written in Rust. It's pretty nice because
you can write a note for yourself every time you solve a particular problem,
and then if you ever need to do it again it's there for you, easy to access.
of course, if your problem isn't listed, that's okay. That's what the man
pages are for. As long as you teach them how to search with \/ they can find
anything. Especially the \/-f[space] trick, to search for the -f flag for
example.
some organizers won't need the terminal, some will. if they pay attention,
great!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #14 fediverse/2041 ---
═════════════════════════════════════════════════════──────────────────────────────
@user-1049
I haven't heard of that but I'll look into it! Honestly I'm more likely to
write my own script, it shouldn't be too hard just altering the /etc/hosts
file and then changing it back in ~15 minutes with a cron-job, as Nikky says
down below. I like things that I make myself because then if it breaks I know
who to blame! And who to go to to fix it. >: )
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #15 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #16 fediverse/3592 ---
════════════════════════════════════════════════════════───────────────────────────
@user-1570
[meme of Mr Incredible from the Incredibles pointing at a table]
LINUX IS LINUX.
(anything that works on Linux can theoretically be made to work on your
toaster, if it also runs Linux!)
This is very cool, and if I understand correctly it means that any Godot games
could theoretically be played on these NEAT as HECK little devices, yeah? So
cool!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #17 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 │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #18 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 │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #19 fediverse/1720 ---
╔════════════════════════════════════════════════════──────────────────────────────┐
║ there's even websites online like Facebook or Twitter where you can share │
║ advice and various spells you've invented yourself (it's totally easy to do │
║ btw, I'll show you how) │
║ │
║ everyone's super friendly and anyone who's not isn't allowed to bother us. │
║ it's pretty neat. anyway no matter what it is, if something's bothering you │
║ about your computer, you can fix it. it's just a matter of reading through │
║ documentation. Ah, well, isn't it great to have a lot of free time that you │
║ don't know what to do with? │
║ │
║ Linux is pretty great, I gotta say. I honestly never really leave the command │
║ line - the text based buttons, I mean. I only use a mouse when I'm doing │
║ something with pictures (or playing a game like freecell or hearts) │
║ │
║ plus you can do things like sending raw packets of information to your friend │
║ who's on the other side of the country and they can use a secret key-code to │
║ decrypt it like checking the mail at a locked mailbox. │
║ │
║ anything you can imagine using the physical components of a computer, is │
║ possibleifyrts │
╟─────────┐ ┌───────────┤
║ 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 │
╚═════════╧════════════════════════════════════════════────────────────┴──────────┘
|