18
Sep
Written by: ame235

I Love the net, because i can always Google something when i need information about it.
Sometimes i get lazy and totally copy works.. but i never forget to give credits to authors.
(Unless i mod everything) and You should do the same.
Today i activated a plugin named “Plugins List” For WordPress.
(in About section) It gives the [...]

Comments Off

This one returns a random article from Wikipedia FR.
It has some bugs, because of html chars and simplicity…
but at least it’s fast and reliable.

user@computer:$ curl -s “http://fr.wikipedia.org/w/index.php?title=`curl -s -L “http://fr.wikipedia.org/wiki/Sp%C3%A9cial:Page_au_hasard” | grep “<title>” | sed -e :a -e ’s/<[^>]*>//g;/</N;//ba’ | sed ’s/ – Wikipédia//g’ | sed -e ’s/^[ \t]*//’ | sed ’s/ /_/g’`&printable=yes” | grep [...]

Comments Off
16
Sep
Written by: ame235

This is used to get the size of a folder:

user@computer:$ echo “xxxFolder size: “`du -hs /xxxFolder/ | awk ‘{print $1}’´

Comments Off