Skip to content

Instantly share code, notes, and snippets.

View s-ashwinkumar's full-sized avatar

Ashwin Kumar Subramanian s-ashwinkumar

View GitHub Profile
s-ashwinkumar /
Created March 13, 2017 18:18 — forked from trey/
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global "Your Name"

git config --global ""

s-ashwinkumar / 0_reuse_code.js
Created August 4, 2017 08:42
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 /
Created August 21, 2017 16:52 — forked from KartikTalwar/
Rsync over SSH - (40MB/s over 1GB NICs)

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