Skip to content

Instantly share code, notes, and snippets.

View DeepInThought's full-sized avatar
🎯
Focusing

DeepInThought

🎯
Focusing
View GitHub Profile
@DeepInThought
DeepInThought / README.md
Created October 13, 2020 18:48 — forked from thomaslarsen/README.md
Convert PEM certificate to JSON format
@DeepInThought
DeepInThought / README.md
Created October 13, 2020 18:48 — forked from thomaslarsen/README.md
Convert PEM certificate to JSON format
@DeepInThought
DeepInThought / dns.tf
Created May 30, 2019 09:49 — forked from syntaqx/dns.tf
G Suite Terraform Definition
locals {
gsuite_services = ["calendar", "drive", "groups", "mail", "sites"]
}
// host -a domain.io
resource "google_dns_managed_zone" "domain_io" {
name = "domain-io"
dns_name = "domain.io."
}
@DeepInThought
DeepInThought / Dockerfile
Created May 30, 2019 09:48 — forked from syntaqx/Dockerfile
docker-compose volume binding
ARG GO_VERSION=1.11
ARG ALPINE_VERSION=3.8
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder
WORKDIR /go/src/github.com/syntaqx/example
RUN ls -alh
ENTRYPOINT ["go"]
@DeepInThought
DeepInThought / Dockerfile
Created May 30, 2019 09:48 — forked from syntaqx/Dockerfile
Commented Dockerfile
# Line blocks used for commenting start with a #.
#
# Default syntax is:
# INSTRUCTION arguments
#
# INSTRUCTIONs are executed by order.
# FROM
#
# It defines the base image to use to start the build process.
@DeepInThought
DeepInThought / cloud-init.yaml
Created May 30, 2019 09:47 — forked from syntaqx/cloud-init.yaml
cloud init to install docker on ubuntu
#cloud-config
package_update: true
package_upgrade: true
package_reboot_if_required: true
manage-resolv-conf: true
resolv_conf:
nameservers:
- '8.8.8.8'
@DeepInThought
DeepInThought / main.tf
Created May 30, 2019 09:47 — forked from syntaqx/main.tf
Terraform Generate Self-Signed Certificate Files (Nginx+)
resource "tls_private_key" "ca" {
algorithm = "RSA"
}
resource "tls_self_signed_cert" "ca" {
key_algorithm = "RSA"
private_key_pem = "${tls_private_key.ca.private_key_pem}"
subject {
common_name = "${var.domain}"
@DeepInThought
DeepInThought / docker-compose.yml
Created May 30, 2019 09:46 — forked from syntaqx/docker-compose.yml
Swagger UI PathPrefix patches for Traefik
version: '3.3'
services:
apidocs:
image: swaggerapi/api-ui
environment:
API_URL: http://api.example.com/swagger.json
ports:
- 8080
labels:
@DeepInThought
DeepInThought / docker-compose.yml
Created May 30, 2019 09:46 — forked from syntaqx/docker-compose.yml
Swagger UI PathPrefix patches for Traefik
version: '3.3'
services:
apidocs:
image: swaggerapi/api-ui
environment:
API_URL: http://api.example.com/swagger.json
ports:
- 8080
labels:
@DeepInThought
DeepInThought / cloud-config.yml
Created May 30, 2019 09:46 — forked from syntaqx/cloud-config.yml
CoreOS Docker Swarm
#cloud-config
hostname: ${hostname}
write_files:
- path: /etc/systemd/system/update-engine.service.d/proxy.conf
content: |
[Service]
Environment=HTTPS_PROXY=http://proxy.example.com:1234