Desktop

Eterm com cores aleatorias

Ainda uso o Eterm.
Nao tem suporte a UTF-8, é velho, e tdo mais… mas ainda uso, junto com o e17.
costumo usa-lo com este scriptzinho, feito a muiiiito tempo:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
foreach $arg (@ARGV){
        $cmd_options="$cmd_options $arg";
}
 
$offset = 60;
$base = 80;
$limit = 400;
 
$red = int($base + rand($limit - $offset));
$green = int($base + rand($limit - $offset));
$blue = int($base + rand($limit - $offset));
 
$options = "--cmod-red $red --cmod-green $green --cmod-blue $blue";
 
exec ("Eterm $options $cmd_options");
#exec ("Eterm $options $cmd_options -T \"`fortune  -n50 -s`\"");

Desktop
admin stuff
programming

Comments (0)

Permalink

cgo.py

Lembram-se do cgo.sh?
Agora existe o cgo.py.
Faz a mesma coisa… só que em python:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# Copyright (C) 2008, Felippe Bueno <bueno>
# GNUv2 licence
# Enjoy
import sys,os
 
if len(sys.argv) &lt; 2:
    print "Use:     "+ sys.argv[0] +' server1 server2 server3... serverN'
    print "or:      "+ sys.argv[0] +' server* to use ~/.ssh/known_hosts'
    print "or:      "+ sys.argv[0] +' server 1 20 to use \'server\' as prefix, and increment from 1 to 20 (server1 server2 server3 ... server20)'
    sys.exit(1)   
 
def use_knownhosts(prefix):
    import string
    servers=""
    known_file=file(os.getenv('HOME')+'/.ssh/known_hosts','r')
    for line in known_file.readlines():
        hostname=string.split(line.split()[0], sep=',')[0]
        if prefix in hostname:
            servers=servers+' '+hostname
    args=servers.split()
    args.sort()
    cargs=""
    for s in args:
        cargs=cargs+' '+s
    return cargs
 
def use_prefixsequence(prefix,start,end):
    servers=""
    i=start
    while i &lt;= end:
        servers=servers+' '+prefix+str(i)
        i=int(i)+1
    return servers
 
if '*' in sys.argv[1]:
    import string
    os.system("cssh "+use_knownhosts(string.split(sys.argv[1],sep='*')[0]))
    sys.exit(0)
 
if len(sys.argv) == 2:
    servers=""
    i=1
    while i &lt; len(sys.argv):
        servers=servers+' '+sys.argv[i]
        i=i+1
    os.system("cssh "+servers)
    sys.exit(0)
 
try:
    int(sys.argv[2])
    int(sys.argv[3])
    os.system("cssh "+use_prefixsequence(sys.argv[1],int(sys.argv[2]),int(sys.argv[3])))
except ValueError:
    servers=""
    i=1
    while i &lt; len(sys.argv):
        servers=servers+' '+sys.argv[i]
        i=i+1
    os.system("cssh "+servers)
    sys.exit(0)</bueno>

Desktop
Python
admin stuff
programming

Comments (0)

Permalink

todo/get_field.py

sim, funcionou….
no .muttrc:

1
2
macro index < Esc>w "|formail  -x Subject: -x From: | get_field.py | todo -a -p 4\r"
macro pager  < Esc>w "|formail  -x Subject: -x From: | get_field.py | todo -a -p 4\r"

tem q ter o procmail (pra usar o formail):

1
sudo aptitude install procmail

get_field.py:

1
2
3
4
5
6
7
8
#!/usr/bin/env python
 
import sys
from email.Header import decode_header
 
for f in sys.stdin.readlines():
        field=decode_header(f)
        print field[0][0]

Desktop
admin stuff

Comments (0)

Permalink

K.I.S.S.

Usei evolution durante algum tempo.

Mas depois de gmail, yahoo mail etc, vc ve que nao precisa realmente de um cliente de email, apenas um browser para acessar o seu webmail.

No meu caso eu centralizo tdo no gmail (baixo tdo das outras contas via pop3, e redireciono as contas @hal.vu para o gmail, fazendo o download das mesmas depois com o fetchmail no server da dreamhost, mantendo um backup de todas as contas de email que existe no gmail, no server da dreamhost). Gosto bastante da interface do gmail (quem nao gosta?) e ainda existem alguns add-ons do ff para usar com ele. Um dos mais legais é o Better Gmail 2.

Para o email do trabalho mesmo (que até tem o webmail , mas é aquele do exchange) eu utilizo o mutt. Sim, o mutt mesmo, aquele ‘em texto’. Alguns dos motivos sao:

-Utilizo as minhas teclas de atalho customizadas ou padrao dele mesmo, posso navegar nas mensagens como navego no vim, ou como quizer.
-Utilizo o proprio vim para editar mensagens.
-Configuro os meus cabecalhos.
-Assino/criptografo mensagens somente com as teclas de atalhos.
-Integracao com o abook.

Entre varias outras… aproveitando só pegar o meu .muttrc.

