Skip to content

Instantly share code, notes, and snippets.

View Adeotan's full-sized avatar
🏠
Working from home

Adeotan Lambe Adeotan

🏠
Working from home
View GitHub Profile
@Adeotan
Adeotan / Terraform-Associate.txt
Created November 15, 2024 12:55 — forked from ashokbalaraman/Terraform-Associate.txt
Terraform Associate Certification - Notes
Best Practices: https://www.terraform-best-practices.com/code-structure
Naming Convention: https://www.terraform-best-practices.com/naming
1. AWS Hardening Guidelines (There is a 156 Page guideline)
2. Convert this hardening guidelines into Terraform code
3. Configuration Management (Chef, Puppet, Ansible,..) vs Infrastructure Orchestration (Terraform, CloudFormation,..)
4. Terraform can do both configuration management and infrastructure orchestration
5. Terraform Init downloads all the plugins associated with the "provider" (check this under the directory .terraform/providers/registry.terraform.io/hashicorp/aws/…..
6. Terraform.tfvars vs variables.tf
7. Use conditional expression to handle environment specific workflow
@Adeotan
Adeotan / kubernetes.md
Created November 12, 2022 11:56 — forked from xmlking/kubernetes.md
Kubernetes Cheat Sheet

Kubernetes

Install

Prerequisites

  1. Bash v5+ checkout Upgrading Bash on macOS
  2. bash-completion@2

Install Docker and Kubernetes(k8s)

FROM python:3.6.4-slim-stretch
RUN apt-get update && apt-get install -y build-essential git time
RUN pip install https://anaconda.org/intel/tensorflow/1.6.0/download/tensorflow-1.6.0-cp36-cp36m-linux_x86_64.whl
RUN git clone https://github.com/tensorflow/models.git
ENV PYTHONPATH $PYTHONPATH:$HOME/models
WORKDIR $HOME/models/official/resnet/
RUN pip3 install -r ../requirements.txt
apiVersion: v1
kind: Pod
metadata:
name: stress-pod
spec:
containers:
- image: gcr.io/google-containers/stress:v1
args: ["-cpus", "48"]
name: stress-container
resources:
apiVersion: v1
kind: Pod
metadata:
name: tf-wide-deep-census-pod
spec:
containers:
- image: <insert-image>
command: ["/bin/sh"]
args: ["-c", "/usr/bin/time python ./wide_deep.py --model_type=wide_deep --train_epochs=500 --epochs_between_eval=500 --batch_size=32561"]
name: tf-wide-deep-census
FROM python:3.6-slim-stretch
RUN apt-get update && apt-get install -y git time
RUN pip install https://anaconda.org/intel/tensorflow/1.6.0/download/tensorflow-1.6.0-cp36-cp36m-linux_x86_64.whl
RUN git clone https://github.com/tensorflow/models.git
ENV PYTHONPATH $PYTHONPATH:$HOME/models
WORKDIR $HOME/models/official/wide_deep
RUN python ./data_download.py
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
################################
# Install apt-get Requirements #
################################
# General
RUN apt-get update && \
apt-get install -y python3-pip cmake zlib1g-dev python3-tk python-opencv \
# Boost libraries
FROM coach-base:master as builder
# prep mujoco and any of its related requirements.
# Mujoco
RUN mkdir -p ~/.mujoco \
&& wget https://www.roboti.us/download/mjpro150_linux.zip -O mujoco.zip \
&& unzip -n mujoco.zip -d ~/.mujoco \
&& rm mujoco.zip
ARG MUJOCO_KEY
ENV MUJOCO_KEY=$MUJOCO_KEY