Skip to content

Instantly share code, notes, and snippets.

View NileshGule's full-sized avatar

Nilesh Gule NileshGule

View GitHub Profile
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst Microsoft-Windows-Subsystem-Linux -source windowsFeatures
# Enable Windows Controlled Folder Access
Set-MpPreference -EnableControlledFolderAccess Enabled
cinst -y 7zip.install --cacheLocation "$env:userprofile\AppData\Local\Temp\chocolatey"

Pre-requisites for AKS Learning Series - Part 2 - Docker Compose

  • All the pre-requisites from Part 1 related to Docker Hands on Lab
  • Docker-compose Verify that docker-compose is succesfully installed by running the following command in your favourite terminal
docker-compose version
@NileshGule
NileshGule / api-deployment.yml
Last active August 7, 2018 15:03
Files related to blog post on init-container
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: techtalksapi
namespace: abc2018sg
labels:
run: techtalksapi
spec:

Pre-requisites for Docker Hands On Lab

For the first part of the Docker hands on session, following software will be required

  • Github account (Optional)
  • Dockerhub account (Optional)
  • Docker installed locally on the machine (Mandatory)
  • Lightweight code editor
  • Powershell (Optional)
  • Terminal (Optional)
  • DotNet Core (Optional)

Voxxed Days Singapore 2018

Docker Compose commands

docker-compose --file docker-compose-build.yml build

docker-compose --file docker-compose-build.yml up
---
apiVersion: v1
kind: Namespace
metadata:
name: abc2018sg

Hackathon 23 Feb 2018

Generate SSH key pair

ssh-keygen –t rsa

Provision Swm clusteer using Azure Resource template

Login to Azure account (not required in case of cloud shell)

@NileshGule
NileshGule / AzureMeetup-25-Jan-2018.MD
Last active February 15, 2018 16:49
Commands for Azure meet up on 25th Jan 2018

Azure Meetup 25 January 2018

Generate SSH key pair

ssh-keygen –t rsa

Azure Resource template

Login to Azure account (not required in case of cloud shell)

@NileshGule
NileshGule / azuredeploy.json
Last active January 22, 2018 16:06
Gist related to Azure ARM blog post
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"agentCount": {
"allowedValues": [
1,
2,
3,
4,
@NileshGule
NileshGule / CoreWebAPI.csproj
Last active January 10, 2018 15:33
Gist related to 2nd part of SQL 2017 on Linux & Core MVC
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<!-- <TargetFramework>netcoreapp2.0</TargetFramework> -->
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeFrameworkVersion>2.1.0-preview1-25919-02</RuntimeFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>