JavaFX on Linux!
Yeah. No more workarounds. Download now JavaFX 1.2 for Windows, MacOS X, Linux and OpenSolaris! \o/ There’s also a lots of improvements in the language and the API. For details on that read this...
View ArticleThe Fork Bomb Tattoo
I thought about these two problems my entire life. Graphical arts have a significant role in everything I do. I always expressed my feelings thorough graphical drawings. First on paper, so notebooks,...
View ArticleTwitter Bot @rudaufc versão 1
Este aqui é um bot bem simples para Twitter. Diariamente, as nove da manhã ele posta qual vai ser o cardápio do RU (Restaurante Universitário) da UFC naquele dia. Assim, quando vai batendo a hora da...
View ArticleCongelando e Ressuscitando Processos
Nem só de morte vive o kill. Suponha que você tem um processo chamado program e quer congelar seu funcionamento. Para congela-lo sem mata-lo você pode mandar um sinal SIGSTOP com: kill -s stop `pidof...
View ArticleMiojo Script
O pre-requisito é o notify-send, um utilitário de linha de comando do libnotify. No Ubuntu: sudo aptitude install libnotify-bin E aqui o script em si: sleep 5m; notify-send "aviso" "tirar o miojo do...
View ArticleDIY recycle your old tv
When I came here to this room I found this old big tv laying around. Old but perfectly functional. First I put a tv cable on it with hundreds of channels but after one month I realized that mostly of...
View Articleprinting only odd or even lines using sed
$ cat AtoF A B C D E F Print only odd lines sed -n 'p;n' AtoF A C E -n suppress automatic printing of pattern space, p print the current pattern space, n read/append the next line of input into the...
View Articleif host pings execute command
#!/bin/sh HOST="silveiraneto.net" if ping -c 1 $HOST > /dev/null then echo your command fi replace silveiraneto.net for your desired hostname or ip ping sends only one package (-c 1) and ignores the...
View Articlefind a process running a deleted library
sudo find /proc -maxdepth 2 -name maps -exec grep -HE ‘\(deleted\)’ {} \; | cut -d/ -f3 | sort -u | xargs –no-run-if-empty ps Looking for libssl in specific: sudo find /proc -maxdepth 2 -name maps...
View Articleendless tail in a file
tail -n 50 -f your.log –folow or -f FILE to output appended data as the file grows –lines or -n K output the last K lines of the file Alternatively, you can also use watch.
View ArticleBash Brace Expansion
$ echo {0..9} 0 1 2 3 4 5 6 7 8 9 $ echo b{a,e,i,o,u} ba be bi bo bu $ echo x{0..9}y x0y x1y x2y x3y x4y x5y x6y x7y x8y x9y $ echo {a..z} a b c d e f g h i j k l m n o p q r s t u v w x y z $ echo...
View Article
More Pages to Explore .....