Skip to content

Instantly share code, notes, and snippets.

View nirbhabbarat's full-sized avatar
🎯
Focusing

Nirbhab Barat nirbhabbarat

🎯
Focusing
  • Gurgaon
View GitHub Profile
@nirbhabbarat
nirbhabbarat / elasticsearch.yml
Created July 1, 2019 13:42
elasticsearch and kibana - single node in minikube for testing only
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: es-master
labels:
component: elasticsearch
role: master
app: elasticsearch
spec:
replicas: 1
@nirbhabbarat
nirbhabbarat / custom-build-python3-openssl.sh
Created March 24, 2020 09:39
Installing python 3 from source with custom version of openssl
## Install OpenSSL
wget https://www.openssl.org/source/openssl-1.1.1e.tar.gz
./config shared --prefix=/opt/openssl --openssldir=/opt/openssl/openssl
make && make install
export LDFLAGS="-L/opt/openssl/lib/"
export LD_LIBRARY_PATH="/opt/openssl/lib/"
export CPPFLAGS="-I/opt/openssl/include -I/opt/openssl/include/openssl"
@nirbhabbarat
nirbhabbarat / Vagrantfile
Created July 20, 2020 13:35
Vagrant file to install 1 master and 1 node in local (node will not join) as its for dev env for CKAD learning. Check kubeadm_init.log for join command in master.
Vagrant.configure("2") do |config|
config.vm.provision :shell, privileged: true, inline: $install_common_tools
config.vm.define :master do |master|
master.vm.provider :virtualbox do |vb|
vb.name = "master"
vb.memory = 4048
vb.cpus = 2
end
master.vm.box = "ubuntu/bionic64"
#master.disksize.size = "25GB"
@nirbhabbarat
nirbhabbarat / gitlab-on-minikube-helm3.md
Last active October 16, 2024 08:32
setup gitlab on minikube using helm3

Setup gitlab on minikube using helm3

Start minikube with virtualbox driver

minikube start \
  --driver=virtualbox \
  --cpus 4 \
  --memory 8192

Recomended: 8 CPU and 30 GB RAM (for demo we are going to use minimal setup)

@nirbhabbarat
nirbhabbarat / Readme.md
Created August 15, 2020 10:47
Integrate gitlab installed in minikube and kubenetes running in same minikube
@nirbhabbarat
nirbhabbarat / centos7-kube-install.md
Last active January 23, 2023 17:29
install kubernetes on centos 7 vagrant

Create CentOS 7

vagrant init centos/7
vagrant up

Disable SELinux & setup firewall rules

hostnamectl set-hostname 'k8s-master'
exec bash
@nirbhabbarat
nirbhabbarat / php7.4-fpm-alpine
Created November 1, 2020 10:07 — forked from jpswade/php7.4-fpm-alpine
PHP 7.4 PHP-FPM Alpine with core extensions gd
FROM php:7.4-fpm-alpine
# @see https://hub.docker.com/r/jpswade/php7.4-fpm-alpine
MAINTAINER Agent Software <[email protected]>
# Install gd, iconv, mbstring, mysql, soap, sockets, zip, and zlib extensions
# see example at https://hub.docker.com/_/php/
RUN apk add --update \
$PHPIZE_DEPS \
freetype-dev \
git \
@nirbhabbarat
nirbhabbarat / json2csv.php
Created November 1, 2020 10:07 — forked from jpswade/json2csv.php
convert from a multi-dimensional json object to a flat csv table
<?php
/**
* @param string $jsonFilename
* @param string $csvFilename
* @return bool|int
*/
function json2csv($jsonFilename, $csvFilename)
{
$json = file_get_contents($jsonFilename);
FROM php:7.3-apache
MAINTAINER James Wade <[email protected]>
# Install gd, iconv, mbstring, mcrypt, mysql, soap, sockets, zip, and zlib extensions
# see example at https://hub.docker.com/_/php/
RUN apt-get update && apt-get install -y \
libbz2-dev \
libfreetype6-dev \
libgd-dev \
libjpeg62-turbo-dev \
@nirbhabbarat
nirbhabbarat / setup_selenium.sh
Created November 1, 2020 10:08 — forked from jpswade/setup_selenium.sh
Setup Selenium
brew install selenium-server-standalone
brew cask install chromedriver
selenium-server -p 4444