echo -e "git@repo1.git\ngit@repo2.git\ngit@repo3.git" > repos.lst # Add all your repositories in this file
chmod +x ./mergerepos.sh
./mergerepos.sh new-project repos.lst # Run the script with the new project name
This file contains 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
#!/usr/bin/env sh | |
set -e | |
# Usage: | |
# export CI_API_TOKEN=<YOUR_TOKEN with api scope from https://gitlab.com/profile/personal_access_tokens> | |
# export CI_API_V4_URL=https://gitlab.com/api/v4 | |
# export CI_PROJECT_ID=37 | |
# | |
# ./deployment/bin/stop-all-dev-environments |
This file contains 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 | |
/** | |
* Usage : php valleys.php 8 DDUUUUDD | |
* | |
* 1 | |
*/ | |
function countValleys(string $path): int | |
{ |
This file contains 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 | |
/** | |
* Usage : php staircase.php 4 | |
* | |
* # | |
* ## | |
* ### | |
* #### | |
*/ |
This file contains 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 | |
/** | |
* Returns all days between two dates matching a wanted position in a week, in a month. | |
* | |
* For instance, in order to get all dates matching the request: | |
* "First and third monday and friday of each month between 2022-01-08 and 2022-06-15" : | |
* | |
* $days = getDatesInRangeByDaysInMonth(new DateTimeImmutable('2022-01-08'), new DateTimeImmutable('2022-06-15'), [1, 5], [1, 3]); | |
* |
This file contains 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 | |
namespace App\Service; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\DBAL\Schema\AbstractSchemaManager; | |
use Doctrine\DBAL\Schema\ForeignKeyConstraint; | |
use Doctrine\DBAL\Schema\Table; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Psr\Log\LoggerInterface; |
This file contains 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
--- | |
format_version: '8' | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
project_type: ios | |
trigger_map: | |
- push_branch: "*" | |
workflow: primary | |
- pull_request_source_branch: "*" | |
workflow: primary | |
workflows: |
This file contains 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
<!-- <web-app> --> | |
<!-- ... --> | |
<filter> | |
<filter-name>GzipFilter</filter-name> | |
<filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class> | |
<init-param> | |
<param-name>mimeTypes</param-name> | |
<param-value>text/html,text/plain,text/xml,application/xhtml+xml,application/xml,text/css,application/javascript,image/svg+xml,application/json,application/xml; charset=UTF-8</param-value> | |
</init-param> |
This file contains 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/sh | |
# This script must be added in the "User Data" field of the ec2 instance configuration | |
service iptables start | |
iptables -F | |
iptables -t nat -F | |
iptables -t mangle -F |
This file contains 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 | |
namespace App\ModuleContractBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
class CategoryType extends AbstractType | |
{ |
NewerOlder