This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Welcome to NP"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
### Install Puppet and Modules | |
yum check-update -y | |
rpm -Uvh https://yum.puppet.com/puppet5/puppet5-release-el-7.noarch.rpm | |
yum check-update -y | |
yum groupinstall "Development Tools" -y | |
yum install ruby nc puppet-agent facter -y | |
ln -sf /opt/puppetlabs/bin/puppet /usr/bin/puppet | |
ln -sf /opt/puppetlabs/bin/facter /usr/bin/facter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This script to install Kubernetes will get executed after we have provisioned the box | |
$script = <<-SCRIPT | |
# Install kubernetes | |
apt-get update && apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>D3 require example</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/d3-require@0"></script> | |
<script> | |
let myText = "Hello\n=====" | |
d3.require("marked@0.3.9/marked.min.js").then(function (marked) { | |
var e = document.createElement("div"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kural" :[ | |
{ | |
"id":"1", | |
"Name":"அறத்துப்பால்", | |
"Name_Transliteration":"Araththuppaal", | |
"Name_Short":"Aram", | |
"Name_English":"Virtue", | |
"Iyalgal":[ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var _ = require("lodash"); | |
var ini = require('ini'); | |
var baseConfig, overrideConfig; | |
var replaceIniConfig = function(configuration) { | |
try { | |
fs.readFile(configuration.base, function(err, content) { | |
if (err) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER Sriramajeyam Sugumaran "http://sriramajeyam.com" | |
SHELL ["/bin/sh", "-c"] | |
RUN apt-get update -y | |
RUN apt-get install -y openssh-server rpm libpam0g-dev libkrb5-dev wget openssl python libcurl4-gnutls-dev cron sudo nano | |
RUN mkdir /tmp/installation | |
ADD ./packages/packages-microsoft-prod.deb /tmp/installation/ | |
ADD ./packages/omi-1.1.0.ssl_100.x64.deb /tmp/installation/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update hostname in hosts file (Will help to fix “sudo: unable to resolve hostname” issue while installing) | |
echo $(hostname -I | cut -d\ -f1) $(hostname) | tee -a /etc/hosts | |
# Install mono (required for octopus to connect) | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | tee /etc/apt/sources.list.d/mono-official.list | |
apt-get update | |
apt-get install mono-devel --yes --allow-unauthenticated | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update hostname in hosts file (Will help to fix “sudo: unable to resolve hostname” issue while installing) | |
echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts | |
# Install mono (required for octopus to connect) | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list | |
sudo apt-get update | |
sudo apt-get install mono-devel --allow-unauthenticated -–yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract from the following sites | |
# https://docs.docker.com/engine/installation/linux/ubuntu/ | |
# https://docs.docker.com/compose/install/ | |
# https://docs.docker.com/machine/install-machine/ | |
Install docker on Ubuntu | |
========================= | |
sudo apt-get update |