Skip to content

u/NGGJamie

In this archive from Jun 2018 to Jun 2023

6
posts
247
comments
3
media
1.2k
score

My favorite ones:

alias yt-mp3="yt-dlp --add-metadata -x --audio-quality 256k --audio-format mp3 "

alias wp32='wineserver -k; export WINEPREFIX="$(pwd)"; export WINEDEBUG=-all; export WINEARCH=win32; wineboot;'

alias wp64='wineserver -k; export WINEPREFIX="$(pwd)"; export WINEDEBUG=-all; export WINEARCH=win64; wineboot;'

alias venv="python3 -m venv env; . env/bin/activate"

function cdtmp {

TMP="$(mktemp -d)"

cd "$TMP"

}

alias yay="MAKEFLAGS="j6" yay --sudoloop"

alias htop="htop -u $USER"

And I can't find it, but I have another one that makes and changes into a directory in one go.

3 points

You could write a shim function in C with the same name and parameters as the kernel write function, compile it as a .so file, then use LD_PRELOAD to make the program execute your function instead of the kernel's write call. In your shim, you can do whatever you need before passing on the data to the real call, or not pass it on at all and fake it.

5 points

As I walk in, my coworkers stare at me. My boss asks if I'm feeling better. I ask what he means.

"Well, your doctor called, sounds like you took a hard hit to the noggin." my boss says.

"I did?"

"Yeah, he said you might have some memory loss. He couldn't tell me more than that, but you've been out for a month."

My shock wasn't hidden from my face. "A month? Has it really been that long? And which doctor called you? What hospital?"

"You know, now that I think of it, I don't think he actually gave me his name. But we did receive paperwork for your stay from the local hospital, their records said you were admitted a month ago. We actually tried calling them after you were missing for a couple days and asked about you, but they said you weren't there at the time. A week later, they called us back and apologized for the mistake, and affirmed you actually had been there."

I didn't really know what to say after that. I didn't tell him about my dream, or anyone else. Just went about greeting my friends at work and reassuring them that I was feeling okay. A good portion of my workload got redistributed to my coworkers while I got back into the swing of my job, but I insisted on finishing the rest of my usual load before the day was over. I spent most of my time thinking about my memories. They felt so real, yet I can't find any indication that they actually happened. Was I in a coma that whole time? They say people don't feel pain, hunger, or fatigue in dreams, so if that's true, then how did I remember feeling them anyway? Do coma dreams work differently?

I was hoping that writing all of this down would help me understand the whole ordeal better, but if anything, it's only made it all the more confusing. I don't know if I should classify this as being a therapeutic tale for myself, a story of a weird dream, or words of caution for someone else who finds an odd kitten sitting in the road. I leave that as an exercise for anyone reading this to consider for themselves. As for me, I think after I post this, I'm just going to do my best to forget the whole thing and move on. No point in dwelling on it now that it's over.

2 points

After having a long dream, did you ever come back to reality feeling like things just weren't right anymore? In fact, as I tell this story, I'm not even sure which parts are real and which parts were the dream, or if maybe the whole thing was the dream.

It starts with me driving home from work. I'm getting close to my house, driving down my neighborhood when suddenly a kitten runs out into the road, and sits itself down right in my path, staring at my oncoming vehicle. I hit the brakes- not fast enough, I wait for the tiny *thump* of my bumper hitting a small animal, but the sound doesn't come. My heart rate probably jumped from 60 to a million then, and when I come to a stop, I knew I had to get out and make sure it was okay before continuing or the guilt would haunt me all night.

I fully expected to either find a dead cat behind my car, or empty road after the animal bolted back from whence it came. However, when I get around to the back of my car, there it sat. It hadn't moved an inch. I look down at it, bewildered, and it returns my gaze with a look back and a soft "mew" sound. I reach down and stroke it on the head, and it stands up, leaning into my hand and purring eagerly. In the spur of the moment, I take my coat off, wrap the kitten up, and place it into my passenger seat as I continue home. I don't have the supplies to take care of a cat, but a call to a friend that likes housing rescues nets me an old spare litter box they weren't using and a bit of kitten chow.

A couple of days go by, I decide to keep the kitten and purchase my own supplies. It's around that time that the dreams start, or maybe dreams within my dream? Like I said before, I'm not sure; we'll just keep things simple and call them dreams. In my dreams, I'm small, running around on all fours, and very nimble. I look in a mirror, and I see the kitten's face staring back at me, and I wake up from the shock, scaring the sleeping kitten next to me. The dreams persist for the next week. Each night the they become more vivid, and the shock of seeing myself in the mirror turns into an expected result. My dreaming mind doesn't question it anymore. It's at the end of that week where what was at first strange turns truly weird.

