#create config map
curl -sL https://git.io/Jt80f > /tmp/site.conf
kubectl create cm nginx-config --from-file=/tmp/site.conf -o yaml --dry-run=client
#lets see it in action, will ya ?
kubectl create cm nginx-config --from-file=/tmp/site.conf
kubectl apply -f https://git.io/Jt8uz
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:CreatePolicy", | |
"iam:CreateRole", | |
"iam:AttachRolePolicy" |
This file contains 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
install: | |
ln -s $PWD/librespeed-cli.service ~/.config/systemd/user/librespeed-cli.service | |
systemctl --user enable librespeed-cli.service | |
systemctl --user start librespeed-cli.service | |
re-install: | |
systemctl --user daemon-reload | |
systemctl --user restart librespeed-cli.service |
This file contains 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
xps | |
description: Notebook | |
product: XPS 15 7590 (0905) | |
vendor: Dell Inc. | |
serial: 2K14DB3 | |
width: 64 bits | |
capabilities: smbios-3.2.0 dmi-3.2.0 smp vsyscall32 | |
configuration: boot=normal chassis=notebook family=XPS sku=0905 uuid=44454C4C-4B00-1031-8034-B2C04F444233 | |
*-core | |
description: Motherboard |
This file contains 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
variable date {} | |
variable url {} | |
meetup "terraform_tidbits" { | |
date = var.date | |
url = var.url | |
title = "Terraform Practical Tit-Bits" | |
description = "In this session we will explore some of the common practical tit-bits of using terraform. If you are having difficulties collaborating with your friends/co-workers due to hassles of state file management, dealing with 10s of secrets/variables, managing different infra environments; well, this session is just for you." | |
} |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name localhost; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
} |
This file contains 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
hotKey: | |
# Hitting Shift-0 navigates to your pod view | |
shift-0: | |
shortCut: Shift-0 | |
description: Viewing pods | |
command: pods | |
shift-9: | |
shortCut: Shift-9 | |
description: View deployments | |
command: dp |
This file contains 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
locals { | |
key = "hello" | |
value = local.key | |
} | |
resource "null_resource" "example1" { | |
provisioner "local-exec" { | |
command = "echo ${local.value}" | |
} | |
} |
This file contains 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
FROM node:alpine | |
RUN apk add --no-cache --update python make g++ && \ | |
rm -rf /var/cache/apk/* | |
ENV HUBOT_USER hubot | |
ENV HUBOT_GROUP hubot | |
ENV HUBOT_HOME /hubot | |
RUN addgroup -g 501 $HUBOT_GROUP && \ |
This file contains 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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: gitlab | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: gitlab-admin |