Skip to content

Instantly share code, notes, and snippets.

View berendt's full-sized avatar
🌏

Christian Berendt berendt

🌏
View GitHub Profile
@Be-El
Be-El / gist:3e0fb17ace7a899e1fdb0f15d4ab5fed
Created September 18, 2023 11:35
cinder ceph volume migration
#!/usr/bin/env perl
use strict;
use warnings;
use autodie qw(:all);
use Nice::Try;
use JSON;
# script to migrate cinder volumes from one backup to another backend
@pwalkr
pwalkr / error.md
Last active May 31, 2023 21:13
Ansible not detecting locale after system update
ansible --version
ERROR: Ansible requires the locale encoding to be UTF-8; Detected None.

Hacked with explicit assignment of LC_ALL:

LC_ALL=C.UTF-8 ansible --version
ansible [core 2.14.1]
@williamcaban
williamcaban / NetFlow or SFlow with OpenShift 4.md
Created May 2, 2020 15:24
Simple procedure to enable NetFlow or SFlow on OpenShift 4

Netflow or sFlow on OpenShift 4 w/OVN Kubernetes

  • Identify the ovs-node of the Node hosting the Pods to monitor

    # oc get pods --selector="app=ovs-node" -o wide
    NAME             READY   STATUS    RESTARTS   AGE   IP              NODE       NOMINATED NODE   READINESS GATES
    ovs-node-4hldj   1/1     Running   0          47h   198.18.100.16   worker-1   <none>           <none>
    

ovs-node-bd9ln 1/1 Running 0 47h 198.18.100.12 master-1

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active September 23, 2024 09:08
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jtopjian
jtopjian / deploy.sh
Last active August 29, 2015 14:18
Terraform OpenStack DevStack Acceptance Tests
#!/bin/bash
sudo apt-get update
sudo apt-get install -y git make mercurial
GOPKG=go1.4.2.linux-amd64.tar.gz
wget https://storage.googleapis.com/golang/$GOPKG
sudo tar -xvf $GOPKG -C /usr/local/
mkdir ~/go