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
UPDATE journey_patterns p SET name = ( | |
SELECT l.name | |
FROM journey_patterns jp | |
JOIN routes r ON jp.route_id = r.id | |
JOIN lines l ON r.line_id = l.id | |
WHERE l.name IS NOT NULL | |
AND l.name <> '' | |
AND jp.id = p.id | |
) || ' - ' || 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
package com.dev1.api; | |
import com.dev1.api.exception.ApiException; | |
import com.dev1.api.exception.ApiExceptionNetwork; | |
import com.dev1.api.exception.ApiExceptionUncaught; | |
import com.dev1.api.exception.mapper.ErrorMessage; | |
import com.google.common.collect.ImmutableList; | |
import org.apache.http.HttpHeaders; | |
import org.apache.log4j.Logger; |
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
import org.apache.commons.lang3.tuple.Pair; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class ReflectionClassFields { |
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
image: docker:19.03.1 | |
variables: | |
DOCKER_HOST: tcp://docker:2375 | |
DOCKER_DRIVER: overlay2 | |
PROJECT_IMAGE: registry.dev1-0.com/project | |
PROJECT_RELEASE_IMAGE: $PROJECT_IMAGE:$CI_COMMIT_REF_NAME | |
DOCKER_TLS_CERTDIR: "" | |
services: |
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
{ | |
"auths": { | |
"registry.domain.com": { | |
"auth": "tokenXXXX" | |
} | |
}, | |
"HttpHeaders": { | |
"User-Agent": "Docker-Client/18.09.0 (linux)" | |
} | |
} |
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
version: '3' | |
services: | |
ouroboros: | |
container_name: ouroboros | |
hostname: ouroboros | |
image: pyouroboros/ouroboros | |
environment: | |
- CLEANUP=true | |
- INTERVAL=300 | |
- LOG_LEVEL=info |
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
version: "3.4" | |
services: | |
mongo: | |
container_name: mongo | |
image: mongo:4.0 | |
restart: unless-stopped | |
ports: | |
- 27017:27017 | |
environment: |
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
FROM node:10 | |
ENV TZ=Europe/Paris | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
RUN apt-get update && apt-get install -y build-essential && apt-get install -y python | |
# Create app directory | |
WORKDIR /usr/src/app |
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
image: docker:19.03.1 | |
variables: | |
DOCKER_HOST: tcp://docker:2375 | |
DOCKER_DRIVER: overlay2 | |
PROJECT_IMAGE: registry.domain.com/project-name | |
PROJECT_RELEASE_IMAGE: $PROJECT_IMAGE:$CI_COMMIT_REF_NAME | |
DOCKER_TLS_CERTDIR: "" | |
services: |