Skip to content

Instantly share code, notes, and snippets.

View arttuladhar's full-sized avatar

Aayush Tuladhar arttuladhar

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arttuladhar on github.
  • I am arttuladhar (https://keybase.io/arttuladhar) on keybase.
  • I have a public key ASBKr_G71JtO9yx_4xVpwqqN8fNDd3l52qlbMygNn0i0dgo

To claim this, I am signing this object:

PUT /pages DELETE /pages

PUT /products { "settings": { "number_of_shards": 2, "number_of_replicas": 2 } }

@arttuladhar
arttuladhar / pcf_cheatsheet.md
Last active August 12, 2021 21:18
PCF Cheatsheet

Login

cf login -a https://api.sys.cfcommerce.dev.azeus.gaptech.com \
   -u aayush_tuladhar@gap.com

Target (Verify Target)

Core Concepts

  • Understand Kubernetes Primitives API
  • Create and Configure Basic Pods

Create Namespace

kubectl get namespaces
kubectl create namespace mynamespace --dry-run=clieent -o yaml
kubectl get po -n mynamespace
@arttuladhar
arttuladhar / intellij_shortcuts.md
Last active August 12, 2021 21:07
IntelliJ Shortcuts

IntelliJ Shortcuts

General and Navigation

Function Shortcut
Search Everywhere Double ⇧
Find Action Cmd + Shift + A
Parameter Info Cmd + P
Open File by Class Name Cmd + O

Demo 1 - Building nginx WebServer

oc login -u developer -p any
oc new-project demo1
oc new-app --name=nginx --docker-image=bitnami/nginx
oc status
oc get pods
oc describe pod <podname>
oc get svc
/* Three Basic Types in TypeScript */
let isDone: boolean = false;
let lines: number = 42;
let firstName: string = "Aayush";
/* Using Derived from Variables */
let derivedIsDone = false;
let derivedLines = 42;
let derivedfirstName = "Anders";

Starting Minishift with VirtualBox

# Starting Minishift
minishift start

# Starting Minishift using VirtrualBox
minishift start --vm-driver virtualbox

## Get Minishift Status

Activating Service Account

gcloud auth activate-service-account --key-file credentials.json

Copy File from Local to Cloud Stoage Bucket

gsutil cp setup.html gs://$BUCKET_NAME_1/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">