Vim and EMACS Jokes on Twitter

Comparison of Vim, Emacs, Nano — Unix tool tip (@UnixToolTip) January 8, 2016 The most crucial step to any tutorial: — Kristofer Joseph (@dam) March 19, 2014 I’ve been using Vim for about 2 years now, mostly because I can’t figure out how to exit it. — I Am Devloper (@iamdevloper) February […]

How To Remove ^M Characters in Vim?

Moved  a text file between tow different operating systems? Found the annoying ^M special character? Here are ways to remove ^M character. To remove ^M within a line (without creating a a line break) :%s/^V^M//g To remove ^M within a line (creating a a line break) :%s/^V^M/^V^M/g

Great Web Tool to Learn Linux Commands

Ever wondered what these different parameters of a linux command does? One option is to lookup the meaning of each parameter in a command on a man page. For sure sure it is worth doing that, but very cumbersome. The website makes it easy to understand the meaning of each parameter in a linux […]

Eleven IPython Keyboard Shortcuts to Move Around Easily

Eleven IPython keyboard tips/shortcuts to Move Around Easily. Ctrl-p or up-arrow: Access command history in backward Ctrl-n or down-arrow: Access command history  in forward Ctrl-a: Move cursor to beginning of line Ctrl-e: Move cursor to end of line Ctrl-f: Move cursor forward one character Ctrl-b: Move cursor back one character Ctrl-l: Clear screen Ctrl-r: reverse history […]

How To Paste Code in Python Interpreter? Hint: Use iPython

If you have formatted code block with proper indentation and want to test it by copying and pasting on a python interpretor, you will be frustrated at Python for complaining at you. iPython offers great solutions for copying and pasting the code right from the terminal interpreter. One useful command in iPython to play with […]

How To Set PATH variable on Bash Shell?

Have a new executable file/program? Want to execute it just by typing the name of the program instead of full path where the program is located?  The best solution is to add the path to new executable to your list of all search paths. The idea is that every time one types a command the […]

The Great Dropbox Space Race: A way to get free Dropbox space for students

Dropbox announced the Great Dropbox Space Race for students that offers students free space of up to 25GB for two years. The way the Dropbox space Race works is as a student refers a classmates and professors to Dropbox, not only the students/professors earn free space, everyone from the school who were signed up of […]

Three Ways to Write Text to a File in Python

If you are interested in writing text to a file in Python, there is probably many ways to do it. Here is three ways to write text to a output file in Python.  The first step in writing to a file is create the file object by using the built-in Python command “open”. To create and […]

How To Check If a File or Directory Exists Using Shell Script?

One of the common tasks in shell scripting in Linux/Mac OS, checking if a file or directory exists already and to create the file/directory if it does not exists. Here is how to check if a file or directory exists in Linux shell script. The basic syntax to check if a file exists is and […]

7 Tips to Play With File Names, Directory Names, and Paths Using Python OS.path Module

Python’s OS.path module have a lots of commands/methods that are greatly useful for all things files/directories/paths. Here is seven tips for playing with files, directories, and paths using using Python os.path. How To Check If a “Name” is a Directory? To make sure if a name is directory or not, one can use “os.path.dir” to […]