joshcodes

joined 2 years ago
[–] joshcodes 4 points 7 hours ago (1 children)

Listen. Strange children wading in ponds discovering swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.

[–] joshcodes 2 points 3 days ago

That's super informative, thank you.

[–] joshcodes 2 points 3 days ago

I lost the game

[–] joshcodes 24 points 1 week ago (2 children)

Steve Hughes did a pretty good bit on this - "Go play with your girly tits you Gaylord, I'm going to fuck a man."

[–] joshcodes 7 points 1 week ago (2 children)

Counter point, set the 'swappiness' lower than the default 60. I've set mine to 30 and the system boots a lot faster. You could research and consider 10-20.

[–] joshcodes 14 points 1 week ago (3 children)

I consider leaving cyber and becoming a barista on a daily basis

[–] joshcodes 4 points 1 week ago (3 children)

I feel the same way, I would lose self respect purchasing a ticket... idk it feels like someone took an important part of my childhood and decided to ruin it.

[–] joshcodes 5 points 1 week ago

100% agree, that is a "totally for fun" exercise

[–] joshcodes 13 points 1 week ago (2 children)

For added funs run an SSH tarpit to fuck with the attackers, something like endlessh.

[–] joshcodes 9 points 1 week ago

Yeah, some wordpress themes have vulnerable bits that allow attackers to inject cross site scripting attacks into the page via various methods. Some have pivoted to using wordpress plugins which is a newer method I don't entirely understand yet.

[–] joshcodes 15 points 1 week ago

Oooo I'm researching this. We call some of them click fix and others clearfake but theyre all fake captcha. Its either from vulnerable wordpress themes or plugins so update ya sites for the love of Torvalds.

They're basically a method for infostealers to get downloaded onto the device. They're kinda nasty and some lead to ransomware if youre really unlucky. The usual payload is intended to leach off an individual and steal passwords, crypto addresses, etc, but as soon as they find out you're an organisation computer, they use your machine for initial access and potential further compromise.

Most people don't run these but I've seen at least 3 people who have and tbh usually antivirus stops the 2nd stage payload. So make sure Defender antivirus is turned on, and maybe consider blocking newly registered domains using ad block if you are more tech savvy. Remind your grandparents and young siblings to never do anything with Win+R or disable it on their pc if you know how. Infostealers are nasty and having one on the family pc will hurt every member of the family.

[–] joshcodes 9 points 1 week ago (2 children)

From my limited understanding, Lincoln was somewhat committed to ending slavery but wasn't even that concerned with it, like it wasn't part of his first 100 days plan or anything. However, his election was interpreted by the south as a full on attack against their rights (to keep slaves) so they attempted to secede.

So the north gave a shit but understood the need to end slavery, they just planned to do it in like a 5-10 year plan. Meanwhile the slavers jumped the gun, shot themselves in both feet and made it the most pressing issue they could which led to the end of slavery and the damaged the economies of several states.

52
the bot strikes again (programming.dev)
submitted 1 month ago by joshcodes to c/meta
 

Transcription: picture is a screenshot of a user inbox page with a new message containing a photo of a woman with dark hair. The message reads "Hi I am Nicole but you can call me the Fediverse chick". There's more text but this is very obviously a bot attempting to get people to join a particular server.

On a side note: I can't delete this message as I get an error about dms not being available. I've blocked the bot already. Does programming.dev support dm's?

31
submitted 2 months ago* (last edited 2 months ago) by joshcodes to c/[email protected]
 

I dont post often but I struggled to find a solution to my issue so I am trying to fix that very problem by adding a resource. Hope this helps someone.

I have moved my last windows pc to Linux Mint last weekend (I had some issues writing to my other USBs and had it lying around, technically I set out to try Fedora Silverblue but that may come later down the road now). I keep all my games and important files on secondary hdds and ssds in my machine as I've had data loss many times before from moving machines go Linux.

All went well, installation worked, but when I installed Steam, nothing showed up in the 'storage' page of the settings menu. "Hmm, it's probably a permission issue" I thought, if it cant see the drives it's not allowed to. Command used to debug this was:

