Skip to content

Instantly share code, notes, and snippets.

View correaswebert's full-sized avatar
〽️
Novels, music, code...

Swebert Correa correaswebert

〽️
Novels, music, code...
View GitHub Profile
@correaswebert
correaswebert / Makefile
Last active January 28, 2021 20:23
A simple Makefile for C
TARGET := main
SRC := src
INC := include
BIN := bin
TEST := test
BUILD := build
# group the files
HEADER = $(wildcard $(INC)/*.h)
@correaswebert
correaswebert / Dockerfile
Created January 26, 2021 18:16
A simple Dockerfile.
# ensure the exact baseimage is used (exemplified below)
FROM node:lts-alpine@sha256:b2da3316acdc2bec442190a1fe10dc094e7ba4121d029cb32075ff59bb27390a
# install dumb-init for invoking docker
RUN apk add dumb-init
# optimize for production
ENV NODE_ENV production
WORKDIR /usr/src/app
@correaswebert
correaswebert / nginx.config
Created January 26, 2021 18:14
A simple HTTPS enabled Nginx config.
server {
listen 80;
server_name <domain-name>;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name <domain-name>;