Skip to content

Instantly share code, notes, and snippets.

View murarisumit's full-sized avatar
🎩
Welcome here

Sumit Murari murarisumit

🎩
Welcome here
View GitHub Profile
@murarisumit
murarisumit / grafana-prometheus-values.yaml
Created November 13, 2018 10:48 — forked from rohancme/grafana-prometheus-values.yaml
Values for the grafana helm chart to talk to an existing prometheus datasource
persistence:
enabled: true
accessModes:
- ReadWriteOnce
size: 5Gi
datasources:
datasources.yaml:
apiVersion: 1
datasources:
@murarisumit
murarisumit / tmux-shortcut.md
Created August 7, 2018 06:47
Tmux some shortcut #tmux #shortcut

Tmux keyboard shortcut

  • Space : Switch pane from vertical align to horizontal.
@murarisumit
murarisumit / youtube_filters.txt
Last active July 26, 2018 07:47
Youtube filers
!Home page all videos page
youtube.com##ytd-browse.ytd-page-manager.style-scope
!Suggestion by youtube
youtube.com###related
!Removes comments
##.ytd-comments.style-scope
@murarisumit
murarisumit / kubernetes_networking.md
Last active July 6, 2018 04:51
kubernetes networking #networking #kubernetes
@murarisumit
murarisumit / bridge-interface-docker.md
Created July 5, 2018 18:56
Bridge interface docker #docker #gnu/linux #networking

Configure a Linux bridge interface

  • In computer networking, a bridge is a network device that interconnects more than one LAN segment at Layer-2.
  • This bridge functionality is built into the Linux kernel, so one can set up a software bridge interconnecting multiple network interfaces.

A Linux bridge can be created with a user-space command-line tool called brctl which allows you to create, remove and administer Linux Ethernet bridges.

@murarisumit
murarisumit / base-docker-network.md
Created July 5, 2018 07:09
Docker networking #docker #networking

In backend of all docker networking:

  • When the daemon instantiates the container, it assigns a unique network address to it, connecting it to a virtual Ethernet bridge, which in the case of Docker is called docker0.
  • All containers in the system communicate with each other by directing packets to docker0, which then forwards those packets through the subnet automatically.
@murarisumit
murarisumit / virtuale-ethernet-bridging.md
Last active July 5, 2018 07:07
Virtual Ethernet Bridging #networking #docker #kubernetes

Ref: http://www.ieee802.org/1/files/public/docs2008/new-dcb-ko-VEB-0708.pdf

Virtualization Intermediaries (VIs) are used to safely share IO.

  • That is, 1 or more OSs share the PCI device through the VI.
  • VI may be part of Hypervisor or not.

The VI(docker0) performs Ethernet sharing functions:

  • Multiplexes flows from multiple OSs.
  • Performs PCI IO transactions on behalf of the OS;
@murarisumit
murarisumit / iptables_netfilter.md
Last active July 6, 2018 11:26
Iptables and Netfilter #gnu/linux #iptables #firewall
@murarisumit
murarisumit / awscli-cheatsheet.md
Last active December 2, 2018 22:16
AWS cli cheatsheet #aws #cheatsheet

AWS CLI

  • Get ec2 instance with name and private ip: aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,Tags[?Key=='Name']| [0].Value,PrivateIpAddress]" --output table

  • Get instance details in some human readable format: aws ec2 describe-instances --query 'Reservations[*].Instances[*].{ID:InstanceId,TYPE:InstanceType,Subnet:SubnetId,VPC:VpcId,IP:PublicDnsName,State:State.Name }' --output table

@murarisumit
murarisumit / vim_practical_command.md
Last active June 6, 2018 20:47
Vim practical guide notes

Imgur