Skip to content

Instantly share code, notes, and snippets.

View faizanbashir's full-sized avatar
🏠
Working from Home

Faizan Bashir faizanbashir

🏠
Working from Home
View GitHub Profile
@faizanbashir
faizanbashir / docker-compose.yml
Last active November 20, 2022 16:11
Voting-app
version: "3"
services:
vote:
build: ./vote
command: python app.py
volumes:
- ./vote:/app
ports:
- "5000:80"
@faizanbashir
faizanbashir / python-ses-dynamodb-handler.py
Created June 17, 2018 15:50
The handler file for python ses dynamdb tutorial
import boto3
from botocore.exceptions import ClientError
import json
import os
import time
import uuid
import decimal
client = boto3.client('ses')
sender = os.environ['SENDER_EMAIL']
FROM alpine:latest
LABEL MAINTAINER="Faizan Bashir <faizan.ibn.bashir@gmail.com>"
# Linking of locale.h as xlocale.h
# This is done to ensure successfull install of python numpy package
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information.
WORKDIR /var/www/
FROM alpine:latest
LABEL MAINTAINER="Faizan Bashir <faizan.ibn.bashir@gmail.com>"
# Linking of locale.h as xlocale.h
# This is done to ensure successfull install of python numpy package
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information.
WORKDIR /var/www/

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@faizanbashir
faizanbashir / go.mod
Last active December 28, 2022 11:51
Kubernetes client-go listing pods and namespaces example
module main
go 1.19
require (
k8s.io/apimachinery v0.26.0
k8s.io/client-go v0.26.0
)
@faizanbashir
faizanbashir / go.mod
Last active December 31, 2022 16:47
Openshift go-client Create/List/Scale/Update/Delete DeploymentConfig Example
module main
go 1.19
require (
github.com/openshift/api v0.0.0-20221103085154-ea838af1820e
github.com/openshift/client-go v0.0.0-20221107163225-3335a34a1d24
k8s.io/api v0.26.0
k8s.io/apimachinery v0.26.0
k8s.io/client-go v0.26.0
@faizanbashir
faizanbashir / main.go
Created January 4, 2023 11:05
Kubernetes CrashLoopBackOff client Go SDK example
package main
import (
"context"
"fmt"
"os"
"path/filepath"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@faizanbashir
faizanbashir / go.mod
Last active February 8, 2023 19:27
How to Create Update Scale List Get and Delete a Deployment using Kubernetes Golang SDK
module k8sdeployment
go 1.19
require (
k8s.io/api v0.26.1
k8s.io/apimachinery v0.26.1
k8s.io/client-go v0.26.1
)
@faizanbashir
faizanbashir / go.mod
Last active February 5, 2023 18:53
How to Create and Delete deployment and service using the Unstructured Dynamic Client in Go
module main
go 1.19
require (
k8s.io/api v0.26.1
k8s.io/apimachinery v0.26.1
k8s.io/client-go v0.26.1
)