Skip to content

Instantly share code, notes, and snippets.

View mrndhlovu's full-sized avatar
🤓

Mduduzi Ndhlovu mrndhlovu

🤓
  • HubSpot
  • Dublin, Ireland
View GitHub Profile
@mrndhlovu
mrndhlovu / _README.md
Created June 18, 2021 09:01 — forked from JohnAlbin/_README.md
TypeScript + Gatsby config and node API

README

  1. When Gatsby starts up, it will read gatsby-config.js first.
  2. As you can see below, we use that file to require('ts-node').register() which registers a TypeScript evaluator that will be used when Gatsby reads all other API Javascript files. In other words, we only need to do this once in our entire codebase and not in other Gatsby files like gatsby-node.js.
  3. Our gatsby-config.js re-exports all the exported variables available in gatsby-config.ts.
@mrndhlovu
mrndhlovu / docker_wordpress.md
Created November 16, 2020 02:01 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@mrndhlovu
mrndhlovu / nginx.conf
Created November 6, 2020 22:41 — forked from TomTasche/nginx.conf
config for nginx to proxy a specific path to an S3 bucket
# copied from default config
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}