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
# One liner to clone all your group projects | |
# with a NodeJS interpreter. You need to substitute | |
# two things in this one liner: group, token. | |
curl -s https://gitlab.com/api/v4/groups/group/projects?private_token=token&search=&per_page=999 > gitlab.json && node -e "const repos = require('./gitlab.json'); const { execSync } = require('child_process'); repos.reduce((previous, repo) => { execSync('git clone ' + repo.ssh_url_to_repo); }, undefined)" |
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
const repos = require('./gitlab.json'); | |
const { execSync } = require('child_process'); | |
repos.reduce((previous, repo) => { | |
execSync('git clone ' + repo.ssh_url_to_repo); | |
}, undefined) |
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
'use strict'; | |
let fs = require('fs'), | |
http = require('http'), | |
HOSTNAME =process.env.HOSTNAME || '0.0.0.0', | |
PORT = process.env.PORT || 8080, | |
ACK_HTTP_CODE = 200, | |
ACK_CONTENT_TYPE = 'text/plain', |
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
addEventListener('fetch', event => { | |
return event.respondWith( | |
new Response(event.request.headers.get('CF-Connecting-IP')) | |
) | |
}) |
OlderNewer