Skip to content

Instantly share code, notes, and snippets.

View shriomtri's full-sized avatar

Shriom shriomtri

View GitHub Profile
@shriomtri
shriomtri / ContactHelper.java
Last active July 16, 2019 09:57
This helper class allow to fetch the list of all contact in android phone. It allow user to searh list of contact from name (query) as input.
package com.beatme.app.util;
import android.content.Context;
import android.database.Cursor;
import android.provider.ContactsContract;
import com.beatme.app.service.model.ContactModel;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
public class ContactModel implements Serializable{
private String name;
private String email;
private String phone;
public ContactModel(String name, String email, String phone) {
this.name = name;
@shriomtri
shriomtri / userAvatar.js
Created June 29, 2021 08:18 — forked from SylarRuby/userAvatar.js
NodeJs AWS S3 Upload
/**
* This gist was inspired from https://gist.github.com/homam/8646090 which I wanted to work when uploading an image from
* a base64 string.
* Updated to use Promise (bluebird)
* Web: https://mayneweb.com
*
* @param {string} base64 Data
* @return {string} Image url
*/
const imageUpload = async (base64) => {
@shriomtri
shriomtri / Enum.sol
Last active November 10, 2022 05:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract Enum {
enum Status {
Pending,
Shipped,
Accepted,
Rejected,
@shriomtri
shriomtri / Building a Kubernetes 1.27 Cluster with kubeadm
Last active July 16, 2024 11:59
Building a Kubernetes 1.27 Cluster with kubeadm
# Building a Kubernetes 1.27 Cluster with `kubeadm`
## Introduction
This lab will allow you to practice the process of building a new Kubernetes cluster. You will be given a set of Linux servers, and you will have the opportunity to turn these servers into a functioning Kubernetes cluster. This will help you build the skills necessary to create your own Kubernetes clusters in the real world.
## Additional Resources
Your company wants to transition to a Kubernetes-based infrastructure for running their containerized applications. In order to do that, they will need a basic Kubernetes cluster to get started.
@shriomtri
shriomtri / Working with Kubernetes Namespaces.md
Last active July 16, 2024 14:12
Working with Kubernetes Namespaces

Working with Kubernetes Namespaces

Introduction

Namespaces are a central component of any Kubernetes infrastructure. This lab will give you the opportunity to work with namespaces in a functioning cluster. You will be able to practice the process of creating, using, and navigating Kubernetes namespaces.

Additional Resources

You are working for BeeBox, a subscription service company that provides weekly shipments of bees to customers. The company is in the process of containerizing their infrastructure and running their software on Kubernetes. As part of this process, the company is working on determining what namespaces it will need in the Kubernetes cluster.

@shriomtri
shriomtri / Perfoming a Kubernetes Upgrade with kubeadm.md
Created July 17, 2024 10:51
Perfoming a Kubernetes Upgrade with kubeadm

Performing a Kubernetes Upgrade with kubeadm

Introduction

When you are managing Kubernetes in the real world, it is essential that you are able to keep your cluster up to date. This lab will allow you to practice the process of upgrading a Kubernetes cluster to a newer Kubernetes version using kubeadm. This will ensure you are comfortable with the upgrade process and ready to manage real-world Kubernetes clusters.

Additional Resources

You are working for BeeBox, a subscription service company that provides weekly shipments of bees to customers. The company is using Kubernetes to run some of their applications, but a new version of Kubernetes has been released.

@shriomtri
shriomtri / Building a Kubernetes 1.27 Cluster with kubeadm.md
Created July 17, 2024 11:00
Building a Kubernetes 1.27 Cluster with kubeadm

Building a Kubernetes 1.27 Cluster with kubeadm

Introduction

This lab will allow you to practice the process of building a new Kubernetes cluster. You will be given a set of Linux servers, and you will have the opportunity to turn these servers into a functioning Kubernetes cluster. This will help you build the skills necessary to create your own Kubernetes clusters in the real world.

Additional Resources

Your company wants to transition to a Kubernetes-based infrastructure for running their containerized applications. In order to do that, they will need a basic Kubernetes cluster to get started.

@shriomtri
shriomtri / Backing up and Restoring Kubernetes Data in etcd.md
Created July 19, 2024 09:07
Backing up and Restoring Kubernetes Data in etcd

Backing up and Restoring Kubernetes Data in etcd

Introduction

Backups are an important part of any resilient system. Kubernetes is no exception. In this lab, you will have the opportunity to practice your skills by backing up and restoring a Kubernetes cluster state stored in etcd. This will help you get comfortable with the steps involved in backing up Kubernetes data.

Additional Resources

You are working for BeeBox, a subscription service company that provides weekly shipments of bees to customers. The company is using Kubernetes to run some of their applications, and they want to make sure their Kubernetes infrastructure is robust and able to recover from failures.

@shriomtri
shriomtri / Exploring a Kubernetes Cluster with kubectl.md
Created July 19, 2024 11:22
Exploring a Kubernetes Cluster with kubectl

Exploring a Kubernetes Cluster with kubectl

Introduction

kubectl is the primary interface most people use in order to work with Kubernetes. This lab will give you a chance to test and hone your kubectl skills with a real Kubernetes cluster. You will have the opportunity to collect information and make changes to the cluster, all using kubectl.

Additional Resources

You are working for BeeBox, a company that provides regular shipments of bees to customers. The company is in the process of building a Kubernetes-based infrastructure for some of their software.