Skip to content

Instantly share code, notes, and snippets.

View erasmolpa's full-sized avatar
🏠
Working from home

Erasmo erasmolpa

🏠
Working from home
View GitHub Profile
<#
.SYNOPSIS
Velero backup for a whole namespace, but snapshot only selected PVCs.
.DESCRIPTION
- Performs two Velero backups:
A) Everything in the namespace (except PV/PVC)
B) Only selected PVCs/PVs with snapshots
- Includes helper functions for restore.
- Works in AKS with the Velero Azure plugin.

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@erasmolpa
erasmolpa / renew_puppet_agent_cert.md
Created March 8, 2021 08:09
renew_puppet_agent_cert.md

On the master: puppet cert clean <agent_certname> On the agent: mv /etc/puppetlabs/puppet/ssl/ /etc/puppetlabs/puppet/ssl_bak Never do this if you are trying to regenerate the cert for the agent on the master. Instead you would need to delete specific certs On the agent: puppet agent -t On the master: puppet cert sign <agent_certname>

@erasmolpa
erasmolpa / service-checklist.md
Created March 7, 2021 07:35 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?