|
LoonShia posted:What does it do? Complain about a syntax error because of the capitalisation, and that he's used square brackets to create a list. Fixed and rendered more readably this would be: code:
/bin/bash -c '...' means run the commands in the quoted text in a subshell. The nohup before it means that you don't close the program when you close your terminal. The & at the end means run it in the background, which isn't strictly necessary, it just means you can use your terminal for something else in the mean-time. words=( ... ) means create an array containing that data, which is later used to look up a random entry. [ 1 = 1 ] is a stupid way of defining a command that does nothing except exit successfully, which you could replace with the word true. You need a command that always exits successfully so that you can do an infinite loop, which is what the while [ 1 = 1 ]; do ... done does. "${WORDS[$( $(( RANDOM % ${#WORDS[@]} )) )]}" is a real pain to break down, I'll go inside out. ${#WORDS[@]} means get the length of the words array. You use ${WORDS[@]} to get the whole array, and put a # before the array name to say that you want the length instead. I took some liberties in the translation. Next up is the $(( RANDOM % array_length )), which was literally $[ RANDOM % array_length ] in the example, but it's recommended to use $(( )) instead of $[ ] these days. What it does is to get a random number, by way of the magic $RANDOM variable, then use modulo arithmetic (%, think of it like the remainder after division) to get a random number in the range 0..(array_length -1) This is used to get a random entry from the array by way of the subscript operator again. You previously saw ${WORDS[@]}, which gets you the whole array, but instead of the @ symbol, you can put a number, which gives you that entry in the array, starting from 0. The random sentence is passed to the say command, which I assume speaks the words out. -v whisper presumably makes it speak it out as a whisper, and -R 1.5 makes it slow the speech down by a factor of 1.5. The sleep 30 command makes it wait for 30 seconds before continuing. The result being it speaks out a creepy phrase on your speakers every 30 seconds. I'd expect that an Apple Genius wouldn't understand it, probably attempting to turn it off and on again, which would fix this, because they haven't put the command somewhere that would make it be run on start-up. If they did think to see what commands are running, I doubt they would be able to decipher exactly what's going on, since to decipher that shell script you need to be a Unix beard.
|
# ? Mar 15, 2015 19:40 |
|
|
# ? Jun 11, 2024 14:12 |
|
Um.
|
# ? Mar 15, 2015 19:46 |
|
This poo poo's part of my job, and someone did ask.
|
# ? Mar 15, 2015 19:57 |
|
Edison was a dick posted:This poo poo's part of my job, and someone did ask. But can you make it funny?
|
# ? Mar 15, 2015 20:11 |
|
SatansBestBuddy posted:But can you make it funny? Being unfunny is a meme
|
# ? Mar 15, 2015 20:16 |
|
Thump! posted:Being unfunny is a meme It might be a meme to you, buddy, but it's life to me.
|
# ? Mar 15, 2015 20:25 |
|
Memes are life embrace nothingness
|
# ? Mar 15, 2015 20:34 |
|
|
# ? Mar 15, 2015 20:38 |
|
|
# ? Mar 15, 2015 20:45 |
|
SatansBestBuddy posted:But can you make it funny? He does this for a living. Isn't that funny to you? Hahahahahakill me e: he's also dumb its -r not -R killmekillmekillme e2: vvvvvv this guy gets it. Karate Bastard has a new favorite as of 22:29 on Mar 15, 2015 |
# ? Mar 15, 2015 21:06 |
Karate Bastard posted:He does this for a living. Isn't that funny to you? Hahahahahakill me
|
|
# ? Mar 15, 2015 21:37 |
|
Wow Rodney Dangerfield got fat towards the end.
|
# ? Mar 16, 2015 03:04 |
|
these are pretty good. guy takes urban kids on nature hikes and writes down what they say: http://www.dumpaday.com/random-pictures/funny-pictures/guy-writes-down-things-urban-kids-said-when-he-takes-them-on-a-nature-hike-18-pics/
|
# ? Mar 16, 2015 03:50 |
|
|
# ? Mar 16, 2015 03:59 |
|
I'm a programmer and even I don't care about reading all this poo poo you posted.
|
# ? Mar 16, 2015 04:18 |
|
Blind Sally posted:these are pretty good. guy takes urban kids on nature hikes and writes down what they say: http://www.dumpaday.com/random-pictures/funny-pictures/guy-writes-down-things-urban-kids-said-when-he-takes-them-on-a-nature-hike-18-pics/ Gonna be that guy and point out that these are fake.
|
# ? Mar 16, 2015 05:08 |
|
Edison was a dick posted:I'd expect that an Apple Genius wouldn't understand it, probably attempting to turn it off and on again, which would fix this, because they haven't put the command somewhere that would make it be run on start-up. So how would you make it run on start-up, smart guy?
|
# ? Mar 16, 2015 05:09 |
|
Everything Counts posted:Gonna be that guy and point out that these are fake. Well yea I dont think you can really take pictures of sounds and white letters dont really just appear of nowhere. They're likely shopped in my opinion.
|
# ? Mar 16, 2015 05:21 |
|
Everything Counts posted:Gonna be that guy and point out that these are fake. sheeeit. well, i'd rather know. thanks.
|
# ? Mar 16, 2015 05:40 |
|
Karate Bastard posted:Double penetration poop hole
|
# ? Mar 16, 2015 07:05 |
|
Dreidels, Penetrating Pussies? HARAAM!
|
# ? Mar 16, 2015 07:14 |
|
|
# ? Mar 16, 2015 08:07 |
|
Kanfy posted:Calling human genitalia funny names is a pretty ancient and beloved tradition and I suspect you might be reading too much into this. I will do my bit for equality by making up some equally unappetizing words for male genitalia: Blood Baloon Cumspout Elephantiasis Clit Piss-liver E: gently caress tendril AtomD has a new favorite as of 10:28 on Mar 16, 2015 |
# ? Mar 16, 2015 08:25 |
|
Nasty
|
# ? Mar 16, 2015 08:28 |
|
Bloody Hedgehog posted:Dreidels, Penetrating Pussies? HARAAM! Kosher though!
|
# ? Mar 16, 2015 09:04 |
|
AtomD posted:I will do my bit for equality by making up some equally unappetizing words for male genitalia: If I were gay, I would call mine "The Widowmaker"
|
# ? Mar 16, 2015 09:04 |
|
rydiafan posted:So how would you make it run on start-up, smart guy? I'm not an OSX hipster, the most I know is you register it with launchd, probably putting a file in ~/Library/LaunchAgents, in launchd.plist format.
|
# ? Mar 16, 2015 09:17 |
|
AtomD posted:I will do my bit for equality by making up some equally unappetizing words for male genitalia: Clam Hammer
|
# ? Mar 16, 2015 09:50 |
|
Everything Counts posted:Gonna be that guy and point out that these are fake. Unbelievable. How many people were fooled by these fake memes? How many lives have been ruined? Meme forgery should be a criminal offence, imo. We can stop fake memes together.
|
# ? Mar 16, 2015 12:02 |
|
Paladinus posted:How many people were fooled by these fake memes? I can take this one: a lot of them, as long as they were racist and/or had zero exposure to black people
|
# ? Mar 16, 2015 17:44 |
Black kids totally say "mista" you guys.
|
|
# ? Mar 16, 2015 18:12 |
|
Data Graham posted:Black kids totally say "mista" you guys. They read like Stephen King trying to write a black character. lawdy lawdy
|
# ? Mar 16, 2015 18:36 |
|
Blind Sally posted:these are pretty good. guy takes urban kids on nature hikes and writes down what they say: http://www.dumpaday.com/random-pictures/funny-pictures/guy-writes-down-things-urban-kids-said-when-he-takes-them-on-a-nature-hike-18-pics/ this is so obviously written by some white dork
|
# ? Mar 16, 2015 18:48 |
|
Zzulu posted:this is so obviously written by some white Fixed that for you.
|
# ? Mar 16, 2015 20:20 |
|
Son of Thunderbeast posted:They read like Stephen King trying to write a black character. lawdy lawdy No because there's no reference in the gifs to the urban kids having special powers that saved the adult white guy from a supernatural evil lurking in the forest.
|
# ? Mar 16, 2015 21:38 |
|
Karma Monkey posted:No because there's no reference in the gifs to the urban kids having special powers that saved the adult white guy from a supernatural evil lurking in the forest. Or pre-teen gangbangs. Mr. King, Chris Hanson would like a word or two with you about "IT".
|
# ? Mar 16, 2015 21:53 |
|
Paladinus posted:Unbelievable. How many people were fooled by these fake memes? How many lives have been ruined?
|
# ? Mar 16, 2015 22:32 |
|
|
# ? Mar 16, 2015 23:40 |
|
|
# ? Mar 17, 2015 01:22 |
|
|
# ? Jun 11, 2024 14:12 |
|
|
# ? Mar 17, 2015 03:57 |