Technical Recipes

Monday 13, February 2012

I've recently installed Emacs 24 on my Fedora workstation. I followed these simple steps to do that:

$ git clone git://github.com/emacsmirror/emacs.git
$ cd emacs
$ ./autogen.sh
$ ./configure --prefix=/opt/emacs24 --without-makeinfo  
       --with-xpm=no  --with-jpeg=no --with-gif=no 
       --with-tiff=no
$ make
$ sudo make install

Then, I executed:

$ sudo ln -s /opt/emacs24/bin/emacs /usr/bin/emacs

... and...

$ emacs --version
GNU Emacs 24.0.93.1
Copyright (C) 2012 Free Software Foundation, Inc.

Voila!!


Monday 6, February 2012

It's possible to use the US layout for your keyboard for typing "ñ" and tildes. First, you need to use setxkbmap choosing US international layout:

$ setxkbmap us -variant intl

Then, you need to apply a patch for modifying the us keyboard layout. You can find here a simple patch.

Now, you can use Alt-Gr key for typing "ñ" and tildes.

tags: sysadmin

Friday 27, January 2012

If you need to display how many memory are using your commands running on a machine, you can execute the following command:

$  ps -u arturo -o rss,comm

arturo should be replaced for your current user. RSS means Resident Set Size and it shows the physical memory used by the process in kilobytes (kB).

tags: sysadmin

Wednesday 4, January 2012

Usually you need to get upstream changes to your forked repo. To do that, just execute these lines:

$ git fetch upstream
$ git merge upstream/master

First line gets changes for upstream and second one merge these changes into your forked repository.


Tags

My latest tweets

tweet @greggpollack Looking forward for it!!
tweet @gaalal Puerta del Sol, 19:30h #PrimaveraValenciana #yotambiensoyelenemigo
tweet Hoy más que nunca: Vergüenza me daría ser policía #PrimaveraValenciana
tweet Cuando el "enemigo" son los estudiantes y los periodístas, algo muy grave está pasando #PrimaveraValenciana
Buy me a coffee!! Coffee cup

Advertisment