Skip to content

Instantly share code, notes, and snippets.

View acidiney's full-sized avatar
🎯
Focusing

Acidiney Dias acidiney

🎯
Focusing
View GitHub Profile
// utils/slugify-adapter-impl.ts
import db from '@adonisjs/lucid/services/db'
import slugify from 'slugify'
export const slugifyAdapter = async (
data: string,
options: {
tableName: string
fieldName: string
@acidiney
acidiney / sonarqube-postgres-docker.md
Created December 16, 2020 10:06 — forked from ceduliocezar/sonarqube-postgres-docker.md
How easily run Sonar Qube and PostgresSQL with Docker Containers

TL;DR

After installing Docker, follow three steps:
Step 1:
Run: docker network create mynet

Step 2:
Run: docker run --name sonar-postgres -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d -p 5432:5432 --net mynet postgres

Step 3:
Run: docker run --name sonarqube -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL=jdbc:postgresql://sonar-postgres:5432/sonar -d --net mynet sonarqube:5.6

public function sendMessage(Array $destinies, String $message, $hasSpecialCharacter = false) {
$data = [
"ApiKey" => "ApiKey",
"Mensagem" => $message,
"Destino" => $destinies,
"CEspecial" => $hasSpecialCharacter
];
$header = [
'http' => [