Skip to content

Instantly share code, notes, and snippets.

View luminuszz's full-sized avatar
Let's code !!

Davi Ribeiro luminuszz

Let's code !!
View GitHub Profile
@use '../variables'
.app
display: flex
flex-direction: column
justify-content: center
padding-top: 90px
.main
display: grid
@luminuszz
luminuszz / keybindings.json
Created March 14, 2024 14:16
my vscode shortcuts
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+e",
"command": "workbench.view.explorer",
"when": "workbench.scm.active"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer",
{
"editor.tabSize": 2,
"editor.fontSize": 14,
"editor.formatOnSave": true,
"explorer.compactFolders": false,
"editor.renderWhitespace": "all",
"editor.minimap.enabled": false,
"editor.renderLineHighlight": "none",
"editor.mouseWheelZoom": true,
"workbench.layoutControl.type": "menu",
@luminuszz
luminuszz / mongodb.rs
Created February 13, 2024 00:34
Create a mongodb replics for use with prisma ORM
ARG MONGO_VERSION
FROM mongo:${MONGO_VERSION}
# we take over the default & start mongo in replica set mode in a background task
ENTRYPOINT mongod --port $MONGO_REPLICA_PORT --replSet rs0 --bind_ip 0.0.0.0 & MONGOD_PID=$!; \
# we prepare the replica set with a single node and prepare the root user config
INIT_REPL_CMD="rs.initiate({ _id: 'rs0', members: [{ _id: 0, host: '$MONGO_REPLICA_HOST:$MONGO_REPLICA_PORT' }] })"; \
# we wait for the replica set to be ready and then submit the command just above
until ($MONGO_COMMAND admin --port $MONGO_REPLICA_PORT --eval "$INIT_REPL_CMD"); do sleep 1; done; \
@luminuszz
luminuszz / React-Native-Missing-KeyStore.md
Created February 14, 2023 17:46 — forked from cbedroid/React-Native-Missing-KeyStore.md
React-Native Generating SigningReport (Error: Missing keystore)

Fix Firebase Missing Keystore for React Native App

Generate new keystore certificate

For more info, visit https://rnfirebase.io/

 # Open your terminal 
 # Enter the following to generate your missing key. (if fails, try elevating your privileges with `sudo`).
 
version: '3.7'
services:
database:
image: postgres
container_name: db_micro_service_email
restart: always
ports:
- ${DB_PORT}:${DB_PORT}
environment:
@luminuszz
luminuszz / jest.config.js
Created August 28, 2021 17:39
Setup jest config for resolve ts-paths
/* eslint-disable @typescript-eslint/no-var-requires */
const { pathsToModuleNameMapper } = require('ts-jest/utils')
const { compilerOptions } = require('./tsconfig.json')
module.exports = {
setupFiles: ['dotenv/config'],
clearMocks: true,
verbose: true,