Por marcos, hace 20 días

Gitolite: adding new repositories

I'm now using Gitolite to manage the git repositories and all the users permissions stuff. Whenever I want to create a new repository I need to recall how to do it and I end up searching for it in Google. Today I've created a bash function and added it to my ~/.bashrc that does all the required stuff.

After adding the corresponding entry to gitolite-admin/conf/gitolite.conf for the new git repository, these are the commands I use to create the repository:

  1. $ mkdir reponame
  2. $ cd reponame
  3. $ git init
  4. $ git remote add origin git@gitolite:reponame.git

Then, the function I've created ends up as:

  1. function create_git_repo {
  2.    if [ "$1" == "" ] ; then
  3.    echo "[E] One arg is needed!"
  4.    else
  5.    echo "[!] Make sure you have already defined the repo in the conf/gitolite.conf file! (Ctrl+C if you haven't!)"
  6.    read i
  7.    mkdir ${1} && echo " * Directory successfully created!"
  8.    cd ${1}
  9.    git init
  10.    git remote add origin git@gitolite:${1}.git && echo " * remote origin added"
  11.    echo " * Remember to add some files and push with 'git push origin master:refs/heads/master'..."

  12.    

    fi

  13. }

Now I can just type create_git_repo reponame to create my new git repo both in my machine and in the gitolite server.

Por marcos, hace 1 mes y 6 días

Nueva ubicación del blog

Si estáis leyendo esto es que ya accedéis al blog en su nueva ubicación. marcos.blog ha dejado trinity para irse a grimbergen.

Cualquier fallo lo reportáis por aquí.

Por marcos, hace 1 mes y 8 días

Y nos la vuelven a meter doblada

Leía una noticia sobre la obligación de utilizar estándares abiertos por parte de la Administración Pública, de cara a «que garanticen un adecuado nivel de interoperabilidad técnica, semántica y
organizativa y eviten discriminación a los ciudadanos por razón de su elección tecnológica.». Hasta ahí todo genial. Bien, faltaría definir «adecuado» pero aceptamos barco.

Luego uno sigue leyendo el BOE en cuestión y se encuentra perlas como:

  • Las Administraciones públicas usarán estándares abiertos, así como, en su caso
    y de forma complementaria, estándares que sean de uso generalizado por los ciudadanos.
    Esto de «uso generalizado» ya me empieza a oler a mierda. Comprobemos en el anexo que acompaña al texto su definición: «Usado por casi todas las personas físicas, personas jurídicas y entes sin personalidad que se relacionen o sean susceptibles de relacionarse con las Administraciones públicas españolas.» ¿Alguien me deja unas estadísticas de uso de, por ejemplo, GIMP y Photoshop? ¿OpenOffice y MS Office? La primera en la frente.
  • Y por si no fuese suficiente, ¿se os había olvidado que el semi-formato (porque la especificación es una gran mierda) «abierto» de Microsoft para Office fue aceptado como estándar ISO?

En fin, que seguimos igual que siempre, los lobbys hacen bien su trabajo y nosotros a jodernos, que para eso somos los pringaos.

Por marcos, hace 1 mes y 16 días

Jornades Nòmades 2010.01

:: jornades nòmades 2010.01

Després d'uns quants mesos de baixa activitat pública, el Hacklab Nòmada torna a la càrrega organitzant una jornada de xerrades, cinefòrum i música.

Hem de continuar difonent el coneixement. Per això us convidem a acompanyar-nos el dissabte 30 de gener a partir de les 17h16h al Casal Popular Les Vinyes de Mataró.

Alguna de les xerrades proposades són «Cultura lliure, o com millorar el pastís de l'àvia», «Introducció a Python» o «Automatització de tasques». També hi haurà un passi de vídeo del Hackiluro i un concert de chiptune de «Chip Subcutáneo».

Per acabar podreu omplir la panxa amb el sopar que ens preparin els companys del Casal.

Us hi esperem!

Por marcos, hace 2 meses y 11 días

Trackpoint stopped doing scroll

The today's update brought a new kernel, 2.6.32-ARCH. With it, came a small annoyance: the trackpoint scroll stopped working. I reviewed the hal configuration to see if the file was overwritten or something, but it wasn't, so after a google search I found out that the new kernel is not detecting the trackpoint as a «TPPS/2 IBM TrackPoint» but as a «PS/2 Generic Mouse» so the hal rule is not raised and the scroll configuration is not applied.

Until the kernel gets updated to fix this bug, the easy workaround is to change the rule to be raised for the «PS/2 Generic Mouse» string instead.

It got fixed with the latest kernel update.

Special features from the trackpoint will not be available, but I'm currently using nothing special from it.

Por marcos, hace 2 meses y 17 días

Defining vim macros

In python 2.6 you are forced to define the encoding of the file your editing if it contains characters outside the ASCII encoding.

For making this task easier I have defined the following mapping in my .vimrc:

map #1 i# -*- coding: utf-8 -*- ^M^M

So now just pressing F1 I get the header inserted in the current line.

Por marcos, hace 3 meses y 6 días

Debian netinstall gpgv error

I was reinstalling my parent's laptop with Debian via netinst, and when retrieving packages from the mirror (no matter which one) the download failed and in the shell I read this error:

  1. gpgv: Can't check signature: public key not found
  2. error: Bad signature on /tmp/net-retriever-858-Release.

Thanks to a bugreport I found a workaround, I just needed to append debian-installer/allow_unauthenticated=true to the boot line.

← Anterior 01 02 03 04 05 ... 23 Siguiente →