Skip to content

Instantly share code, notes, and snippets.

View ricardopadua's full-sized avatar
🎯
Focusing

Ricardo Pádua ricardopadua

🎯
Focusing
View GitHub Profile
@ricardopadua
ricardopadua / default.json
Last active April 15, 2021 03:55
sample configuration environment development for prologic-app (https://github.com/ricardopadua/prologic-api)
{
"typeorm": {
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "postgres",
"database": "app_db_name",
"synchronize": true,
@ricardopadua
ricardopadua / Dockerfile
Last active November 26, 2020 07:58
SqlServer (Query with Full-Text Search)
FROM ubuntu:16.04
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -yq curl apt-transport-https && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list && \
apt-get update && \
apt-get install -y mssql-server && \
apt-get install -y mssql-server-ha && \
@ricardopadua
ricardopadua / store.ts
Last active November 26, 2020 07:41
Vue 3 + Vuex 4 - useStoreModule composable
import { useStore, Store } from "vuex";
interface InternalModule<S, A, M, G> {
state: S;
actions: A;
mutations: M;
getters: G;
}
/**
@ricardopadua
ricardopadua / docker-compose.yml
Last active July 23, 2021 18:40
Architecture Distributed Environment
version: '3.4'
services:
cache-redis:
image: 'redis:6-alpine'
container_name: cache-redis
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_DEFAULT_USER: ${REDIS_DEFAULT_USER}
REDIS_DEFAULT_PASS: ${REDIS_DEFAULT_PASS}
ports: