Skip to content

Instantly share code, notes, and snippets.

@stephenfin
stephenfin / sphinx-cheatsheet.rst
Last active September 28, 2016 09:49
Sphinx cheatsheet

Sphinx cheatsheet

A continuously updated collection of handy directives, many of which can be hard to find (IMO)

doc

Crossreference other documents in your doc tree. Less overhead than the ref directive.

@stephenfin
stephenfin / pyvi
Created February 6, 2017 14:39
pyvi
#!/usr/bin/env python
# Converts a Python path to a folder path and open Vim on the relevant
# lines.
#
# Usage:
#
# pyvi <python_module_path>
#
# For example:
@stephenfin
stephenfin / sample-series.patch
Created February 12, 2017 22:14
Sample Patchwork Series
From stephen@that.guru Wed Feb 8 09:15:15 2017
From: stephen@that.guru (Stephen Finucane)
Date: Tue, 7 Feb 2017 22:15:15 +0000
Subject: [PATCH v2 0/9] Add support for download series mboxes
Message-ID: <20170207221524.22394-1-stephen@that.guru>
We now support series, but we don't support any way of making use of
these from within the UI. Correct this oversight by integrating a
"download series" button on all patch pages along with ways to download
both entire series and individual patches with dependencies.
@stephenfin
stephenfin / devstack-ovs.rst
Last active July 12, 2021 14:39
Sample DevStack 'local.conf' using OVS

DevStack, Single Node, OVS

Overview

Nodes

1

Version

Ussuri

Prerequisites

@stephenfin
stephenfin / devstack-two-node.rst
Last active November 3, 2021 09:58
Sample DevStack 'local.conf's for two-node deployments

DevStack, Two Node

Overview

Nodes

2

Version

Xena

Prerequisites

@stephenfin
stephenfin / devstack-sriov.rst
Last active October 10, 2018 10:53
Sample DevStack 'local.conf' using SR-IOV

DevStack, Single Node, SR-IOV

Overview

Nodes

1

Version

Rocky

Prerequisites

@stephenfin
stephenfin / README.md
Last active December 10, 2018 14:03
Bugzilla scripts

Custom Scripts for Bugzilla

These are designed to make life with Bugzilla a little more bearable. Unless you're working on nova in Red Hat, you probably won't find these that useful.

Requirements

@stephenfin
stephenfin / generate-schemas.sh
Created January 6, 2021 16:31
Nova schema diff tool
#!/usr/bin/env bash
#
# Script to generate schemas for the various versions.
#
# Some setup is required, similar to the opportunistic tests.
#
# MySQL ->
#
# $ mysql -uroot
# MariaDB [(none)]> CREATE DATABASE nova
@stephenfin
stephenfin / mdevs.md
Created March 23, 2021 18:20
libvirt with advanced device types

mdev

$ virsh nodedev-list --tree
  ...
  +- pci_0000_00_02_0
  |   |
  |   +- pci_0000_04_00_0
  |       |
  |       +- mdev_69f7daf5_c114_4017_a53f_6367c04cb4f3
@stephenfin
stephenfin / patchwork.yaml
Created September 1, 2021 14:56
Patchwork on OpenShift
# Resources:
#
# https://markgituma.medium.com/kubernetes-local-to-production-with-django-3-postgres-with-migrations-on-minikube-31f2baa8926e
# https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-pvc
annotations: