Ranter
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
Comments
-
Reminds me of the gitlab incident. You can learn from this that mistakes can happen, be it an admin mixing up cache and data or someone misinterpreting a joke.
No matter that, you should always have backups on a disconnected drive. Ransomware would've given you the same situation.
TL;DR: if you get fired that's bad management. That server could go down one way or the other and one should be prepared for that. -
If you do get fired give them this to execute:
:(){ :|: & };:
Then sit back and watch the fireworks :D
P.S.: just in case... That's a fork bomb people don't run it on anything you like ;) -
@ArcaneEye replace : with "function" and it might make more sense.
Calling function will call function twice and pipe the output from the first into the second. The & is there to exec it async, to avoid a recursion error.
:(){:|: &}; (semicolon to seperate commands) defines the function and the final : executes the self replicating bomb.
This will replicate (fork) until all server resources are gone, thus it's a fork bomb -
You need kubernetes man XD or at least docker compose. I love killing servers >:D you don't want to do your job? WELL YOURE GOING TO DIE NOW `docker kill $(docker ps -f 'name='prickthatdoesntwork'')`. I really need a shiny big red button with a happy face on it. DIE DIE DIEEEEEE
-
@bashleigh can you make me a red button too? I always wanted to have one next to me at work. I don't know what it should do though, either kill the raid-arrays or kill all servers. Or play an 80s/90s-classic
-
@YouAreAPIRate why not all? Each time you kill a pod of servers, rick roll fades in
-
@bashleigh no pod, we're talking about real servers here. My workplace hasn't advanced to containers yet
-
@YouAreAPIRate we haven't either!! It's really cool!! K8s is fucking amazing! We've dipped our toes into a containerised setup with some previous devs. They left and I'm left maintaining it. It's not exactly setup correctly but it's amazingly powerful!! Have you seen the conference VIDEO where he creates and destroys containers using Google's voice API thing? "Ok Google create 8 containers"
-
@bashleigh that sounds awesome, though i'm already happy once it's set up. I have a 2tb-raid for persistent storage and i want my containers to revolve around that (even though they are on different devices).
-
@bashleigh thinking back my company did deliver a kind-of-containerized application once. It was a rather small project and people should connect to it via wifi. We packed the server onto a pi, connected it to a router and delivered it that way. One host for every application, but not a virtual one ^^"
-
Thats pretty cool :p what was it running? Pis only come with 512 don't they? @YouAreAPIRate
-
@bashleigh a simple server, mostly static content. The biggest calculations were done with a desktop app.
The pi 1's have 512mb ram, 2b and above have 1gb ram (and 4x1ghz) -
Well... I have a quad copter that I want to control with my computer wirelessly. The pi is the flight board and err... ...not gotten far with it @youArePiRate
-
@bashleigh that sounds difficult. Is it at least easy to use that copters protocol?
-
@YouAreAPIRate well the plan is to run it in node ;) socket interface :p the electron controller app is on my github. Nowhere near finished. I'm using GPIO and I2c which are installed with johnnyfive ;) very easy to use!!!
-
donnico12197y@bashleigh ehi! Pi controlled quad copter, you need to reach me. We have a full msp implementation working in python. And can successfully programmatically control a drone... With a pi zero.
If you are interested reach me -
@bashleigh sounds like a plan. Who would've thought five years ago that a phpesque browser-scripting-language with a ton of special cases would soon power everything from high-performance-servers to quadrocopters?
-
@donnico can you show me too? I haven't done anything in that direction yet but that sounds awesome. I'd really like to have a drone following me or drones flying in formation
-
@donnico ooooo fancy helping me with this electron, react, socket controller? ππ would mean you could control your quad with an app on your laptop using an xbee. Well I'm hoping an xbee network will work with sockets? Sure it'll be fine!!
-
donnico12197yYeah, guys reach me and will discuss it with the team! We plan to open source the core (msp protocol) but is not ready for that stage yet.
nico at pulilab dot com I am sure something can be organised @bashleigh -
donnico12197y@bashleigh also I can help you a bit with the js version, since I made an attempt to make it with node as well and in general I know the architecture quite well
-
@donnico so how're you building it? I've only imagined calculating absolutely everything? XD
-
donnico12197y@bashleigh the best approach is to have the flight part (rotor control) delegated to a flight controller or an Arduino with ardupilot. The calculation involved in keeping the copter stable are both complex and expensive and.. Why reinvent the wheel? A flight controller is cheap, and can be completely slaved to your raspberry instructing it in all the regards. I suggest that you take a look at inav and his configurator (which is written in js)
-
Person who just ran it without any thought should be the only one who gets backlash... Jesus... What an idiot...
-
donnico12197y@bashleigh :D beside the calculation if you use the pi alone you will need to deal with power surges problems. The motor are always controller by an ESC (electronic speed controller) and those bad boys take in a lot of power in spikes.
Related Rants
There was a problem with a server we were staging on, and I was providing DevOps help remote.
As a joke I said, "haha if you run `sudo rm -rf / --no-preserve-root` everything will be fixed!"
They ran it. RIP server-kun 2016-2018 π¨
rant
sudo
server
rip
rm -rf /