September 8, 2010

Connecting two different subnets on different locations with linux firewalls is easy. I did it with OpenVPN because it’s easy to setup, secure and “just works”.

Everything worked fine. Email server on one subnet was reachable from the other, the samba server was available with \\ip style address. I thought that was all, work done…

Not quite.
Read the rest of this entry »

Yesterday I changed my ~/.vimrc to make programming in a terminal easier. For years now I’ve been reusing the same one.

Here it is with comments:

" Turn on syntax highlights. Well it's not an IDE, but makes important things stand out enough
syntax on
" Make tab width 4 spaces
set tabstop=4
" Make indent width also 4
set shiftwidth=4
" Make indent rounded to next full shift width
set shiftround
" Expand tabs to spaces (doesn't mess up file indentation in other editors width different tab settings)
set expandtab
" Indent code blocks automatically (don't need to type a lot of tabs in deep indented lines after a linebreak)
set autoindent
" And make backspace delete smartly (like in any editor. through indents, linestarts and end of lines)
set backspace=indent,eol,start

And finally a command to remember to replace all tabs with spaces based on the values above. (Good for formatting text made in another editor)

:retab or :retab! to force replacing all tabs which are not surrounded by whitespaces

I wanted to write about a bit of spyware history and evolution here, but I think we all know a lot about the problem already. Spywares are annoying, widespread and dangerous.

And hard to get rid of. Today spyware writers are becoming quite good at hiding spyware activity and making sure that an infected computer remains infected. A common approach is to change the winlogon notify registry key to run malware code on every single user login. Yes, even if you start windows in safe mode you have to log in, and if a program is loaded you cannot easily remove it from the computer.

Read the rest of this entry »