Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashwin Kumar Subramanian s-ashwinkumar

View GitHub Profile
@s-ashwinkumar
s-ashwinkumar / happy_git_on_osx.md
Created Mar 13, 2017 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X
View happy_git_on_osx.md

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@s-ashwinkumar
s-ashwinkumar / 0_reuse_code.js
Created Aug 4, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@s-ashwinkumar
s-ashwinkumar / RsyncSSH.md
Created Aug 21, 2017 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)
View RsyncSSH.md

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs