Skip to content

Instantly share code, notes, and snippets.

View sunilake's full-sized avatar

Sunil Bhai sunilake

View GitHub Profile
@sunilake
sunilake / devops_checklist.md
Created August 3, 2018 13:36 — forked from jamesob/devops_checklist.md
DevOps checklist

Security

  • no credentials kept in codebase
    • use consul/zookeeper/etc., then have code load credentials from environment variables
  • using a bastion box to safeguard access to servers
    • in conjunction with, e.g., AWS security groups

Development

@sunilake
sunilake / CF_Configure-ADForest.ps1
Created July 28, 2018 12:29 — forked from nivleshc/CF_Configure-ADForest.ps1
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,
@sunilake
sunilake / CF_Deploying_ADDS.yaml
Created July 28, 2018 12:23 — forked from nivleshc/CF_Deploying_ADDS.yaml
Deploying Active Directory Domain Services using AWS CloudFormation
AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation Template to deploy an EC2 instance and then install ADDS
Parameters:
Client:
Type: String
Description: Summation of client name - to allow same pattern to be used across clients
Default: Nivlesh Chandra
Hostname:
Type: String
Description: Hostname - maximum 15 characters
@sunilake
sunilake / KubernetesOnWindows.md
Created April 16, 2018 15:55 — forked from AdamLJohnson/KubernetesOnWindows.md
How to get Kubernetes running on Windows 10

Kubernetes On Windows

Early in August 2016 Microsoft released the Windows 10 Anniversary Update. There were a number of changes, but the one that got me to actually take the time to install the update was "Bash on Ubuntu on Windows". This feature would install Ubuntu Linux without the kernel. It would run linux in user-mode. Linux would run the commands while Windows does all the work/processing.

For an upcoming project I needed to get Kubernetes running. Being as Kubernetes is not able to be run in Windows the normally accepted way to procees is to create a virtual Linux box and run it from there. I wanted to see if Kubernetes would run in Bash on Ubuntu on Windows.

This is how I got it to work:

Install the Windows 10 Anniversary Update

@sunilake
sunilake / php54_php53_pear_macports.markdown
Created January 27, 2018 06:54 — forked from raphaelstolt/php54_php53_pear_macports.markdown
Installing PHP 5.4 and 5.3 side by side on Max OSX via MacPorts

##Given Apache 2 and MySQL are already installed.

#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated

#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules

@sunilake
sunilake / arcanist.md
Created January 18, 2018 09:17 — forked from potench/arcanist.md
Install Phabricator on OSX and Install arcanist

OSX Arcanist Installation Guide

Note, please replace "WWW/tools" with where ever you store your web tools.

$ mkdir ~/WWW/tools
$ cd ~/WWW/tools
$ git clone https://github.com/phacility/libphutil.git
$ git clone https://github.com/phacility/arcanist.git