Skip to content

Instantly share code, notes, and snippets.

View NileshGule's full-sized avatar

Nilesh Gule NileshGule

View GitHub Profile
@NileshGule
NileshGule / default-config.yml
Last active July 5, 2017 02:27
Gist for storing files for Ansible Mac Setup
---
downloads: ~/.ansible-downloads/
general:
local_home: "{{ lookup('env','HOME') }}"
user_name: "{{ lookup('env', 'USER') }}"
configure_dotfiles: no
configure_sudoers: yes
@NileshGule
NileshGule / GitHubLinks.md
Created July 17, 2017 06:01
Useful links related to GitHub
@NileshGule
NileshGule / CoreMVC.csproj
Last active December 7, 2017 15:52
Gist related to the blogpost on upgrading to Alpine based docker image
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeFrameworkVersion>2.1.0-preview1-25919-02</RuntimeFrameworkVersion>
<!--<RuntimeIdentifiers>win8-x64;ubuntu.16.10-x64;osx.10.12-x64</RuntimeIdentifiers>-->
</PropertyGroup>
<ItemGroup>
<Compile Remove="releaseOutput\**" />
@NileshGule
NileshGule / Dockerfile
Last active July 26, 2022 11:55
docker-sql-2017
FROM microsoft/mssql-server-linux:2017-latest
ENV ACCEPT_EULA=Y
ENV SA_PASSWORD=January2018
ENV MSSQL_PID=Developer
WORKDIR /src
COPY initialize-database.sql ./
COPY setup-database.sh ./
@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>
@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 / 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)

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)

---
apiVersion: v1
kind: Namespace
metadata:
name: abc2018sg

Voxxed Days Singapore 2018

Docker Compose commands

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

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