Author Archives: Garejoor

Vim Quick Reference

Changing Modes In Vim there are two modes. i : Change to INSERT mode ESC : Change to COMMAND MODE (non-insert mode) . : repeat last action Save and Close The following commands are executed from COMMAND MODE. :w : save the document, this will not close vim :q : quit :wq : save and quit Moving Cursors To move the cursor you can use the arrow keys, or alternatively …

Posted in Linux | Tagged , , , | Leave a comment

Python: Quick Reference

I forget almost everything I read, so I’ve compiled a list of topics with examples for a quick reminder. If you find find an error in the code, forgive me and please let me know. Print stuff on the screen String Manipulation User Input Program Arguments Read and Write to files Functions or Methods If Statement Loop List Tuples Dictionary Creating Modules Classes Inheritance Python in Linux Creating a GUI …

Posted in Python | Tagged , , | Leave a comment

Git Basics: A Quick Reference

This is a quick reference guide to Git basics. If your completely new to Git or version control, this is not the best reading to spend time on. I suggest progit.org or the quick reference guides from the official git website. Init To start tracking a directory: Add To start version-controlling specific files or a sub-set of files you need to add them to the staging area using the add …

Posted in Linux | Tagged , | Leave a comment

Setting up Apache HTTP Server on CentOS

Setting up HTTPD on CentOS By default the Apache web server is installed on CentOS but even if it is not, you can install it using the following command: to start the service, type the following entry: if you want to be able to access your pages externally, you need to open port 80 on the firewall. Open up the iptables file: and add the following line to the end …

Posted in Linux | Tagged , , , | Leave a comment

Setting up Git on CentOS

Git is a new version control system created by Linus Torvalds. If your starting a project, it is a good idea to have a version control system setup before starting the project. There are alternatives to git but two of the most popular ones are SVN, CVS. The major difference between git and the rest is that git is distributed where svn or cvs are server-client based. Setup By default, …

Posted in Linux | Tagged , , | Leave a comment

Setting up a SSH server on CentOS

SSH allows users to connect to a remote linux/unix operating system and work on it as if they were actually physically near it. This allows you to work on your code/project from a remote location and not to worry about coping and pasting the changes made somewhere to another. Setup By default, SSH is installed on your CentOS, but even if it is not for some reason you can install …

Posted in Linux | Tagged , , | 1 Comment

Python: Quick Start

What is Python? Python is a programming language like C or C++ with several key differences. First of all, it’s not as fast as C or C++ since it’s a scripting language. This means the code wont compile to a native machine language (10010101), instead a run-time environment will handle the execution. Secondly, Python is a dynamic language, meaning each line of code that the computer reads will get executed …

Posted in Programming Languages, Python | Tagged , , | Leave a comment