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
import axios from 'axios'; | |
import pLimit from 'p-limit'; | |
const PROJECT_ID = "idhere"; | |
const TOKEN = "tokenhere"; | |
const GITLAB_INSTANCE = "gitlab.com"; | |
const PER_PAGE = 100; | |
let page = 1; | |
const limit = pLimit(8); // Limit the number of parallel requests to 8 |
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
<?php | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
// Languages used to generate menus and for template translations | |
$languages = [ | |
['id' => 'en', 'title' => 'English', 'icon' => 'US'], | |
['id' => 'es', 'title' => 'ESPAÑOL'], | |
['id' => 'ru', 'title' => 'РУССКИЙ'], |
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
<?php | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('max_execution_time', 300); //300 seconds = 5 minutes. In case if your CURL is slow and is loading too much (Can be IPv6 problem) | |
error_reporting(E_ALL); | |
define('OAUTH2_CLIENT_ID', '1234567890'); | |
define('OAUTH2_CLIENT_SECRET', 'verysecretclientcode'); |