This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IDIR =../include | |
| CC=clang | |
| CFLAGS=-I$(IDIR) -g -Wall -O0 | |
| ODIR=. | |
| LDIR =../lib | |
| LIBS=-lm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *, | |
| *:before, | |
| *:after { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body, | |
| div, | |
| span, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARG PORT=3000 | |
| FROM node:14-alpine AS node | |
| # Builder stage | |
| FROM node AS builder | |
| # Use /app as the CWD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ######################################## | |
| # Put this on a Server | |
| # run chmod +x deploy_app.sh to make the script executable | |
| # | |
| # Execute this script: ./deploy_app.sh ${DOCKER_IMAGE:TAG} ${CONTAINER_NAME} ${PORT} | |
| # Replace the ${TAG} with the actual Build Tag you want to deploy | |
| # | |
| ######################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v2.3.0 | |
| hooks: | |
| - id: check-yaml | |
| - id: end-of-file-fixer | |
| - id: trailing-whitespace | |
| - repo: https://github.com/psf/black | |
| rev: 23.12.1 | |
| hooks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* https://piccalil.li/blog/a-modern-css-reset */ | |
| /* Box sizing rules */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """update_godaddy_dns.py | |
| Updates a GoDaddy DNS record with a new external IP address using the GoDaddy API | |
| Run in debug mode (-D) to check the IP but not update DNS records | |
| https://developer.godaddy.com/doc/endpoint/domains | |
| Requires: | |
| configargparse | |
| requests | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| packer { | |
| required_plugins { | |
| amazon = { | |
| version = ">= 1.2.8" | |
| source = "github.com/hashicorp/amazon" | |
| } | |
| } | |
| } | |
| source "amazon-ebs" "ubuntu" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| FORMAT = "%(asctime)s: %(levelname)s: %(lineno)s: %(message)s" | |
| DATE_FORMAT = "%Y-%m-%d %H:%M:%S" | |
| log = logging.getLogger() | |
| logging.basicConfig(level=logging.DEBUG, format=FORMAT, datefmt=DATE_FORMAT) |