Skip to content

Instantly share code, notes, and snippets.

Vikas Yadav vik-y

Block or report user

Report or block vik-y

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vik-y
vik-y / aliases-kafka.sh
Last active Dec 17, 2018 — forked from diegoicosta/aliases-kafka.sh
Aliases useful for working with kafka
View aliases-kafka.sh
#KAFKA ALIAS TO BE USED INSIDE DOCKER
export KAFKA_HOME=/opt/kafka
export BROKER="172.17.0.1:32768"
export BOOTSTRAP="172.17.0.1:32768"
export ZK="172.17.0.1:2181"
alias k-list-topics="$KAFKA_HOME/bin/kafka-topics.sh --list --zookeeper $ZK"
alias k-create-topic="$KAFKA_HOME/bin/kafka-topics.sh --create --zookeeper $ZK --replication-factor 1 --partitions 3 --topic"
@vik-y
vik-y / README.md
Created Mar 30, 2018
Steps to get jenkins up and running
View README.md

RVM, Ruby and Gemstash Installation

This is required to speed up bundle install. RVM Installation is fairly simple for ubuntu systems.

# Refer to https://github.com/rvm/ubuntu_rvm
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
sudo apt-get install rvm

# After this installation ruby 
rvm install 2.4
@vik-y
vik-y / bash-cheatsheet.sh
Last active Jun 25, 2019 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@vik-y
vik-y / 000-default.conf
Created Dec 20, 2017
Docker config on my local machine
View 000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ProxyPass / http://localhost:8082/
ProxyPassReverse / http://localhost:8082/
ProxyPreserveHost On
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
@vik-y
vik-y / commands.sh
Created Dec 18, 2017
Frequently used commands by me for managing my server
View commands.sh
# To compress a folder
tar czf archivename.tar.gz folder
# To email a file
echo "PFA apache config" | mutt -s "/etc/apache2" vikasyadavgood@gmail.com -a apache.tar.gz
@vik-y
vik-y / NOTES.md
Created Dec 5, 2017
Docker-compose cheat sheet
View NOTES.md
@vik-y
vik-y / d7install.bash
Created Nov 23, 2017 — forked from ricardoamaro/d7install.bash
Drupal Installation Script for Linux Debian/Ubuntu
View d7install.bash
#!/bin/bash -e
#############################
#
# Auto Install Drupal on Debian/Ubuntu boxes
# Author: ricardo amaro
# https://drupal.org/user/666176
#
# License: http://www.gnu.org/licenses/gpl-2.0.html
#
@vik-y
vik-y / install.md
Last active Dec 4, 2017
openstack installation steps
View install.md

Before using this make sure you allocate 6GB. 2 cores

Install openswitch and init a br-int bridge

yum -y install make gcc openssl-devel autoconf automake rpm-build redhat-rpm-config python-devel openssl-devel kernel-devel kernel-debug-devel libtool wget
mkdir -p ~/rpmbuild/SOURCES
wget http://openvswitch.org/releases/openvswitch-2.5.1.tar.gz
cp openvswitch-2.5.1.tar.gz ~/rpmbuild/SOURCES/
@vik-y
vik-y / amahi_design.md
Last active Aug 27, 2017
Design document to explain the changes done in amahi codebase
View amahi_design.md

Design Document

Amahi now supports Docker. It is an open source software for automating the deployment of applications inside software containers. A container image is a lightweight, stand-alone, executable package of a piece of software that includes everything needed to run it: code, runtime, system tools, system libraries, settings.

For more information related to contianers refer to : https://www.docker.com/what-container

The idea was to get/build images of different applications and run them using docker on the hda. The benefit of using containers as opposed to the earlier method is that each container runs in an isolated environment. So they can each have different versions of different applications. For example we can have an app running on php5 and another app running on php7. Using this method if we had an image available for an app then we can directly run it using docker without any problems.

Architecture Overview : How it works? Diagram

@vik-y
vik-y / amahi.md
Last active Aug 22, 2017
Documentation for contianer apps in Amahi.
View amahi.md

Amahi Documentation

Important Terms

Before going further in this document, understanding the following terms might be useful:

Problem Statement

Amahi supports one click install for different kind of apps. To add any app to amahi they have to be packaged properly. Each app might require a completely different environment to run and it might not be possible to provide that environment to every app because their can be dependnecy conflicts. For example some app might require php5 and some might require php7. We need a mechanism to address this concern such that we can add any app to Amahi irrespective of the technology stack that it might require or without version conflicts.

You can’t perform that action at this time.