Mas eu ainda nao tinha um ‘todo manager’.
Foi entao que descobri o devtodo.
Pq usar este cara ?
Novamente, simplicidade.

As vantagens incluem:

-absurdamente facil de adcionar remover ou ler um todo. vc pode por ex. pressionar alt+esc (alt+F2 no gnome) e digitar, todo -a “entrar em contato com o banco para sanar divida”
- salva em xml
-aceita varias (senao todas) operacoes em uma unica linha de comando.
alias acabei de pensar em algumas bindkeys novas para o mutt, como por ex transformar um email em uma entrada ‘todo’… vou la testar.

Desktop

Comments (0)

Permalink

CB

[www@cb.vu]~> ls -l
-rw-r—–   1 colin   www   1045 Feb 15 01:31 about.txt
-rw-r—–   1 colin   www   4033 Feb 11 02:06 cb.txt
-rw-r—–   1 colin   www  98166 Jul 23  2004 exploring.gif
-rw-r—–   1 colin   www   1150 Jan 31 15:17 favicon.ico
-rw-r—–   1 colin   www   1933 Feb 10 16:53 index.html
-rw-r—–   1 colin   www  25695 Feb  5 00:52 shell.js
-rw-r—–   1 colin   www    766 Feb 10 01:13 sitemap.xml
-rw-r—–   1 colin   www  64720 Feb 10 01:13 termlib.js
-rw-r—–   1 colin   www   5838 Feb 10 02:14 termlib_parser.js
-rw-r—–   1 colin   www 272458 Feb 10 02:14 unixtoolbox.book.pdf
-rw-r—–   1 colin   www 271664 Feb 10 02:14 unixtoolbox.book2.pdf
-rw-r—–   1 colin   www 345472 Feb 10 02:14 unixtoolbox.pdf
-rw-r—–   1 colin   www 124113 Feb 25 04:20 unixtoolbox.txt
-rw-r—–   1 colin   www 156225 Feb 11 01:47 unixtoolbox.xhtml
-rw-r—–   1 colin   www   1992 Feb 11 02:50 vars.js.php
[www@cb.vu]~> more about.txt
Welcome to my website cb.vu!
This site provides a virtual shell and is meant to be a command line joke where
you have to use some UNIX commands to get around. There are some
functionalities which are not totally fake, like the commands ping, whereami,
weather. Besides ping and weather, there is no communication whatsoever between
the browser and the server. Everything is happening within your navigator. You
can however create files on the web root directory and even view them with the
browser by entering the file name in the address bar. For example try:
echo ”Hello there, my name is Colin.” > hello.txt
 – MORE –  (Type: space to continue, ’q' to quit)

O site do cara do post anterior é bemmm legal tb.

Desktop
Server
admin stuff

Comments (0)

Permalink

famelix

nao conhecia este tal de famelix

http://www.famelix.com.br/site/?langswitch_lang=pt

parece q eh uma distro q quer ter a cara de xp/vista…
e pra isso estao usando o e17 com temas parecidos com esses caras :)
eu prefiro meu linux com cara de linux mesmo usando o e17 :)

Desktop
e17
wm

Comments (0)

Permalink

AfterStep 2.2.8 released!

Alguem ainda usa ?

Major bugfix release:

  • Found and plugged an elusive memory leak.
  • Many other minor bugfixes.

Get it from here : ftp.afterstep.org/stable/AfterStep-2.2.8.tar.gz.
Or if you already have 2.1.0 or later installed - you can use smaller upgrade packages : ftp.afterstep.org/stable/AfterStep-2.2.8-noimages.tar.gz.

Desktop
wm

Comments (0)

Permalink

Instalando e17 do cvs

Facil, mas nao tao rapido…

1o instale as libs necessarias

1
 sudo aptitude install build-essential cvs libtool libltdl3-dev automake1.9 autotools-dev libpopt-dev libcurl3-dev libx11-dev x11proto-xext-dev libbz2-dev libid3tag0-dev libpng12-dev libtiff4-dev libungif4-dev libjpeg62-dev libssl-dev libfreetype6-dev bison flex xlibs-dev gettext libimlib2-dev libxml2-dev libxcursor-dev libgtk1.2-dev autoconf pkg-config libpng3-dev libxine-dev libxkbfile-dev libsqlite3-dev giblib-dev libxmu-dev libxdamage-dev libxcomposite-dev libtag1-dev libtagc0-dev giblib-dev libasound2-dev

depois baixe o easy_e17.sh depois rode:

1
 ./easy_e17.sh -i --fullcvs

pode ser q falte algumas libs, e q alguns progs nao compile
para este ultimo utilize a opcao –skip=prog ex:

1
./easy_e17.sh --fullcvs --skip=enthrall

encontrei no http://www.enlightenment.org/p.php?p=download&l=en

q manda para o http://ubuntuforums.org/showthread.php?t=97199&highlight=E17+cvs

funciona para debian tb, claro

Desktop
e17
wm

Comments (0)

Permalink