Skip to content

Instantly share code, notes, and snippets.

View gomex's full-sized avatar

Rafael Gomes gomex

View GitHub Profile
@gomex
gomex / testando.md
Created January 24, 2017 17:05
Testando

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed convallis, justo ut faucibus facilisis, orci ex interdum diam, quis iaculis arcu quam ac lacus. Quisque eu felis at lorem feugiat laoreet. Phasellus pretium elit id eros consequat feugiat. Mauris quis sollicitudin quam. Maecenas maximus, enim ac tempor vestibulum, augue velit placerat risus, ac finibus eros nisl eu risus. Nulla sed volutpat quam. Cras eget maximus purus.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed convallis, justo ut faucibus facilisis, orci ex interdum diam, quis iaculis arcu quam ac lacus. Quisque eu felis at lorem feugiat laoreet. Phasellus pretium elit id eros consequat feugiat. Mauris quis sollicitudin quam. Maecenas maximus, enim ac tempor vestibulum, augue velit placerat risus, ac finibus eros nisl eu risus. Nulla sed volutpat quam. Cras eget maximus purus.

version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
# import env config
cnf ?= .env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# Get the latest tag
TAG=$(shell git describe --tags --abbrev=0)
GIT_COMMIT=$(shell git log -1 --format=%h)
@gomex
gomex / docker-compose.yml
Created August 18, 2019 21:21
Docker Compose GELF
version: '3'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongodb:
image: mongo:3
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3
environment:
- http.host=0.0.0.0
@gomex
gomex / asg.tf
Last active August 23, 2019 22:07
resource "aws_appautoscaling_target" "app_scale_target" {
service_namespace = "ecs"
resource_id = "service/${data.aws_ecs_cluster.main.id}/${aws_ecs_service.main.name}"
scalable_dimension = "ecs:service:DesiredCount"
max_capacity = "${var.asg_max_tasks}"
min_capacity = "${var.asg_min_tasks}"
}