gwen001 / github-search

A collection of tools to perform searches on GitHub.
https://10degres.net/github-tools-collection/
MIT License
1.33k stars 339 forks source link

Example of config file `github-survey.json` ? #14

Closed bugbaba closed 4 years ago

bugbaba commented 4 years ago

Hi gwen,

As per http://10degres.net/github-tools-collection/ for using github-survey config file ~/.config/github-survey.json is required that contains dorks, I tried creating this file manually, But still getting error.

Could you please share the example config file that is required github-survey.

-- Thanks @bugbaba

gwen001 commented 4 years ago

Project not maintain anymore but here it is:

{
    "slack_webhook": "https:\/\/hooks.slack.com\/services\/xxxx\/xxxxx\/xxxxx",
    "github_dorks": {
        "pornhub api_key": {
            "last_sha": "46608b0f1aa6ee7e1810f9a15d5e9ceac8d10b51",
            "title": "github search code 'pornhub api_key'",
            "data": 0,
            "info": "https:\/\/github.com\/search?o=desc&s=indexed&type=Code&q=pornhub%20api_key",
            "exclude": {
                "filepath": [],
                "content": [],
                "extension": []
            }
        },
        "snapchat token": {
            "last_sha": "f9b75ec6e8a77765d500f8543b71a7dc62f152d6",
            "title": "github search code 'snapchat token'",
            "data": 0,
            "info": "https:\/\/github.com\/search?o=desc&s=indexed&type=Code&q=snapchat%20token",
            "exclude": {
                "filepath": [],
                "content": [],
                "extension": []
            }
        },
        "deliveroo password": {
            "last_sha": "907c70cc8cb77a9f22d6cdbf3d0d49f32f0ad95e",
            "title": "github search code 'deliveroo password'",
            "data": 0,
            "info": "https:\/\/github.com\/search?o=desc&s=indexed&type=Code&q=deliveroo%20password",
            "exclude": {
                "filepath": [],
                "content": [],
                "extension": []
            }
        }
    },
    "n_multiproc": 10,
    "exclude": {
        "filepath": [
            "gwen001",
            "hisxo\/gitGraber",
            "random-robbie"
        ],
        "content": [
            "xxx",
            "albator"
        ],
        "extension": [
            "css",
            "scss",
            "sass"
        ]
    }
}
bugbaba commented 4 years ago

Sad to hear that and sorry for the trouble https://twitter.com/gwendallecoguic/status/1275741693464195072 :)

gwen001 commented 4 years ago

No it's fine don't worry. I just don't expect that peoples use the scripts I personally used once 6 months/1 year ago. So I can't maintain all of them there is too much, sorry.