Skip to content

Instantly share code, notes, and snippets.

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

Soumyajit Dutta sanudatta11

🏠
Working from home
View GitHub Profile
@sanudatta11
sanudatta11 / JSDoc Guide
Last active February 28, 2018 16:14
This is a simple Nooby JSDoc Guide
JSDoc-Style-Guide
Forked from the KimonoLabs JS Doc Style Guide
This guide was originally created by Shri Ganeshram as an internal style guide for Kimono Labs and is licensed under the MIT License. You are encouraged to fork this repository and make adjustments according to your preferences. It is currently a work in progress.
You can learn more about JSDoc here.
Table of Contents
Intro
@sanudatta11
sanudatta11 / base_ami.json
Last active January 6, 2019 09:01
This is the Base AMI for Medium Article based on usage of Packer on AWS
{
"variables": {
"aws_access_key": "${AWS_ACCESS_KEY_ID}",
"aws_secret_key": "${AWS_SECRET_ACCESS_KEY}",
"vpc_region": "${vpc_region}",
"vpc_id": "${vpc_id}",
"vpc_public_sn_id": "${vpc_public_sn_id}",
"vpc_public_sg_id": "${vpc_public_sg_id}",
"source_ami": "${source_ami}",
"instance_type": "${instance_type}",
#!/bin/bash -e
main() {
sudo apt-get install -y nano
}
main
{
"aws_access_key": "${AWS_ACCESS_KEY_ID}",
"aws_secret_key": "${AWS_SECRET_ACCESS_KEY}",
"vpc_region": "${vpc_region}",
"vpc_id": "${vpc_id}",
"vpc_public_sn_id": "${vpc_public_sn_id}",
"vpc_public_sg_id": "${vpc_public_sg_id}",
"source_ami": "${source_ami}",
"instance_type": "${instance_type}",
"ssh_username": "${ssh_username}"
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<Name>nodejs-webapp-express</Name>
<RootNamespace>nodejs-webapp-express</RootNamespace>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your Node.js application, please visit
http://go.microsoft.com/fwlink/?LinkId=290972
-->
<configuration>
<appSettings>
<!--
<add key="StorageAccountName" value="" />
<add key="StorageAccountKey" value="" />
<?xml version="1.0" encoding="utf-8"?>
<!-- This file will modify Web.config to enable remote debugging when publishing your project in the Debug configuration.
For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web xdt:Transform="Insert">
<httpRuntime targetFramework="4.5" />
<customErrors mode="Off"/>
</system.web>
@sanudatta11
sanudatta11 / gist:2cea46cafaa8b2c1bdf374d452ba7533
Created January 24, 2019 07:49
windows-webapp-template.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
},