[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 / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Shitty Shellscripts Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

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

Thread replies: 17
Thread images: 2
File: somescripting.png (110 KB, 910x711) Image search: [Google]
somescripting.png
110 KB, 910x711
I'll start
>>
File: shitscript.png (3 KB, 722x196) Image search: [Google]
shitscript.png
3 KB, 722x196
fuck a umask
>>
>>53834760
Fuck is with that font rendering? Fuck editor is that?
>>
>>53835034
That's Gedit
>>
>>53834760
This is neat and all, but did you know about md5sum -c ?
>>
>>53834760
How do you ensure people don't update the hash after changing the file... KEK fail! No wonder this is shitty shellscripts, ZOZZLE my nozzle
>>
>>53835843
Well, that's point, isn't it.
>>


echo "enter 4chan url:"
read url
echo "specify file type:"
read filetype
echo "what board is it?"
read blet


curl -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 safari/534.30" -s $url -o website 2>/dev/null

tr ' ' '\n' <website | grep $filetype | sed s/"href="//g | sed s/"src"//g | sed s/"title"//g| sed s/"target"//g | sed s/"="//g | sed s/"_blank"//g | tr -d '"' | tr -d '//' | tr -d '>' | sed '/<a/d' | sed 's,org'$blet',\org/'$blet'/,g' | sed -e 's/^/http:\/\//' | sed '/s.jpg/d' | grep i.4cdn.org | uniq | sed '/webm/d' > dankmeme


wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 safari/534.30" -qi dankmeme -P /Users/poop/desktop/foto

>>
>>53835843
>zozzle my nozzle
>>
>>53835862
I think that went over your head. Its exactly not the point. Read what I said again m8
>>
hey someone say my script is cool its the one right here

>>53836036
>>
>>53836161
What does it do?
>>
>>53836176
it downloads da stuff (u must specify da filetype aka png or jpeg or webm) from a 4chan thred
>>
>>53836205
seems pretty pointless brah
>>
>>53836237
:(
>>
>nano
though maybe that's precisely why its shitty
>>
>>53836450
have fun pressing like a million keys to start writing a document in vi you fucking autist
Thread replies: 17
Thread images: 2

banner
banner
[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 / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.