Skip to content

Instantly share code, notes, and snippets.

View lvnilesh's full-sized avatar
💭
🏆 Vibranium Status Level

LV Nilesh lvnilesh

💭
🏆 Vibranium Status Level
View GitHub Profile
@lvnilesh
lvnilesh / ssh-config-windows
Created September 22, 2019 05:43 — forked from ztankersley/ssh-config
ssh proxycommand windows 10 with ssh on powershell
Host NAT
HostName 52.15.213.177
ForwardAgent yes
StrictHostKeyChecking ask
IdentityFile "C:\Users\Zach Tankersley\.ssh\id_rsa.pem"
User ec2-user
Host 10.0.1.12
ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe -q -W %h:%p NAT
ForwardAgent yes

Kubernetes and CI/CD with Jenkins X on GKE

(Under Construction)

image

What Problem are we solving

CI/CD on Kubernetes.

@lvnilesh
lvnilesh / minikube-sierra.md
Created March 18, 2019 23:54 — forked from inadarei/minikube-sierra.md
Minikube Setup: Docker for Mac / Sierra

Prerequisite: latest Docker for Mac on MacOS Sierra

$ brew update
$ brew install --HEAD xhyve
$ brew install docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
@lvnilesh
lvnilesh / circleci-config.yml
Created February 8, 2019 20:53 — forked from danmaas/circleci-config.yml
Continuous Deployment to Google Kubernetes Engine with CircleCI (config.yaml)
version: 2
jobs:
build_and_test:
# ... insert your test suite here
docker_push:
# Build app container and push it to the GCR registry
# Note: we want to build and push an image with tags based on both
# the Git commit hash AND the branch name. This way, we can refer to
@lvnilesh
lvnilesh / facebook-contact-info-summary.rb
Created March 23, 2018 16:15 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
# in whatever the working directory of the program is when executed.
#
<?php
/**
* Sync Groups from WordPress to Discourse
*
* First creates 'groups' meta_key (which should be customized to your needs)
* Then it monitors for changes in the 'groups' meta_value and connects to Discourse API to sync groups
*
* WordPress References
* https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/meta.php?order=name#L235
* http://wordpress.stackexchange.com/questions/16835/how-to-hook-update-post-meta-and-delete-post-meta
@lvnilesh
lvnilesh / golang.sh
Last active November 2, 2017 04:59 — forked from jacoelho/golang.sh
Install golang debian/ubuntu
#!/bin/bash
export GOLANG_VERSION=1.9.2
export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
export GOLANG_DOWNLOAD_SHA256=de874549d9a8d8d8062be05808509c09a88a248e77ec14eb77453530829ac02b
apt-get update -qq
apt-get install -y --no-install-recommends \
g++ \
@lvnilesh
lvnilesh / 3.10
Last active February 28, 2017 06:06 — forked from kamihicouki/3.5
[server]
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get install -y software-properties-common python-software-properties
sudo add-apt-repository --yes ppa:gluster/glusterfs-3.10;
sudo apt-get update
sudo apt-get install --yes glusterfs-server xfsprogs
sudo apt-get upgrade --yes
sudo apt-get -y autoremove
@lvnilesh
lvnilesh / create_swarm_cluster.sh
Created February 12, 2017 05:29 — forked from alexei-led/create_swarm_cluster.sh
Deploy Docker Compose (v3) to Swarm (mode) Cluster
#!/bin/bash
# vars
[ -z "$NUM_WORKERS" ] && NUM_WORKERS=3
# init swarm (need for service command); if not created
docker node ls 2> /dev/null | grep "Leader"
if [ $? -ne 0 ]; then
docker swarm init > /dev/null 2>&1
fi
#!/bin/sh
export SCALEWAY_ORGANIZATION=XXX
export SCALEWAY_TOKEN=XXX
export SWARM_TOKEN=XXX
docker-machine create -d scaleway --swarm --scaleway-name=swarm-manager --swarm-master --swarm-discovery=token://$SWARM_TOKEN swarm-manager
for node in 1 2 3; do docker-machine create -d scaleway --swarm --scaleway-name=swarm-node-$node --swarm-discovery=token://$SWARM_TOKEN swarm-node-$node; done