the permanent TODO

February 25, 2010

indentation with Vim

Filed under: Uncategorized — {Francisco,François} Varas @ 11:50 am

to indent a block, select lines with v or shift+v
and j or down arrow, then use the > command.

Nice one :)

February 15, 2010

exporting users between two debian machines

Filed under: tech — Tags: , , — {Francisco,François} Varas @ 9:00 am

I wanted to create an account in my backup machine for a good friend of mine.
As laziness is a fundamental virtue I wanted to avoid as much work as possible, including the part of calling my good friend to tell him to change the password that was random generated in the second machine.
mi first try was:
(as root)
grep <user> /etc/{passwd,shadow,group} >> user_info.text

Then, copy each line of users_info.text into the passwd, shadow and group file in /etc/ on the second unit

February 1, 2010

Installing Go with debian

Filed under: tech — Tags: , , , — {Francisco,François} Varas @ 10:50 am

I tried to install Go (Google’s programming language) this WE.
Under MAC OS X the install was clean, but under Debian I had a lot of error messages.
To avoid all that noise, you need to go to $GOROOT/src/pkg and edit the Makefile
search the NOTEST section and (respecting the identation) add:

http\
net\
syslog\

Try again and let me know if it works :)

Powered by WordPress