Skip to content

Instantly share code, notes, and snippets.

Avatar

Vikas Yadav vik-y

View GitHub Profile
@vik-y
vik-y / build.ipynb
Last active November 14, 2022 12:32
Autoscraper Example
View build.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vik-y
vik-y / aliases-kafka.sh
Last active April 22, 2021 16:18 — 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 March 30, 2018 15:17
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 October 4, 2022 06:27 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
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 December 20, 2017 12:26
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 December 18, 2017 18:46
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 December 5, 2017 23:46
Docker-compose cheat sheet
View NOTES.md
@vik-y
vik-y / d7install.bash
Created November 23, 2017 07:49 — 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 August 26, 2021 16:43
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 August 27, 2017 08:41
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