Search This Blog

Tuesday, September 20, 2016

Custom bin path in .bashrc (*nix) or .profile (OS X)

# Set path for custom binaries
if [ -d "$HOMEBIN" ]; then
    export PATH="$HOMEBIN:$PATH"

Saturday, September 17, 2016

Amazon free private git repo

Tuesday, September 6, 2016

Friday, September 2, 2016

atom symbolic link in OS X

ln -s /Applications/ /usr/local/bin/atom

Thursday, September 1, 2016

Cygwin Git modified file inconsistency introduced by synchronization

When a repository is synchronized using cygwin unison through Windows network file sharing, the file modes would be corrupted. This is because of the incompatibility between the ways in which Windows and Cygwin look at the files. In this case, git would mark the files modified even if those files were not modified. Having git ignore the file modes can resolve this issue.

git config --local core.filemode false

Unison keep timestamp


rsync backup

rsync -avzPrt ./local_dir id@domain:~/target_dir/

This command creates a directory using the name of 'local_dir' within the target_dir, and synchronizes contents.

So, how can I compare the source and the copy????

Blog Archive