Could not open a connection to your authentication agent Git Bash, Msysgit

“Could not open a connection to your authentication agent”

I got this error when trying to set up a passphrase less connection to my git server.

After a couple of hours troubleshooting this issue, i then realized that it was due to the fact that I had github for windows installed as well as msysgit.

For some reasons they were interfering with each other. I ended up deleting github for windows and every started to work.

Useful Websites
https://help.github.com/articles/working-with-ssh-key-passphrases

git cat-file fatal: not a valid object name

Error: fatal: not a valid object name SHA1

You are probably getting this error when you try to run a similar command such as this one:
git cat-file -t 1f28ca2b5aac84a845f19354730e6eddd7ccc1

The reason that you are getting this error might be because your SHA1 is only 38 character long. Your SHA1 file has to be 40 characters long.
In order to get the 40 characters file name you have to concatenate the directory name to the SHA1 file.

Within you objects directory there are a whole bunch of directories (two characters long).

let's say you have a directory named: "ce" and within "ce" you have a file (SHA1) called :
1f28ca2b5aac84a845f19354730e6eddd7ccc1

In order to use the cat-file command on that file, you must use the following command:
git cat-file - t ce1f28ca2b5aac84a845f19354730e6eddd7ccc1

“You can see a file in the objects directory. This is how Git stores the content initially — as a single file per piece of content, named with the SHA-1 checksum of the content and its header. The subdirectory is named with the first 2 characters of the SHA, and the filename is the remaining 38 characters.”

http://git-scm.com/book/en/Git-Internals-Git-Objects

vsftp selinux 500 OOPS: cannot change directory:

Selinux and vsftp issues

When setting up ftp on a linux server if you run into this error above please make sure that you use one of the solutions below (preferably the second one)

Solution #1 (The crazy solution)
Disable selinux

edit the file : /etc/selinux/config, save the changes and reboot the machine

Solution #2 (The responsible solution)

selinux is there for a reason why would you want to disable it; instead
run the following command to just allow ftp into home directories.
setsebool -P ftp_home_directory 1

Verify that the ftp_home_directory flag is on

getsebool -a | grep ftp

Useful Websites:
http://selinuxproject.org/

Ycsoftware Vi Useful Commands

First of all VI stands for Visual (nothing visual about it) and VIM stands for visual improved.

Move cursor to the end of the file

:$

Move to the beginning of the file (1 stands for first line)

:1 or :0

Search and Replace (c Stand for confirmation)

:s/old_string/new_string/gc

Search for Words

:/string_to_locate

Page UP

CTRL + B

Page Down

CTRL + F

Useful Web sites

Vim book
http://www.truth.sk/vim/vimbook-OPL.pdf

Vi manual

:help