Quantcast
Channel: silveira neto » Linux
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

The 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 Article

Image may be NSFW.
Clik here to view.

Twitter 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 Article

Image may be NSFW.
Clik here to view.

Congelando 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 Article

Image may be NSFW.
Clik here to view.

Miojo 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 Article


Image may be NSFW.
Clik here to view.

DIY 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 Article

printing 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 Article

if 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 Article


find 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 Article


endless 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 Article

Image may be NSFW.
Clik here to view.

Bash 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
Browsing all 11 articles
Browse latest View live




Latest Images