Posts

Undo the settings of pppoeconf command

"pppoeconf" sets up dialup networks on linux/ connect to internet without connecting via network manager. But thats done, it sets up few files to always do that. To undo this on ubuntu, follow these steps : 1) Edit nm-system-settings.conf vim /etc/NetworkManager/nm-system-settings.conf You have to write managed=true under [ifupdown] 4) Edit interfaces vim /etc/network/interfaces This file must look like this: auto lo iface lo inet loopback auto eth0 iface eth0 dhcp 5) Restart your computer reboot 6) Finished.

Finding out your external IP address

If you want to find out what external IP address your router has assigned to it, you can either search the Internet for sites that can display that said IP address or you can use the Linux command line: wget -O - -q icanhazip.com wget options: '-O -' will display output on terminal instead of saving it in a file. '-q' will suppress wget's output (e.g. connecting ,saving) This are other sites which can be used instead of icanhasip.com http://www.canyouseeme.org/ http://www.formyip.com/ http://www.checkip.org/ http://www.whatismyip.org/

Multiple line comments and designs

Have you ever wondered how do people make fancy design around comments like /**************************/ /* Different all twisty a */ /* of in maze are you, */ /* passages little. */ /**************************/ or like __ _,--="=--,_ __ / \." .-. "./ \ / ,/ _ : : _ \/` \ \ `| /o\ :_: /o\ |\__/ `-'| :="~` _ `~"=: | \` (_) `/ .-"-. \ | / .-"-. .---{ }--| /,.-'-.,\ |--{ }---. ) (_)_)_) \_/`~-===-~`\_/ (_(_(_) ( ( qwe ) ) asd ( ( zxc ) ) ( '---------------------------------------' I even tried creating a one in one of my files. Then I had to change my message and my design was screwed. Today in casual browsing I found this and all questions which have been there for years were solved....

Cross-platform Browser Sync - Xmarks

I have 3 machines, each one with Linux/windows installation. Its really a pain to sync my browsers for bookmarks and .... But now I found this and its really working great. I suggest you to try this out too. http://www.xmarks.com/

Dropbox - online storage/backup

Every morning I start my computer, I pray that it at least starts. This is why I always looking for option for getting things off of the local computer. Recently I came across Dropbox. I am really liking it. It gives you 2 GB of storage free of cost. To Setup follow these commands For Ubuntu : 1. Go to https://www.getdropbox.com/downloading and download appropriate package. 2. # dropbox start -i For Redhat/Fedora (without Nautilus plugin): 1. If 32 bit, wget http://www.getdropbox.com/download?plat=lnx.x86 If 64 bit, wget http://www.getdropbox.com/download?plat=lnx.x86_64 tar zxof dropbox-*.tar.gz mv .dropbox-dist ~/.dropbox-dist wget http://dl.getdropbox.com/u/6995/dbmakefakelib.py wget http://dl.getdropbox.com/u/6995/dbreadconfig.py python dbmakefakelib.py It will ask all the information,fill it and let it sync. Then close it using icon->stop or ^C. python dbreadconfig.py cat >> ~/.bash_profile ~/.dropbox-dist/dropboxd & END You will get a folder ~/Dropbox. Create anythi...

my ~/.vimrc

set nonumber      " we don't need line numbers on the left, because we have status line set laststatus=2  " always show the status line set statusline=%<%F%h%m%r%h%w%y\ %=\col:%c%V\ line:%l\,%L\ %P set hlsearch set incsearch set ignorecase set showmatch set matchtime=3 set softtabstop=2 set shiftwidth=2 set tabstop=2 set expandtab set noautoindent smartindent set bg=dark set paste set pastetoggle=<F2>

Editing multiple lines in vim

1.Press ctrl + v (To selest visual block. v/V are for visual region) 2.Select lines you want to append to. 3.Press I{string}<ESC> (Note: Its I = capital i = shift+i) In our case, {string} = #. It takes a while for changes to appear after you press <ESC>.