Skip to content

Instantly share code, notes, and snippets.

View surajnarwade's full-sized avatar

Suraj Narwade surajnarwade

View GitHub Profile

type tmux in terminal

Windows:

  • Create new window: Ctrl+b c
  • Move to next window: Ctrl+b n
  • Move to previos window: Ctrl+b p
  • List all wondows: Ctrl+b w

Panes/Split:

@surajnarwade
surajnarwade / nmcli-wifi.md
Last active February 10, 2023 08:48
Control wifi using nmcli

WI-FI using nmcli

  • Check wifi status
nmcli radio wifi
  • Turn on the wifi
@surajnarwade
surajnarwade / iTerm2-cheatsheet.md
Last active January 7, 2022 21:23
iTerm2 CheatSheet

iTerm2 CheatSheet

Tabs

  • Cmd + T - create new tabs
  • Cmd + W - Close the tab

Panes

---
apiVersion: v1
kind: Namespace
metadata:
name: kiam-test
annotations:
iam.amazonaws.com/permitted: ".*"
---
apiVersion: v1
kind: Pod
@surajnarwade
surajnarwade / openssl_commands.md
Last active December 11, 2020 23:39
OpenSSL commands
  • to check validity
openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep -A3 "Validity";
  • check details
package main
import (
"fmt"
"gopkg.in/fsnotify.v1"
)
// main
func main() {
@surajnarwade
surajnarwade / kinesis_consumer.py
Created April 27, 2020 07:53
AWS kinesis consumer
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 April 20, 2020 10:16
Number of pods per namespace
package main
import (
"fmt"
"log"
"os"
"text/tabwriter"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
@surajnarwade
surajnarwade / operatorTalks.md
Created January 25, 2019 06:03
Talks related to Controllers & Operators
* Installation
```
git clone https://pagure.io/fpaste.git
sudo make install
```
* Usage