Skip to content

Instantly share code, notes, and snippets.

View ngeorger's full-sized avatar
🗨️

Nicolás Georger ngeorger

🗨️
View GitHub Profile
@ngeorger
ngeorger / ghost-on-kubernetes.md
Created July 1, 2024 01:53
Ghost CMS v5.xx.x from @TryGhost (upstream) on Kubernetes, with our custom image, which has significant improvements to be used on Kubernetes. See this whole README for more information.

Ghost on Kubernetes by SREDevOps.Org

SREDevOps.org

Community for SRE, DevOps, Cloud Native, GNU/Linux, and more. 🌎

Build Multiarch | Image Size | OpenSSF Scorecard | ![Fork this repo

@ngeorger
ngeorger / homebrew-git-as-default-in-macos.md
Last active June 24, 2024 21:52
How to use Homebrew Git as default in macOS

How to use Homebrew Git as default in macOS

# Install Brew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install git from Homebrew

@ngeorger
ngeorger / rig-dev-on-kind.sh
Created November 12, 2023 05:41
Create a kind cluster with rig.dev instance
#!/usr/bin/env bash
set -e
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
KIND="${KIND:=kind}"
KUBECT="${KUBECTL:=kubectl --context kind-rig}"
HELM="${HELM:=helm --kube-context kind-rig}"
# Create kind cluster
@ngeorger
ngeorger / microk8s-2node-cluster-md
Last active April 29, 2023 18:57
Create a 2 node kubernetes cluster with microk8s
## MASTER NODE:
```sh
microk8s.add-node --token-ttl 3600 --format yaml --token $(openssl rand -hex 32)
```
## WORKER NODE
Using the previous output:
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: runner-deployment
spec:
template:
spec:
repository: tuladhar/self-hosted-runner
---
apiVersion: actions.summerwind.dev/v1alpha1
@ngeorger
ngeorger / fix m1 pro 12.6 bricked macos
Last active September 20, 2022 10:00
solution: macbook pro m1 bricked (silicon m1 pro arm)
Just follow the standard method with apple configurator, but using the previous release for the OS, in this case I've used:
current bricked:
UniversalMac_12.6_21G115_Restore.ipsw
current fix:
UniversalMac_12.5.1_21G83_Restore.ipsw
@ngeorger
ngeorger / kubernetes_commands.md
Created June 27, 2022 07:31 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
@ngeorger
ngeorger / time-machine-on-linux.md
Created June 27, 2022 07:29
Create a macOS Time Machine backup on Linux server using SMB

Keybase proof

I hereby claim:

  • I am ngeorger on github.
  • I am nicogeorger (https://keybase.io/nicogeorger) on keybase.
  • I have a public key ASDDhX1lJWXwleviEXsJzUG6dqwgJdzGeNP_A19zJZSspQo

To claim this, I am signing this object:

@ngeorger
ngeorger / backup-ns-secrets-k8s.sh
Last active December 29, 2023 04:55
Backup or dump kubernetes secrets by namespaces
#!/usr/bin/bash
# This script is based on this one https://kevinsimper.medium.com/how-to-dump-all-kubernetes-secrets-to-yaml-files-b5afcf2d1f56
# But also it reads every namespace in your current default context and dumps it's secrets as a file named as the namespace and yml extension
# Tested on non-productive environments.
kubectl get namespaces | awk '{print $1}' | xargs -I{} sh -c 'kubectl get secrets -o yaml -n "$1" --no-headers >> "$1.yaml"' - {}