In this dream, I'm the cat again, but it's different. All of the others ended with my alarm, or when I woke up naturally. This one persists. I hear my phone alarm going off, and run into my bedroom like being there will wake me up, but it doesn't. I jump onto my bed and stare at myself. The alarm just keeps buzzing, and finally I watch my body get up and puzzle at it, but that can't be me, because I'm still the cat. My body stares at the phone for a few more seconds, before picking it up and throwing it hard against the far wall. There's a loud bang, and the phone goes dark and quiet. I realized then that there was only one solution that made any sense here, as much as it also didn't make sense, I must be in the cat's body, and therefore, the cat is also in my body. I try to shout, but all that comes out is an elongated "Mrrrooowww."

I look up at my own face as it turns to look back down at me. I see a slight smile spread, but my body says nothing. My hand reaches over to rub my head the same way I pet the kitten the night I found it. My body doesn't say anything, just stares down at me with that odd smile. That's when I notice the eyes. They look almost normal, but they're open a bit too wide, and have what I could only describe as a glassy look to them that gives off uncanny valley vibes.

A moment later, I'm swept up and carried into the kitchen, and placed down next to the kitten chow. My body awkwardly opens the cabinet door where the rest of it is stored, and throws the bag, open, onto the ground, causing it to spill across the floor. My body bends down, and using both hands as scoops, starts devouring the cat food in an animalistic manner. Normally, you don't feel hunger in dreams, but I'm feeling hungry too, and eat from the bowl that I had filled myself the night before. My body, meanwhile, ate it's fill, and slapped at the knobs on the sink until the water turned on, drank from the faucet, and left it running as it finished.

Time passed on like this. One day, two days. My body never left the house, and I was certain that if I did get my body back, I would definitely be unemployed, maybe even in debt depending on how long this lasted. The thought was passing, as I would have been happy to simply have my body back, employed or not, homeless or not. Throughout that time, my body never spoke, but the invader did get more accustomed to using it. The animal-like tendencies became more refined, but in that time it didn't reach what one would call passably human. I also wasn't permitted to go outside of the same room as my body, and any time it went into another room, it ensured that I followed, or it would snatch me up and carry me with it. At first, even if it was asleep, it would snap awake and grab me if I made my way toward an open door, as if by instinct. Then it learned that it could close doors, and with my paws, I had no way to open them back up.

I wouldn't say that most of my time spent as a cat was vivid. I don't remember everything that happened during that time, just the parts that provoked reactions out of me. Flashes of things here and there. As the time passed, my memory of it becomes hazier, and the time between those flashes gets significantly longer. The last day I remember waking up as a cat was probably the third one. There's a pounding on the front door, and a voice shouts "Police! Open up, welfare check!" One of my coworkers must have been worried and called them! If it was one of my friends, they'd have just come over, but this is good, too. Maybe they'll notice something and someone can fix this!

I'm swept up as my body carries me to the front door, half-dressed. It doesn't want me to run off when it opens the front door. Keeping me nearby has been really important to it for some reason, it goes at length to make sure I stay close. When the door opens, I realize that this is going to be my chance. When it does, I scramble in my body's arms, but I'm pinched by the scruff of my neck, and am held suspended in midair as I frantically move and swipe. The officer stares at my cat body, and gives off a chuckle looking at my struggle before turning back to my real body.

"Got a real fighter there, huh?" the police officer says with a laugh, before returning to a more professional demeanor.

"Your boss gave us a call. He's worried about you, says you suddenly stopped showing up for work?" the officer asks.

My body just smiles back at him, but makes a grunting noise. The officer waits for a reply to follow, but it never comes.

"... Well, you seem like you're uh, doing okay to me. Nothing illegal about a guy quitting his job without notice. I'll let him know you're all right and head back out. Take care now." the officer says, before turning back towards his patrol car.

I try to struggle harder to free myself from my body's grip in a last ditch attempt, but to no avail. I'd already tired myself out from my original attempts, and I'm placed down once the door is closed. A wave of depression and hopelessness hits me, and I lay down in the corner of the room and just try to sleep.

An unknown number of hours pass as I sleep, and there's another pounding at the door, but it's the back door this time. Not only that, but it's not a fast pounding like the police officer had done, but a hard, singular, rhythmic pounding. I jump as I'm snapped awake by the sound. Another sharp pound, and then a crash come from the back room. A voice shouts "Federal agent! Show yourself, and keep your hands behind your head!"

