Skip to content

Instantly share code, notes, and snippets.

View jujaga's full-sized avatar
🐠

Jeremy Ho jujaga

🐠
  • Avocette Technologies
  • Victoria, BC
  • X @MrJujaga
View GitHub Profile
@jujaga
jujaga / obelisk-point-calculator.user.js
Last active April 10, 2024 04:20
Neopets: Obelisk Point Calculator
// ==UserScript==
// @name Neopets Obelisk Point Calculator
// @namespace neopets
// @version 2024.04.09
// @description Calculates your point contribution to your Obelisk faction
// @author jujaga
// @match *://*.neopets.com/prehistoric/battleground/
// @icon https://www.neopets.com/favicon.ico
// @grant none
// ==/UserScript==
@jujaga
jujaga / readme.md
Last active May 12, 2021 17:57
Redis Templates
@jujaga
jujaga / patroni-ephemeral.dc.yaml
Last active February 23, 2021 21:54
Patroni Templates
---
apiVersion: v1
kind: Template
metadata:
annotations:
description: Patroni Postgresql database cluster, with ephemeral storage.
iconClass: icon-postgresql
openshift.io/display-name: Patroni Postgresql (Ephemeral)
openshift.io/long-description:
This template deploys a patroni postgresql HA cluster
@jujaga
jujaga / incident-report-comfort-2020-09-10.md
Last active September 14, 2020 20:57
CSST Incident Report - COMFORT - Septemer 10, 2020

Incident Report

  • Ministry: Natural Resources - IITD Division
  • Team(s): Common Services Showcase Team (CSST)
  • Affected System(s): Common Forms Toolkit (COMFORT)
  • Environments: Production
  • Incident Type: Outage

Summary

@jujaga
jujaga / README.md
Last active March 2, 2020 19:00
Migrating Patroni from GlusterFS to NetApp Storage

Migrating Patroni from GlusterFS to NetApp Storage

These scripts assist you with migrating an existing Patroni cluster from GlusterFS to NetApp storage. The strategy depends on Patroni's ability to leverage Postgres WAL history archiving to replay transactions and maintain history lineage. Note that this gist runs with a few assumptions and isn't fully parameterized. We assume your Patroni cluster is named "patroni-master", and have a working knowledge of OpenShift and patronictl.

High Level Strategy

  1. Add temporary permissive NSP rules to namespace
  2. Create a new temporary statefulset which will extend the existing statefulset cluster
  3. Force master to failover to the new temporary node
  4. Delete the original statefulset and its PVCs

Keybase proof

I hereby claim:

  • I am Jujaga on github.
  • I am jujaga (https://keybase.io/jujaga) on keybase.
  • I have a public key whose fingerprint is 4E49 D5E0 135E F9A0 FCF8 1F8C CB0D DA91 ED56 C6F4

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am Jujaga on github.
  • I am jujaga (https://keybase.io/jujaga) on keybase.
  • I have a public key whose fingerprint is FA24 92E9 4166 EF18 CAFC 57C7 1C15 C8B8 C039 86F6

To claim this, I am signing this object: