Just enter the following command in Vim, to replace all XXX match with the number of the line where the match is:
:%s/XXX/\=line(".")
Ex:
this is a example : XXX
and XXX
... is then
this is a example : 1
and 2
Just enter the following command in Vim, to replace all XXX match with the number of the line where the match is:
:%s/XXX/\=line(".")
Ex:
this is a example : XXX
and XXX
this is a example : 1
and 2
Posted by zeekox at 04:32 0 comments
Labels: Vim
Inspired by a "Vista-Capable" User Avatar which said "Windows Vista incapable/ Stick with Windows XP", a Linux supporter made this cool sticker. Would be nice to see it available in real.
read more | digg story
Posted by zeekox at 22:58 0 comments
Telnet Connection
telnet
Commands:
>configure
>set dynamic-dns option [ off | dyndns.org ]
>set dynamic-dns ddns-host-name myhostname.dyndns.org
>set dynamic-dns ddns-user-name myusername
>set dynamic-dns ddns-user-password myuserpassword
Taken from www.netopia.com/support/hardware/SoftwareUserGuideV761-Clsc.pdf
Posted by zeekox at 09:30 1 comments
If you are a Ubuntu and a network manager user, you have probably seen (and maybe see it each time you login) the unlock keyring dialog, and you are probably sick of it too. Here is a solution to that problem that works!
Avoid Network-manager ask for password. read more
Faire que le network-manager ne demande pas de mot de passe.
(en français ici si vous en avez marre-de-taper-votre-mot-de-passe-dans-nm-applet
Posted by zeekox at 09:27 0 comments
Labels: Ubuntu
Envy an easy script to install Nvidia drivers by Alberto Milone, read more.
wget http://albertomilone.com/ubuntu/nvidia/scripts/
envy_0.8.1-0ubuntu6_all.debsudo dpkg -i envy_0.8.1-0ubuntu6_all.deb
Posted by zeekox at 03:00 0 comments
Labels: Ubuntu
Posted by zeekox at 02:03 0 comments
Labels: Ubuntu
Open gconf-editor (sudo apt-get install gconf-editor) then :
apps -> nautilus -> desktop
Posted by zeekox at 01:27 0 comments