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
Users: | |
curl -u "XXXX" -s https://api.github.com/users/malkab/repos\?per_page\=1000 | perl -ne 'print "$1\n" if (/"ssh_url": "([^"]+)/)' | xargs -n 1 git clone | |
ORGS: | |
curl -u "XXXX" -s https://api.github.com/orgs/geographicags/repos\?per_page\=1000 | perl -ne 'print "$1\n" if (/"ssh_url": "([^"]+)/)' | xargs -n 1 git clone |
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 | |
USER=XXX | |
ORG=XXX | |
PASS=XXX | |
REPO=XXX | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ORG/$REPO/labels/bug" | |
# curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ORG/$REPO/labels/duplicate" | |
# curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ORG/$REPO/labels/enhancement" |
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
var USER_BITBUCKET='XXX', | |
ORG_BITBUCKET='XXX', | |
PASS_BITBUCKET='XXX', | |
USER_GITHUB='XXX', | |
ORG_GITHUB='XXX', | |
PASS_GITHUB='XXX'; | |
var request = require('request'); | |
var listrepos = []; |
NewerOlder