Skip to content

Instantly share code, notes, and snippets.

View dadarom's full-sized avatar

leo dadarom

  • VVIP
  • shanghai@China
View GitHub Profile
@dadarom
dadarom / INSTALL.txt
Created August 16, 2017 15:03 — forked from fernandoaleman/INSTALL.txt
Shell script to sync remote branches from upstream and push them up to forked origin
1. Copy 'git-sync-fork' script code from gist
2. Create a file called 'git-sync-fork' in any 'bin' directory in your $PATH
3. Paste script into this new file 'git-sync-fork' and save
4. Make the file executable `chmod +x git-sync-fork`
5. Run the script inside your locally forked git repo
Example:
git-sync-fork upstream origin
@dadarom
dadarom / 0_reuse_code.js
Created April 1, 2017 07:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console