Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
at work

Suraj Narwade surajnarwade

👨‍💻
at work
View GitHub Profile
View kiam-test.yml
---
apiVersion: v1
kind: Namespace
metadata:
name: kiam-test
annotations:
iam.amazonaws.com/permitted: ".*"
---
apiVersion: v1
kind: Pod
View fsnotify
package main
import (
"fmt"
"gopkg.in/fsnotify.v1"
)
// main
func main() {
View openssl_commands.md
  • to check validity
openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep -A3 "Validity";
  • check details
View kinesis_consumer.py
import boto
from boto.kinesis.exceptions import ResourceInUseException
import time
stream_name = "kinesis-fluent-bit-test"
region = 'eu-west-1'
kinesis = boto.kinesis.connect_to_region(region)
@surajnarwade
surajnarwade / numberofpods.go
Created Apr 20, 2020
Number of pods per namespace
View numberofpods.go
package main
import (
"fmt"
"log"
"os"
"text/tabwriter"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
View gist:6510542aa00433dfdb3bdb06d6a8aa2d
* Installation
```
git clone https://pagure.io/fpaste.git
sudo make install
```
* Usage
View create-user-ocp4.sh
#!/bin/bash
HTPASSWD_FILE="./htpass"
USERNAME="suraj1"
USERPASS="developer"
HTPASSWD_SECRET="htpasswd-secret1"
htpasswd -cb $HTPASSWD_FILE $USERNAME $USERPASS
oc get secret $HTPASSWD_SECRET -n openshift-config &> /dev/null
View pod.yml
apiVersion: v1
kind: Pod
metadata:
labels:
run: nginx
name: nginx
spec:
containers:
- image: nginx
name: nginx
@surajnarwade
surajnarwade / operatorTalks.md
Created Jan 25, 2019
Talks related to Controllers & Operators
View operatorTalks.md
@surajnarwade
surajnarwade / nmcli-wifi.md
Last active Nov 16, 2018
Control wifi using nmcli
View nmcli-wifi.md

WI-FI using nmcli

  • Check wifi status
nmcli radio wifi
  • Turn on the wifi
You can’t perform that action at this time.