ls -ld /media/gamedrive1 /media/gamedrive2

which showed root had read, write and execute access but I had read access.

So next I had to change /etc/fstab and make sure my drives were mounted correctly (using ntfs-3g driver instead of ntfs on one drive, and adding my users name as the owner and group owner).

This took me a minute to get right because it relies on the uuid of the drive, not the /dev/sdX identifier (I've been informed you can also use the /dev/disks/by-id/. It was super easy to do this through the gnome-disks utility, so I didn't need to keep editing the fstab file with nano and could see partition names.

I then I had drives visible in the 'Storage' settings in Steam (I did also switch from the downloaded deb file from steams website to the apt installation but I dont think I needed to).

I try to run a game, forget proton exists, retry to run the game with compatibility mode on, then get a 'Disk Write Error' for my /media/JoshCodes/gamedrive1/SteamLibrary/steamapps/downloading/random/file.

Super weird I think, but it's probably a cache issue, some dumb file from my windows machine that didn't get permission-ed properly for some reason - idk it was 10pm. I clear my cache, reset steam entirely, manually remove the files, nothing works. On a fluke, a troubleshooting step led me to a solution by way of it not working: I tried to create a symlink between the downloads folder on the main drive and the drive I had the game library installed on. The recommendation was to use:

ls -s /opt/steam/downloading /path/to/steamlibrary/downloading

Can't remember the error but it was something like "symlinks are not able to be created as they are not compatible with this file system". Oh dammit. This drive is on a filesystem that is incompatible (exFAT) with my other file systems for some reason. Someone smarter than me clarified that Steam and video games in general rely on symlinks, which are not supported on exFAT file systems, but will work on Windows for reasons I won't get in to.

Unfortunately I did have to move everything from my exFAT drive to a 3rd drive, reformat (just used ext4 as its native linux) and put all my files back on. At this point it was like 1am but I could open Civ V and Rocket League! Huzzah, crashed and went to bed. That's the first time I've really stuck with a problem that I wasn't familiar with, learned a shitload about mounting drives and just thought it through. A little help from the internet at the end but good outcome.

I hope that helps someone else!

Edit: Added commands and fixed formatting. Changed title as it was not correct as pointed out (Sorry, that's the first thing I typed and forgot to check that before posting). Added some info stolen from the comments on why symlinks don't work.

17
Anyone hosting OpenCTI (self.selfhosted)
 

I'm about to start hosting an OpenCTI instance for work and was looking for advice on pretty much everything. I'm new to self hosting and was wondering if anyone had any advice or helpful guides (storage space, config tips, etc).

I'm looking to set up an OCTI server as a docker container behind nginx. I'd love to practice at home so this is sort of relevant to the community. Have you done this, what did you learn, do you have any things I should watch out for?

 

So I've been running Windows on my gaming system and Linux on my laptop for Uni for a while. I chose this to discourage working instead of relaxing, or gaming instead of working. However, I am finding that I often get the opportunity to work from home and I find it easier to just use my laptop on the go (I have a dual monitor setup + kvm switch so its a little annoying to have to come home and run 3 cables just for some extra screen realestate).

I want them to run the same OS so I can use the same tools and workflow. I use Ubuntu 23.04 on my laptop, W11 on my PC. I have nvidia GPU's in both (1660 Super Desktop and 3050 Laptop), so installing and maintaining drivers would ideally be easy. I would use Ubuntu but I plan to move away from it since they're moving away from .debs. Any recommendations? I am looking for stability, but something I can game on. I've never had a linux gaming pc so I don't know how much that changes things. I don't want to do much tinkering, I am more of a set an forget type.

I generally prefer Gnome, XFCE, KDE, Cinnamon, Mate in that order. I looked it up and a lot of the games I play are Proton DB Gold or up. The only game with an anticheat that I play is the MCC and I'll just disable the anticheat if its an issue.

248
Car no do that Rule (programming.dev)
 
view more: next ›