N31m4D


Fix special characters in Subsonic

Publicado en Sin categoría por n31m4d en Domingo 5 junio 2011
Tags: , , , , ,

I recently installed Subsonic on my NAS to listen to my music from work. What I like the most about Subsonic is its ability to transcode my FLAC files into MP3 inmediately to stream them.

The only problem I had was that some songs with special characters looked bad, and in these cases Subsonic couldn’t transcode or read then as it was looking for non existing files.

The solucion is quite easy : in Subsonic startup file, “subsonic.sh”, add the following line on top :

export LANG=en_US.UTF-8

That’s it, just restart Subsonic and everything works fine :)

Arreglar caracteres especiales en Subsonic

Publicado en Gnu/Linux por n31m4d en Domingo 5 junio 2011
Tags: , , , , ,

Hace poco instale Subsonic en mi NAS para escuchar desde el trabajo cualquiera de mis discos. Lo que mas me gusta de Subsonic, es que tengo toda mi coleccion de CDs en FLAC y hace el transcoding a mp3 muy rapidamente para el streaming.

El unico problema que tenía era que algunos temas con caracteres especiales se veian mal, y en estos casos Subsonic no puede hacer el transcoding (porque busca archivos que no existen).

Al final, la solucion fue sencilla : en el archivo de arranque de Subsonic, “subsonic.sh”, agregue la linea siguiente arriba del archivo :

export LANG=en_US.UTF-8

(mi sistema esta en ingles, si lo tienen en español es_ES.UTF-8 debería funcionar tambien).

Reiniciar Subsonic, y todo funciona bien :)

Subir muchos archivos nuevos por svn

Publicado en console por n31m4d en Jueves 21 enero 2010
Tags:

svn stat | grep "^?" | awk '{print $2}' | xargs svn add

Update : No funciona con archivos teniendo espacios en el nombre. Una alternativa :

svn st | grep ^? | sed 's/? //' | xargs svn add

Lo mismo para borrar los archivos faltantes :

svn st | grep ^\! | sed 's/? //' | xargs svn add

Update : otra alternativa para los archivos con espacio :

svn status | awk '/\?/' | sed 's/\? *//g' | sed 's/ /\\ /g' | xargs svn add

Borrar archivos viejos de más de x días

Publicado en Gnu/Linux por n31m4d en Lunes 30 noviembre 2009

find /path/* -mtime +10 -exec rm {} \;

borra los archivos viejos de más 10 días.

reemplazar texto en varios archivos

Publicado en Gnu/Linux por n31m4d en Domingo 9 agosto 2009

grep -lr -e ‘xxx’ * | xargs sed -i ’s/xxx/yyy/g’

xxx es el texto a reemplazar y yyy el nuevo texto.

Montar imagen iso

Publicado en Gnu/Linux por n31m4d en Domingo 9 agosto 2009

mount /path/to/image-file.iso /mnt/cdrom -o loop

donde path/to es la ruta de ubicacion de la imagen ISO.

Backup del sistema

Publicado en backup,Gnu/Linux por n31m4d en Miércoles 26 noviembre 2008

Backup :
tar cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/sys /

Restore :
tar xvpfj backup.tar.bz2 -C /

Tab URL Copier for Firefox 3

Publicado en firefox por n31m4d en Sábado 16 agosto 2008
Tags:

I used a lot the Tab URL Copier for Firefox 2. It was very useful to make bibliographies and to save a list of open tabs to a file to restore them later. Unfortunately it hasn’t been updated since 2006, and therefore it is not compatible with Firefox 3.

So I updated it, and here is version 1.1.9.20080816 for Firefox 3 :
http://www.mediafire.com/?p1tjjlkt0zv

Enjoy!

Reload Tab on Double Click for Firefox 3

Publicado en firefox por n31m4d en Lunes 21 julio 2008
Tags:

Reload Tab on Double Click is a very simple and useful extension written by Kyo Nagashima and available on his website :
http://hail2u.net/archives/fxexts.html#reload_tab_on_dblclick

Unfortunately it doesn’t work in Firefox 3.

So I updated it, and here is version 1.0.7 for Firefox 3 :
http://www.mediafire.com/?ojkw1dlyz0t

Enjoy!

Thunderbird con Active Directory

Publicado en Mail por n31m4d en Lunes 7 enero 2008

En este articulo veremos como hacer para autocompletar el campo de destinatario en Thunderbird usando el Active Directory como Adress Book.

Consideramos que la IP del server de Active Directory (AD) es 10.10.10.10.

Para tener más datos del AD, tiramos el comando siguiente :


net ads info -S 10.10.10.10

Y obtenemos lo siguiente :

LDAP server: 10.10.10.10
LDAP server name: ad.miempresa.com
Realm: MIEMPRESA.COM
Bind Path: dc=MIEMPRESA,dc=COM
LDAP port: 389
Server time: Mon, 07 Jan 2008 09:43:20 ARST
KDC server: 192.168.0.10
Server time offset: 0

Ahora necesitamos determinar cual es nuestro Bind DN para poder autenticar contra el AD :


net ads search '(sAMAccountName=minombredeusuariodeldominio)' userPrincipalName -U minombredeusuariodeldominio -S 10.10.10.10

Ya tenemos todo lo necesario para configurar el Thunderbird. Abrimos la libreta de direcciones en el menu Tools -> Address Book. Ahí vamos a File -> New -> LDAP Directory y ingresamos los datos siguientes :


Name: LDAP MiEmpresa
Hostname: 10.10.10.10
Base DN: dc=MIEMPRESA,dc=COM (Bind Path obtenido por el comando net ads info)
Port number: 3268 (El puerto por defecto, 389, no funciona bien, anda lento y cuelga el thunderbird, el 3268 anda perfectamente bien)
Bind DN: el_bind_dn_encontrado_mas_arriba
Use Secure connection (SSL): off

Ahora abrimos las preferencias del Thunderbird y vamos a la solapa Composition. En Adressing, tildar Directory Server y elegir en la lista el server que recien creamos.

Listo, el Thunderbird esta configurado con el AD como Adress Book : )

Página siguiente »

Seguir

Get every new post delivered to your Inbox.