Last active
August 5, 2016 16:25
-
-
Save scottopell/15ced492834487a762f65dc39a16091c to your computer and use it in GitHub Desktop.
Creates a hound (etsy/hound) configuration file that will index a given users public github repos.
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/sh | |
user=scottopell | |
json=$(curl -s https://api.github.com/users/$user/repos\?type\=owner\&per_page\=300 | jq 'reduce .[] as $pair ( {}; . + { ($pair.name): { url: $pair.html_url } } )') | |
echo "\ | |
{ | |
\"max-concurrent-indexers\": 2, | |
\"dbpath\": \"data\", | |
\"repos\": $json | |
}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example Output:
Link to hound:
https://github.com/etsy/Hound