This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mapper(row, emit) { | |
if(row.comment) { | |
keywords = row.comment.split(' '); | |
for(var i=0; i<keywords.length; i++) { | |
emit({keyword: keywords[i], count: 1}); | |
} | |
} | |
} | |
function reducer(row, emit) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize git and git-annex | |
$ mkdir annex-gcs-test | |
$ cd annex-gcs-test/ | |
$ git init | |
Initialized empty Git repository in /Users/jterrace/annex-gcs-test/.git/ | |
$ git annex init "my machine" | |
init my machine ok | |
(Recording state in git...) | |
# Set up AWS credentials |