My sharp ears catch the sound of multiple people, moving throughout the house, and fast. My body jumps up and panics, it tries to scoop me up. I'm ready this time, and make it difficult. I don't know what got the feds involved, but if I can keep my body occupied until they find me, I might stand a chance. Within seconds, they're in the room. They have strange helmets, the lead guy is carrying a shotgun, four more guys pile in behind him, three armed with rifles, and the last with a handgun and a strange black box in his other hand. Three of them have their rifles pointed at my body, the man with the shotgun, for some reason, has his weapon aimed directly for me. I freeze, my body, formerly trying to catch me, freezes too.

"Get down on the ground with your hands behind your head!" Shouts one of the guys with the rifles. My body just stares at them. They can probably tell it's not armed, because it's standing there in boxers. Four of the men slowly surround it, while the shotgun guy stays fixated on me. "Don't you move, either." he says, as if he expects me to understand him. My body tries to resist as they move in close, but it's clumsy, and these guys are clearly well-trained. They restrain it without much effort. Shotgun guy stays fixated on me, and the last man opens the black case, picks me up, and tosses me inside before closing it. I can't see anything, but I hear muffled speaking from outside.

"Mobile Task Force Epsilon to Overwatch, Object SCP-13290T secured, securing human subject SCP-13290T-1. We're heading back."

An odd smell filled the box after that, and I passed out.

This morning I woke up with a migraine. I felt like I'd been sleeping for a long time, and I felt sore. I looked up at my ceiling, and looked down expecting to see a cat body, but I was my same old self. My phone's alarm was going off, I turned it off. No kitten in sight, either. I moved into my kitchen, there was no sign that I'd ever had a cat, no litterbox, cat food, or bowls. I'm confused, but I go to work.

(Continued in reply)

3 points

umount will also work, and block until all data is written. Unlike Windows, Linux is pretty good about safely unmounting things. Unless you're actively using it, like you have a terminal cd'd into it or something.

It's a celebratory day when Windows succeeds in performing "Safely Remove Device"

22 points

I've had a couple of online gaming friends die. One from suicide as reported by his cousin who I was also in contact with, and the other in a motorcycle accident. I didn't play with the former on Steam but do have his cousin on it, the latter I have on steam and look back at his profile occasionally.

Both great people taken too soon.

113 points

I've owned Software Inc since early in it's release. Just went back to the store page for it and watched the newest trailer. Man, he really has added a ton of stuff. Last time I played, I became a one-man Microsoft corporation and took over the world building operating systems as a solo dev.

1 points

For those 20 years he only took donations and gave the game away for free, too.

And continues to give away the game for free, albeit minus the paid graphics and music. I like playing Cyberpunk, and it really has improved since release, but I would've been happy with DF, Project Zomboid, or Deep Rock Galactic being in that spot all equally.

1 points

Probably to some extent? All that information does have to be processed after all, and it'll take some amount of time.

The better question is why on earth you have so many domains on one server that all need different vhosts. There has to be a better method to handle whatever you're trying to do than register 1k+ vhosts into Apache, it sounds like a management nightmare.

4 points

It's not entirely down to idiocy, there might be instances where a script doesn't account for a variable properly and could act up. For example, if you're running a script that temporarily creates files, then removes them in a later step. If the script is in / when it does this, and if a variable pointing to a relative path somewhere isn't set, it might end up running rm -rf /

Or any other reason that something might end up blank after the first slash.

9 points

Obligatory not a lawyer, but there are a couple of things here. One, the copyright office will grant a copyright status even on works that aren't eligible for copyright. Being given copyright status on a work doesn't guarantee that work to be validly copyrightable if examined by a court. This was shown recently in the infamous Stebbins/Acerthorn case, where he registered a copyright on his accidental livestream, but the court determined that the Livestream was not a work of human authorship since the camera "turned on by itself without [Stebbins] doing anything."

Though when placed into a comic, there is a potential scenario where someone could legitimately claim a copyright to the work. Another thing that can be copyrighted is compositions of works, even if the individual compositions aren't copyrightable. So if I were to take a bunch of public domain books, arrange them into my own book with a meticulously chosen order, and sell the book containing the public domain ones, that might still enable me to legitimately claim a copyright rather than force my book into public domain, because the order I placed them in, and the books I chose to include, were a work of my own creativity.

So if someone composes AI generated images into a comic, they might say that they specifically chose those images and arranged them, meaning they applied a base level of creativity in creating their comic, where a lone diffused image may not meet that criteria.

This is not legal advice, I'm not a lawyer and just some guy on Reddit speculating, seek appropriate legal counsel instead of using Reddit as a legal basis for an action.

8 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.