Skip to content

Instantly share code, notes, and snippets.

View yesoreyeram's full-sized avatar

Sriram yesoreyeram

View GitHub Profile
@yesoreyeram
yesoreyeram / index.js
Last active November 13, 2018 11:30
Hello NPX
console.log("Welcome to NP");
@yesoreyeram
yesoreyeram / graphite.sh
Last active October 18, 2018 10:59
Graphite Installation with Puppet
#/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
@yesoreyeram
yesoreyeram / Vagrantfile
Created July 29, 2018 02:04 — forked from lizrice/Vagrantfile
Vagrant file for setting up a single-node Kubernetes cluster that I can access from my desktop. Read more: https://medium.com/@lizrice/kubernetes-in-vagrant-with-kubeadm-21979ded6c63
# -*- 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
@yesoreyeram
yesoreyeram / index.html
Created February 2, 2018 17:21
D3 Require markdown example
<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");
@yesoreyeram
yesoreyeram / kural.json
Last active August 1, 2017 22:56
kural
{
"kural" :[
{
"id":"1",
"Name":"அறத்துப்பால்",
"Name_Transliteration":"Araththuppaal",
"Name_Short":"Aram",
"Name_English":"Virtue",
"Iyalgal":[
{
@yesoreyeram
yesoreyeram / index.js
Last active August 3, 2017 10:40
Configuration Manager
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) {
@yesoreyeram
yesoreyeram / DockerFile
Last active July 25, 2017 15:49
Ubuntu Docker file with OMI, DSC and SSH
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/
#!/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
@yesoreyeram
yesoreyeram / script.sh
Last active July 13, 2017 16:56
Mono Installation for Ubuntu & Octopus Deploy
# 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
@yesoreyeram
yesoreyeram / docker-installation-ubuntu.txt
Last active March 2, 2018 23:28
Docker installation step for ubuntu 16
# 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