Skip to content

Instantly share code, notes, and snippets.

View MexsonFernandes's full-sized avatar
:octocat:
Research and Development

Mexson Fernandes (RoboMex) MexsonFernandes

:octocat:
Research and Development
View GitHub Profile
@MexsonFernandes
MexsonFernandes / Dockerfile
Created April 21, 2021 19:30
Django Poetry Dockfile
# The base image we want to inherit from
FROM python:3.7.7-slim-buster
ENV DJANGO_ENV=${DJANGO_ENV} \
# python:
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
# pip:
PIP_NO_CACHE_DIR=off \
@MexsonFernandes
MexsonFernandes / strapi-docker-compose.yml
Created January 11, 2021 05:50
Deploy strapi with persistence mongo using docker-compose
version: "3"
services:
strapi:
build:
context: ./
container_name: strapi_cms
env_file: .env
restart: unless-stopped
environment:
@MexsonFernandes
MexsonFernandes / .gitlab-ci.yml
Created January 10, 2021 07:07
Gitlab pipeline deploy app on AWS Beanstalk
stages:
- build
- deploy
variables:
S3_BUCKET: "bucket"
S3_ARCHIVE_PATH_PROD: "production/"
build:
image: docker:latest
@MexsonFernandes
MexsonFernandes / docker-compose.commento.yaml
Created January 2, 2021 14:27
Commento deployment using Docker Compose
version: '3'
services:
server:
image: registry.gitlab.com/commento/commento
ports:
- 8080:8080
environment:
COMMENTO_ORIGIN: https://commento.domain.com
COMMENTO_PORT: 8080
@MexsonFernandes
MexsonFernandes / docker-compose.remark42.yml
Last active January 2, 2021 17:21
Deploy remark42 using Docker and Docker Compose
version: '2'
services:
remark:
image: umputun/remark42:latest
container_name: "remark42"
hostname: "remark42"
restart: always
logging:
@MexsonFernandes
MexsonFernandes / admin-bro-nestjs.js
Created January 2, 2021 06:39
Add admin bro to Nestjs application which runs on Fastify
import AdminBro from 'admin-bro';
import * as AdminBroExpress from '@admin-bro/express';
import * as dotenv from 'dotenv';
import { ProfileEntity } from './modules/profile/entities/profile.entity';
import { Database, Resource } from '@admin-bro/typeorm';
import { validate } from 'class-validator';
import { createConnection } from 'typeorm';
import { AppModule } from './app.module';
import { NestFactory } from '@nestjs/core';
@MexsonFernandes
MexsonFernandes / module.js
Created December 9, 2020 19:04
Add a route in Nuxt Module
...
this.extendRoutes((routes, resolve) => {
const routePaths = Object.assign({
admin: resolve(__dirname, './templates/pages/index.vue')
})
routes.push({
name: 'route_name',
path: '/' + 'route_name',
component: routePaths.admin
})
<template>
<div>
<input
type="text"
placeholder="Search Your Interest"
@input="debounceSearch()"
v-model="searchInput"
/>
</div>
</template>
@MexsonFernandes
MexsonFernandes / github-profile-visit-count.txt
Last active August 13, 2020 07:04
A NodeJS implementation of profile visit API hosted on Glitch.
0
@MexsonFernandes
MexsonFernandes / docker-ubuntu-1804.sh
Last active August 1, 2023 21:38
Install Docker on Ubuntu 18.04 (without sudo mode docker cli setup)
#!/bin/bash
echo "Updating system..."
sudo apt update
echo "Installing dependencies..."
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
echo "Downloading data..."
sudo apt install -y curl