So today Quora decided to give me a thread on "what is the most dangerous code you have seen?" Honestly, I expected code that kills - code that makes machines crash and burn, code that makes planes fly into space, code that accidentally fires nuclear weapons, code that makes your toaster a torturing monster, burning your every inch of skin whenever it likes...etc. Indeed, there are a bunch of replies there, including most of the things I mentioned above - _almost_ wrongly firing nuclear weapons, dangerous code that _almost_ kill pilots, code that makes programmable robots do things unusually, code that sneaks so well that you never know you get infected (Stuxnet, if you are interested in it. The [Wikipedia article](https://en.wikipedia.org/wiki/Stuxnet) is worth a read), etc. No, there is still no code that makes your toaster a monster. At least for now. I hope that it won't happen too. But, there's a reply that caught my attention. It's just a tiny reply, mentioning... "**Nvidia graphics driver for Linux that killed the system**" Great, that's something I'm looking for. ---  First sight: Wow. Then: Okay let's see where went wrong. Later: \*cried while laughing on the floor for 5 minutes*  Alright, if you don't catch this, let me do some explanation. 1. `rm` is a command used to delete things. 2. `-rf` tells the deletion command that it should delete everything in that folder, including folders in it. Besides that, it should forcefully delete everything - leave nothing behind. 3. `/usr/lib/nvidia-current/xorg/xorg` is the place where the graphics driver lives. Basically, deleting this equals to uninstalling the driver. Sounds nothing wrong till now. But, there was a space between /usr and /lib/... That would mean...deleting the entire /usr folder instead of the driver folder. If you are a Windows person, then here's some extra information - the name of the folder (usr) means "user usable programs and data" or "user system resources". Deleting this somehow equals to deleting a huge part of C:\Windows\system32 and C:\Program Files, C:\Users, etc. In short, it breaks your system. All by having an extra space in that single command. That one character killed a bunch of PCs before the developer realise how big a mess he caused. The commit went viral and tons of memes regarding it came out...wow. I never knew that a GitHub commit could go viral and be remembered to this day. It's still the commit with the most amount of comments on GitHub today. It is indeed the simplest and the deadliest bug we can find in history. Probably nothing else can surpass it in the long future. To developers, always test your code. You know, if you do not dare to test it...then something should be wrong. Believe your instincts. Plus, don't write code when you are tired, there are also a big bunch of tragics (probably comedies) caused by writing code late at night... <center></center> Source: [One of the issue pages on that repo](https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123) And this. <center></center> Source: [The commit link on GitHub here](https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac#diff-3fbb47e318cd8802bd325e7da9aaabe8) :) If you have the time, go and scroll the commit thread (link right above). It's full of laughter instead of rage...and embrace the memes. Even if you read it before, it is still some nice stuff to brighten up your day. Have fun, --Lilacse
author | lilacse |
---|---|
permlink | the-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history |
category | programming |
json_metadata | {"tags":["programming","linux","technology","blog","teammalaysia"],"image":["https://steemitimages.com/DQmQ7vfXQd8yFh9NKvVEmsxBBoPftsQ8Z1QPeY8dv4SwXQW/image.png","https://steemitimages.com/DQmQHnT3G567re2NPm8MohZYJtsKdE17P3V6ZGHaWk9CNRn/image.png","https://steemitimages.com/DQmVw9bcCX3sTepHRNJswY4LVaTWrM5zK9gmjmXrRfy3Lx8/image.png","https://steemitimages.com/DQmb6x4tUdEEhHh44AFFSnoeoGD29kSHKuUo8ETgFbN4s65/image.png"],"links":["https://en.wikipedia.org/wiki/Stuxnet","https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123","https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac#diff-3fbb47e318cd8802bd325e7da9aaabe8"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-05-14 16:18:36 |
last_update | 2018-05-14 16:18:36 |
depth | 0 |
children | 3 |
last_payout | 2018-05-21 16:18:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.157 HBD |
curator_payout_value | 0.600 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,867 |
author_reputation | 19,250,085,524,596 |
root_title | "The simplest yet the most hilarious and the most destructive bug ever in history?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,665,331 |
net_rshares | 558,857,109,614 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pharesim | 0 | 82,297,005,208 | 0.02% | ||
kevinwong | 0 | 77,053,407,720 | 0.75% | ||
anwenbaumeister | 0 | 12,347,257,948 | 0.12% | ||
raymondspeaks | 0 | 124,749,110 | 0.06% | ||
liberosist | 0 | 2,736,527,312 | 0.13% | ||
arconite | 0 | 301,632,244 | 0.37% | ||
ninjace | 0 | 4,361,289,584 | 50% | ||
meerkat | 0 | 20,175,068,963 | 0.13% | ||
curie | 0 | 20,510,776,982 | 0.12% | ||
poeticammo | 0 | 1,402,935,181 | 6.17% | ||
hendrikdegrote | 0 | 261,186,229,655 | 0.12% | ||
vact | 0 | 2,445,599,317 | 0.12% | ||
dashfit | 0 | 114,456,221 | 0.06% | ||
boynashruddin | 0 | 236,009,378 | 5% | ||
xanadu | 0 | 90,387,602 | 6.17% | ||
pacokam8 | 0 | 85,466,264 | 0.03% | ||
thatsweeneyguy | 0 | 71,600,713 | 0.06% | ||
vaelriey | 0 | 1,819,591,191 | 12.34% | ||
bitrocker2020 | 0 | 3,030,481,703 | 5% | ||
locikll | 0 | 212,187,967 | 0.24% | ||
aboutyourbiz | 0 | 105,723,154 | 0.12% | ||
howtostartablog | 0 | 4,067,318,425 | 3.7% | ||
ghostgtr | 0 | 108,529,198 | 0.01% | ||
tngflx | 0 | 292,117,103 | 0.61% | ||
coloringiship | 0 | 539,409,420 | 1.23% | ||
thinknzombie | 0 | 1,346,438,100 | 0.06% | ||
dayramsazahara | 0 | 57,578,614 | 12.34% | ||
nitego | 0 | 86,822,993 | 0.03% | ||
opheliapoe | 0 | 389,556,582 | 10% | ||
indy8phish | 0 | 71,221,103 | 0.06% | ||
revo | 0 | 62,974,396 | 0.06% | ||
massivevibration | 0 | 3,537,625,231 | 5% | ||
onartbali | 0 | 431,845,365 | 5% | ||
clweeks | 0 | 60,648,790 | 0.04% | ||
teammalaysia | 0 | 685,525,382 | 12.34% | ||
davidke20 | 0 | 1,510,481,257 | 10% | ||
deeplearning | 0 | 268,917,695 | 100% | ||
rakkasan84 | 0 | 61,045,842 | 0.06% | ||
johnquake | 0 | 222,957,142 | 0.06% | ||
mayowadavid | 0 | 74,135,849 | 0.06% | ||
emdesan | 0 | 392,909,610 | 10% | ||
happychild | 0 | 216,381,529 | 0.06% | ||
peaceandwar | 0 | 162,259,722 | 0.06% | ||
bobdos | 0 | 4,176,202,703 | 10% | ||
notimetospace | 0 | 886,218,232 | 6.17% | ||
myach | 0 | 6,067,075,911 | 6.17% | ||
branlee87 | 0 | 105,238,392 | 1.23% | ||
dranren | 0 | 2,041,673,549 | 100% | ||
afifa | 0 | 1,693,091,667 | 15% | ||
hadebaryor | 0 | 710,661,405 | 12.34% | ||
geekpowered | 0 | 21,698,031,352 | 84% | ||
diamondray | 0 | 1,702,058,119 | 2.46% | ||
dronie | 0 | 112,343,227 | 12.34% | ||
gordon92 | 0 | 860,224,804 | 12.34% | ||
stahlberg | 0 | 440,065,757 | 1.23% | ||
iamjadeline | 0 | 304,404,249 | 2.46% | ||
siren87 | 0 | 257,445,238 | 12.34% | ||
wanderingdanish | 0 | 205,780,697 | 1% | ||
crypto3d | 0 | 60,324,941 | 5% | ||
polohyung | 0 | 57,996,713 | 12.34% | ||
superoo7 | 0 | 4,299,343,577 | 22% | ||
widiaendah | 0 | 55,235,949 | 12.34% | ||
jerrywjl | 0 | 55,186,913 | 12.34% | ||
khimgoh | 0 | 3,044,815,682 | 8% | ||
wdoutjah | 0 | 51,315,234 | 0.06% | ||
sahiranadiah | 0 | 73,264,923 | 12.34% | ||
nycex | 0 | 543,131,858 | 100% | ||
positiveninja | 0 | 188,551,592 | 0.06% | ||
khaimi | 0 | 70,324,198 | 12.34% | ||
kymio | 0 | 468,234,375 | 6.17% | ||
patlu | 0 | 85,857,650 | 2.46% | ||
irmeyhamidi | 0 | 54,184,059 | 6.17% | ||
chillingotter | 0 | 76,904,882 | 0.06% | ||
mrsaladd | 0 | 65,530,131 | 10% | ||
liewsc | 0 | 99,317,160 | 3.7% | ||
kennethtks | 0 | 218,537,099 | 12.34% | ||
silviagoh | 0 | 169,307,292 | 6.17% | ||
superoo7-dev | 0 | 224,203,294 | 12.34% | ||
quochuy | 0 | 97,539,640 | 0.06% | ||
eyonlapar | 0 | 87,840,499 | 12.34% | ||
asherlee | 0 | 210,978,788 | 6.17% | ||
zaraa15 | 0 | 64,101,021 | 12.34% | ||
johnsonlai | 0 | 435,396,315 | 100% | ||
niouton | 0 | 129,348,256 | 0.02% | ||
saarah | 0 | 51,892,286 | 20% | ||
megustaofficial | 0 | 67,273,885 | 12.34% | ||
loveisgood | 0 | 54,945,817 | 12.34% | ||
kchitrah | 0 | 85,789,329 | 6.17% | ||
engmi | 0 | 85,053,149 | 0.06% | ||
steem.curator | 0 | 702,922,631 | 1% | ||
kennycleod | 0 | 67,219,965 | 12.34% | ||
hansmast | 0 | 81,624,381 | 0.06% | ||
fahimstudio | 0 | 58,018,063 | 12.34% |
`sudo rm -rf /` still the classic Question: does `rm -rf` work on window's powershell? I've using UNIX for a while din know about it.
author | superoo7 |
---|---|
permlink | re-lilacse-the-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history-20180514t175704175z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-14 17:56:45 |
last_update | 2018-05-14 17:56:45 |
depth | 1 |
children | 1 |
last_payout | 2018-05-21 17:56:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.027 HBD |
curator_payout_value | 0.006 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 134 |
author_reputation | 27,763,618,634,121 |
root_title | "The simplest yet the most hilarious and the most destructive bug ever in history?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,680,468 |
net_rshares | 6,890,508,376 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lilacse | 0 | 6,890,508,376 | 100% |
Yea...someone did said that the bug is already shown its mercy by not doing `rm -rf / usr/lib/nvidia-current/xorg/xorg`😂😂  Apparently...no. :P but `rm -r` did work.
author | lilacse |
---|---|
permlink | re-superoo7-re-lilacse-the-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history-20180515t013418635z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1","image":["https://steemitimages.com/DQmYEtYx5foDnf2U7jq8FgvTVJi5g88jJcCf14otuCpHhUD/image.png"]} |
created | 2018-05-15 01:34:24 |
last_update | 2018-05-15 01:36:03 |
depth | 2 |
children | 0 |
last_payout | 2018-05-22 01:34:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 254 |
author_reputation | 19,250,085,524,596 |
root_title | "The simplest yet the most hilarious and the most destructive bug ever in history?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,736,579 |
net_rshares | 0 |
#### You've been upvoted by **TeamMalaysia** Community :- To support the growth of TeamMalaysia Follow our upvotes by using **steemauto.com** and follow trail of @myach Vote **TeamMalaysia** witness bitrocker2020 using this link <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=bitrocker2020&approve=true">vote for witness</a>
author | teammalaysia |
---|---|
permlink | the-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history |
category | programming |
json_metadata | {"tags":["teammalaysiadevtest","teammalaysia"],"app":"stephard/0.1"} |
created | 2018-05-16 00:27:15 |
last_update | 2018-05-16 00:27:15 |
depth | 1 |
children | 0 |
last_payout | 2018-05-23 00:27:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 351 |
author_reputation | 197,980,348,668 |
root_title | "The simplest yet the most hilarious and the most destructive bug ever in history?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,912,822 |
net_rshares | 0 |