Last active
          October 8, 2025 17:41 
        
      - 
            
      
        
      
    Star
      
          
          (102)
      
  
You must be signed in to star a gist  - 
              
      
        
      
    Fork
      
          
          (57)
      
  
You must be signed in to fork a gist  
- 
      
 - 
        
Save erdincay/4f1d2e092c50e78ae1ffa39d13fa404e to your computer and use it in GitHub Desktop.  
Revisions
- 
        
erdincay revised this gist
Apr 11, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ echo $page until (( $page -lt $max )) do curl "https://api.github.com/$cntx/$name/repos?page=$page&per_page=100" | grep -e 'clone_url*' | cut -d \" -f 4 | xargs -L1 git clone $page=$page+1 done  - 
        
erdincay renamed this gist
Sep 17, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. - 
        
erdincay revised this gist
Sep 17, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ if [ -z "$1" ]; then echo "waiting for the following arguments: username + max-page-number" exit 1 else name=$1 fi  - 
        
erdincay revised this gist
Sep 17, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ echo $page until (( $page -lt $max )) do curl "https://api.github.com/$cntx/$name/repos?page=$page&per_page=100" | grep -e 'git_url*' | cut -d \" -f 4 | xargs -L1 git clone $page=$page+1 done exit 0  - 
        
erdincay created this gist
Sep 17, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ #!/bin/bash if [ -z "$1" ]; then echo "waiting for the following arguments: username + max-page-number" exit 0 else name=$1 fi if [ -z "$2" ]; then max=2 else max=$2 fi cntx="users" page=1 echo $name echo $max echo $cntx echo $page until (( $page -lt $max )) do curl "https://api.github.com/$cntx/$name/repos?page=$page&per_page=100" | grep -e 'git_url*' | cut -d \" -f 4 | xargs -L1 git clone $page=$page-1 done exit 0