Skip to content

Instantly share code, notes, and snippets.

View flavio-fernandes's full-sized avatar

Flavio Fernandes flavio-fernandes

View GitHub Profile
apiVersion: v1
kind: Pod
metadata:
name: ovsdb-mon
spec:
containers:
- name: ovsdb-mon
image: quay.io/pdiak/fedora-ovn:latest
resources:
requests:
# User specific aliases and functions
function ovs_destroy_find() {
local cmd=$1
local table=$2
local condition=$3
eval $cmd "-- destroy $table "{$(ovs-vsctl --no-headings --columns=_uuid -f csv find $table $condition|paste -sd",")}
}
alias nbdf="ovs_destroy_find ovn-nbctl"
alias sbdf="ovs_destroy_find ovn-sbctl"
@danalsan
danalsan / osp-ovn-playground-create.sh
Last active December 18, 2022 22:53
osp-ovn-playground-create.sh
#!/bin/bash
#
#
# +------------+
# | |
# | |
# | public |
# | |
# | |
# +-----+------+
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active October 14, 2024 11:22
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@dfarrell07
dfarrell07 / sdn_onboarding.markdown
Last active August 15, 2016 17:31
Red Hat SDN Team On-boarding Guide

Red Hat SDN Team Onboarding Guide

This is not meant to be an exhaustive guide. It will attempt to cover the parts of on-boarding that are unique to the SDN team.

Communications

IRC

IRC is our primary method of synchronous communication.

@purpleidea
purpleidea / .bashrc_vagrant.sh
Last active August 1, 2017 10:33
# Vagrant vsftp and other tricks# from: https://ttboj.wordpress.com/2013/12/21/vagrant-vsftp-and-other-tricks/# and# Vagrant clustered SSH and 'screen'# from: https://ttboj.wordpress.com/2014/01/02/vagrant-clustered-ssh-and-screen/# for use inside a ~/.bashrc or similar
# vagrant vsftp and other tricks
# from: https://ttboj.wordpress.com/2013/12/21/vagrant-vsftp-and-other-tricks/
# and
# Vagrant clustered SSH and 'screen'
# from: https://ttboj.wordpress.com/2014/01/02/vagrant-clustered-ssh-and-screen/
# for use inside a ~/.bashrc or similar
# copyright James Shubin, 2013, agplv.3+
### VAGRANT ###################################################################
# avoid needing to always add --provider=kvm

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: