Skip to content

Instantly share code, notes, and snippets.

@flavio-fernandes
flavio-fernandes / onvis_hs2_buttons
Created December 7, 2025 16:07
Use all 5 buttons (single, double and long press) of an Onvis HS2 Smart Button
blueprint:
name: Onvis HS2 5 Button Actiond Dispatcher
description: >
Use all 5 buttons (single, double and long press) of an Onvis HS2 Smart
Button that is paired via HomeKit Controller. Works regardless of Thread
or Bluetooth. You configure the actions for each press type.
domain: automation
input:
onvis_smartswitch:
name: Onvis HS2 device
@LionelJouin
LionelJouin / PoC: Multi-Network - DRA-Driver - Network Status.md
Last active June 28, 2025 04:22
Multi-Network / DRA-Driver / Network Status
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 November 25, 2025 17:43
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: