Nov 9 2009

Highlighting “@all” in XChat2

Éverton Arruda

For some time i tried to highlight the “@all” string in XChat2[0], an IRC client, but when the XChat2 highlight feature reads the “all” word, it highlights all messages, in all channels.

Fortunately, i found a python script that highlights defined strings, and it works great for me. The script name is hilight-phrase, you can find it at ctrl+d blog[1].

[0] http://xchat.org/
[1] http://www.control-d.com/?p=81

:wq


Sep 25 2009

Downloading files from Rapidshare through shell

Éverton Arruda

I’ve seen, at Viva o Linux (http://www.vivaolinux.com.br, in portuguese), a post talking about a ShellScript that downloads files from RapidShare through shell. As, sometimes, i download files from that site,  i decided to try it out and it worked fine for me.

This script uses wget to download the first html page, then it gets the link to the page that contains the link to the file, download this second page, checks the timer and waits for it to finish, after it finishes, the script starts the file download. I noticed that, if the download stops, this script continues from where it stopped.

This is how it goes:

1 – Download the ShellScript:

1
$ wget http://tokland.googlecode.com/svn/trunk/rapidshare/rapidshare-dl.sh

2 – Set execution permission:

1
$ chmod +x rapidshare-dl.sh

3 – Download File:
There are two ways you can do this:
Passing the link as an argument:

1
$ ./rapidshare-dl.sh http://link.to.rapidshare

You can also add more than one link:

1
$ ./rapidshare-dl.sh http://link.to.rapidshare http://another.link.to.rapidshare

Passing a text file as an argument:
Create a text file, named links.txt for example, and put each link in a different line, like:

1
2
3
http://link1.to.rapidshare
http://link2.to.rapidshare
http://link3.to.rapidshare

Then you run the script with the text file name as an argument:

1
$ ./rapidshare-dl.sh links.txt

You can create a link to the script in, or copy it to, the /usr/bin directory, making it executable from everywhere:

1
# ln -s $PATH_TO_SCRIPT/rapidshare-dl.sh /usr/bin/rapidshare-dl
1
# cp  rapidshare-dl.sh /usr/bin/rapidshare-dl

NOTE: This script works only in Unix-like systems.

There is also plowshare, which is another shellscript that does the same thing, and more, but i haven’t tested it yet. In the project page it says that it supports Megaupload, Rapidshare, 2Shared, 4Shared, ZShare, Badongo, DepositFiles and Mediafire, and it also uploads files to those share sites.
PlowShare Page: http://code.google.com/p/plowshare/


Sep 16 2009

Software Freedom Day 2009 – Amazonas

Éverton Arruda
Software Freedom Day

Software Freedom Day

O Software Freedom Day  é uma celebração mundial de Software Livre e de Código Aberto (FOSS – Free and Open Source Software). O objetivo desta celebração é educar o publico mundial sobre todos os benefícios de se utilizar Softwares Livres e de Código Aberto de alta qualidade na educação, no governo, em casa e nos negócios — em resumo, em todo lugar! A organização sem fins lucrativos Software Freedom International coordena o Software Freedom Day a nível global, dando suporte, brindes e um ponto de colaboração, mas times voluntários em todo o mundo organizam os eventos locais para impactar as suas próprias comunidades.

PSL-AM

PSL-AM

Em Manaus, o evento será realizado para divulgar a criação do PSL-AM, Projeto Software Livre – Amazonas, que irá, através de palestras em várias universidades, simultaneamente, divulgar o Software Livre e Open Source e explicar mais sobre esse mundo Livre e onde o PSL se encaixa neste assunto.

Site: http://am.softwarelivre.org


Sep 3 2009

Away++ XChat2 Plugin

Éverton Arruda

I’ve created a page named Development, where i’ll put some tools, scripts and softwares made by me, or in which i had a hand on.

To start that page, i put a plugin for XChat2, named Away++. It changes your nick to an away-nick when you set your status to away and changes your nick back and identifies it when you set your status to back.

:wq


Aug 27 2009

Windows 7 Sins : FSF campaign against Microsoft and proprietary software

Éverton Arruda


Windows 7 Sins

Windows 7 Sins


(…)
The campaign outlines seven major areas where proprietary software in general and Microsoft Windows in particular hurt all computer users: invading privacy, poisoning education, locking users in, abusing standards, leveraging monopolistic behavior, enforcing Digital Restrictions Management (DRM), and threatening user security.
(…)

Source: http://www.fsf.org/news/windows-7-sins

I recommend the site for everyone to be informed and get involved.

Campaign website: http://windows7sins.org


Aug 25 2009

DebianDay2009 Amazonas realizado!

Éverton Arruda



No último Sábado foi realizado o Debian Day 2009 Amazonas, evento que, como comentei em um post anterior, comemora o aniversário da distribuição Debian GNU/Linux.

O evento, na minha opinião, foi muito bom. As pessoas que compareceram ao evento se mostraram bastante interessadas nos assuntos das palestras ministradas, muitas delas me procuraram apóas as palestras para perguntar mais sobre o Debian-AM e sobre o Software Livre em manaus.

Um dos pontos maiores do evento foi a participação do criador e mantenedor do portal Viva o Linux (http://vivaolinux.com.br), Fábio Berbet, que fez duas palestras muito interessantes: “Como gerenciar um site com 8 milhões de acessos” e “Como ingressar no mercado com Software Livre”. Gostaria de deixar aqui meu agradecimento ao Fábio, desejar que o Viva o Linux continue crescendo e que possa leválo até a Espanha! hehehe, Quem estava no evento sabe do que eu estou falando.

Gostaria de parabenizar toda a equipe do Debian-AM, pela realização do evento, e a galera de manaus do Projeto Fedora e o representante do BrOffice em manaus, Carlos Lucoli, e a todos os patrocinadores e apoiadores, que nos ajudaram muito.

Como prometi, está aqui o slide da minha palestra sobre o Projeto BrDesktop:
projeto-brdesktop-pres.pdf

:wq


Aug 17 2009

Happy Birthday, Debian!

Éverton Arruda

Yesterday was Debian’s birthday, and I’d like to say:


Happy Birthday, Debian!


Aug 11 2009

Debian Day 2009 Amazonas

Éverton Arruda

Debian Day é um evento realizado anualmente por vários grupos de Software Livre em todo o mundo. Também conhecido por Dia Debian e Dia D, este evento comemora o aniversário da distribuição GNU/Linux Debian, que neste ano (2009) completa 16 anos de existência.

Em Manaus, o Debian Day é realizado pelo Grupo de Usuários Debian do Amazonas, conhecido por Debian-AM, sendo patrocinado pela UniLaSalle e com o apoio do Projeto Zagaia, AIT Technologies e Gráfica Silva.

Neste ano, teremos um desafio de programação e um convidado especial, o criador e mantenedor do site Viva o Linux (http://vivaolinux.com.br), Fábio Berbert de Paula.

Convidamos todos a participarem deste evento.
Data: 22 de Agosto de 2009.
Local: UniLaSalle, Dom Pedro I, em frente à praça de alimentação do Dom Pedro I.
Horário: 9h – 17:30h, credenciamento de 8h – 9h.
Entrada: 2Kg de alimentos não perecíveis, exceto sal.

Para saber como participar do desafio de programação, visite o site de evento.

Site: http://diadebian.org/am/2009


Jul 16 2009

VIM as a syntax highlighting pager

Éverton Arruda

I’ve been looking for a way to use less with syntax highlight and ended up in a page of Ubuntu Tutorials[0] website with a very good tip: Using VIM as a syntax highlighting pager[1].

All you’ll need is the package vim-full, só, in Debian-like systems, you’ll need to execute:

1
# aptitude install vim-full

Then, you’ll have to execute:

1
$ vim -u /usr/share/vim/vim72/macros/less.vim <FILE>

And you have it working!
NOTE: Depending on the version of your VIM, the path to less.vim might be different.

You can make this command simpler by creating an alias and adding it to your .bashrc file:

1
$ echo "alias vless=\"vim -u /usr/share/vim/vim72/macros/less.vim\"" >> ~/.bashrc

Now the system will need to re-read your .bashrc file, so the changes may be applied:

1
$ . ~/.bashrc

And after this you can test vless:

1
$ vless <FILE>

[0] http://ubuntu-tutorials.com
[1] http://ubuntu-tutorials.com/2008/07/14/use-vim-as-a-syntax-highlighting-pager/

:wq


Jul 14 2009

Colored Man Pages

Éverton Arruda

I found an interesting tip about coloring man pages in Jônatas’ blog (http://tupinigeek.blogspot.com/2009/07/man-pages-coloridas.html <- in Portugese). This is how you do it:

1 – Install most (http://www.jedsoft.org/most/index.html):
You can download most here: ftp://space.mit.edu/pub/davis/most/
or by executing the line bellow in debian-like systems:

1
# aptitude install most

2 – Export MANPAGER variable:
After this you’ll have to execute the line bellow:

1
$ export MANPAGER="/usr/bin/most -s"

Now you should have your man pages like this:

If you don’t want to export that variable everytime you restart your computer, you can add that line to your .bashrc file:

1
$ echo "export MANPAGER=\"/usr/bin/most -s\"" >> ~/.bashrc