Skip to content

Instantly share code, notes, and snippets.

View hmanzur's full-sized avatar
:octocat:
Github Actions Hachathon 2020 Winner

Habid Enrique Manzur Restrepo hmanzur

:octocat:
Github Actions Hachathon 2020 Winner
View GitHub Profile
@hmanzur
hmanzur / nginx
Last active October 19, 2019 22:19
Nginx http to https redirect
Nginx tips and config
@hmanzur
hmanzur / gitlab-npm-test-deploy-eb.gitlab-ci.yml
Last active October 19, 2019 22:20
Run Node unit tests and deploy to AWS Beanstalk
stages:
- test
- deploy
test unit:
image: node:latest
stage: test
only:
- develop
- master
@hmanzur
hmanzur / BuildExpressDockerfile
Last active October 19, 2019 22:21
Express Nodejs Dockerfile
Dockerize express app with [Sequelize](https://docs.sequelizejs.com) migrations
@hmanzur
hmanzur / DjangoDockerfile
Last active February 16, 2021 19:32
Django Dockerfile
FROM python:latest
# Build arg $settings = (stage, develop, production, local, etc)
ARG settings
# Django App name
ARG $app
# Env vars
ENV PYTHONDONTWRITEBYTECODE 1
@hmanzur
hmanzur / aws_eb_to_env.sh
Last active October 15, 2019 17:12
AWS Beanstalk Environment to .env file
# Get environment variables
eb printenv > .env
# Remove First line ("Environment Variables:")
tail -n +2 .env > tmp.txt
# Trim all whitespaces
cat tmp.txt | tr -d "[:blank:]" > .env
# Result .env file