Skip to content

Instantly share code, notes, and snippets.

View morais90's full-sized avatar
🏠
Working from home

Willian Morais morais90

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am morais90 on github.
  • I am morais90 (https://keybase.io/morais90) on keybase.
  • I have a public key whose fingerprint is 0A9C 209E 09D6 3403 087F 61CD A23E A346 A66F DED2

To claim this, I am signing this object:

@morais90
morais90 / python-back-end
Last active March 30, 2021 11:36
Oportunidade Python Back-end Pleno/Sênior
Sobre o Koper
Koper é a plataforma de gestão de construção cívil mais completa do mercado!
Acreditando em uma gestão horizontal, buscamos proporcionar ao nosso time a melhor experiência possível, enxergando a
criatividade e autonomia como pilares fundamentais em nossa cultura.
Para a criação do Koper, foram investidos 5 anos de pesquisa e desenvolvimento, temos como laboratório algumas Construtoras
e Incorporadoras de Biguaçu, que foram nossos verdadeiros parceiros ao longo dessa jornada.
Acreditamos que soluções inovadoras são aquelas que resolvem problemas reais! Por isso, nos orgulhamos em dizer
# build stage
FROM python:3-alpine as builder
RUN mkdir /install \
&& apk add --no-cache DEPENDENCIES
ADD . /code
WORKDIR /code
RUN pip install --upgrade pip
@morais90
morais90 / api.conf
Created August 14, 2018 13:40
NGINX Proxy for API
upstream api {
server 127.0.0.1:8000;
}
server {
listen 80;
server_name xxxx.xxxx.com;
location / {
add_header 'Access-Control-Allow-Origin' 'xxxx.xxxx.com' always;
@morais90
morais90 / application.conf
Created August 14, 2018 13:36
Supervisord for Django application [Gunicorn]
[program:application]
command=/path/to/bin/gunicorn application.wsgi
directory=/path/to/application
user=application
autostart=true
autorestart=true
redirect_stderr=true
environment=DJANGO_SETTINGS_MODULE="application.settings"
@morais90
morais90 / default.conf
Last active February 25, 2020 17:27
NGINX Single Page Application (SPA) config
server {
listen 80;
server_name xxxx.xxxx.com;
root /usr/share/nginx/html;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
@morais90
morais90 / Dockerfile
Last active August 14, 2018 13:22
Dockerfile Multistage Node/Vue/React/SPA
FROM node:alpine as builder
ARG APP_ENV=development
ENV NODE_ENV=$APP_ENV
RUN apk add --update --no-cache git
ADD . /code
WORKDIR /code
FORMAT: 1A
# Data Structures
## Café GET (object)
+ id: `1` (number, required) - Identificador
+ created: `2017-10-11` (string, required) - Data de preparo
+ tipo_preparo (enum, required)
+ 0 (number) - Café com Leite
from threading import Event
class TimeoutError(Exception):
pass
def asynctest(timeout=None):
def decorator(func):
def wrapper(self):
func(self)
self.async_wait(timeout)