Skip to content

Instantly share code, notes, and snippets.

Scale a deployment:
============================
kubectl scale deployment alphamon-user --replicas=2
Update/Change image of a deployment:
=======================================
kubectl set image deployments/alphamon-user alphamon-user=gcr.io/alphamon-982144/alphamon-user:v2
Describe a deployment:
======================================
@samair
samair / selection_sort.cpp
Created October 3, 2016 11:42
Sorting Algorithms
#include <iostream>
int startPos1= 0;
using namespace std;
void swap(int a[], int from, int to)
{
if (from !=to)
{
@samair
samair / binary_search.cpp
Created October 3, 2016 11:41
Sorting Algorithms
#include <iostream>
using namespace std;
// Input a sorted array of integres.
// Out put searcha and give the position of the search element
int search(int arrayToSearch[], int startPos, int size , int searchMe)
{
@samair
samair / insertion_sort
Created October 3, 2016 05:46
Sorting Alorithms
#include <iostream>
using namespace std;
void swap(int *a, int* b)
{
int tmp = *a;
*a = *b;
*b = tmp;
}