Skip to content

Instantly share code, notes, and snippets.

@nivleshc
nivleshc / CF_Add-WindowsComponents.ps1
Created May 26, 2018 13:00
Add-WindowsComponents.ps1 PowerShell script used by CloudFormation template to deploy Active Directory Domain Services
Add-WindowsFeature -Name RSAT-AD-PowerShell
Add-WindowsFeature -Name AD-Domain-Services -IncludeAllSubFeature -IncludeManagementTools
Add-WindowsFeature -Name DNS -IncludeAllSubFeature -IncludeManagementTools
Add-WindowsFeature -Name GPMC -IncludeAllSubFeature -IncludeManagementTools
@nivleshc
nivleshc / CF_Configure-ADForest.ps1
Created May 26, 2018 13:01
Configure-ADForest.ps1 PowerShell script used by CloudFormation template to deploy Active Directory Domain Services
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]$DomainName,
[Parameter(Mandatory=$true)]
[string]$DomainNetBiosName,
[Parameter(Mandatory=$true)]
[string]$DomainMode,
@nivleshc
nivleshc / nginx-01-index.html
Created February 27, 2019 05:11
default webpage for nginx-01 docker image
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx-01:9001!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
background-color: #ff0000;
@nivleshc
nivleshc / nginx-02-index.html
Created February 28, 2019 03:54
Default welcome page for nginx-02 container
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx-02:9002!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
background-color: #0ff000;
@nivleshc
nivleshc / nginx-03-index.html
Created February 28, 2019 03:56
Default welcome page for nginx-03 container
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx-03:9003!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
background-color: #0000ff;
@nivleshc
nivleshc / nginx-01-default.conf
Created February 28, 2019 04:03
nginx configuration file for nginx-01 container
server {
listen 9001;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
@nivleshc
nivleshc / nginx-02-default.conf
Created February 28, 2019 04:05
nginx server configuration file for nginx-02 container
server {
listen 9002;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
@nivleshc
nivleshc / nginx-03-default.conf
Created February 28, 2019 04:07
nginx server configuration file for nginx-03 container
server {
listen 9003;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
@nivleshc
nivleshc / nginx-01-Dockerfile
Created February 28, 2019 04:26
Dockerfile for cooking nginx-01 container image
FROM nginx
COPY nginx-01-default.conf /etc/nginx/conf.d/default.conf
COPY nginx-01-index.html /usr/share/nginx/html/index.html
@nivleshc
nivleshc / nginx-02-Dockerfile
Created February 28, 2019 04:27
Dockerfile for cooking nginx-02 container image
FROM nginx
COPY nginx-02-default.conf /etc/nginx/conf.d/default.conf
COPY nginx-02-index.html /usr/share/nginx/html/index.html