Skip to content

Instantly share code, notes, and snippets.

View Nanyte25's full-sized avatar

Mark Freer Nanyte25

View GitHub Profile
# Source: https://gist.github.com/vfarcic/02bbfaf6cf8f5b03f4267b50f3f3233b
#########################################################
# How To Create A "Proper" CLI With Shell And Charm Gum #
# https://youtu.be/U8zCHA-9VLA #
#########################################################
# Additional Info:
# - Charm Gum: https://github.com/charmbracelet/gum
@Nanyte25
Nanyte25 / git_submodules.md
Created October 5, 2023 21:04 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@Nanyte25
Nanyte25 / setup-vpc.tf
Created June 15, 2023 12:42 — forked from mrbarge/setup-vpc.tf
Existing VPC Terraform
variable "aws_region" {
type = string
description = "The region to create the ROSA cluster in"
default = "us-west-2"
validation {
condition = contains(["us-west-2", "us-east-2", "eu-west-1"], var.aws_region)
error_message = "HyperShift is currently only availble in these regions: us-west-2, eu-west-1."
}
}
# Source: https://gist.github.com/vfarcic/78c1d2a87baf31512b87a2254194b11c
###############################################################
# How To Create A Complete Internal Developer Platform (IDP)? #
# https://youtu.be/Rg98GoEHBd4 #
###############################################################
# Additional Info:
# - DevOps MUST Build Internal Developer Platform (IDP): https://youtu.be/j5i00z3QXyU
# - How To Create A "Proper" CLI With Shell And Charm Gum: https://youtu.be/U8zCHA-9VLA
@Nanyte25
Nanyte25 / hshift_uninstall_unblock.sh
Created March 3, 2023 10:26 — forked from typeid/hshift_uninstall_unblock.sh
The goal of this bash script is to allow removing the earliest blocking finalizer of hypershift cluster stuck in deletion.
#!/bin/bash
# Prerequisites: SRE-P backplane access, latest ocm-cli
set -euo pipefail
CLUSTER_ID="${1:-}"
if [[ -z "${CLUSTER_ID}" ]]; then
echo "Specify the cluster id of the stuck hosted cluster"
echo "Usage: ${0} CLUSTER_ID"
exit 1
fi
@Nanyte25
Nanyte25 / hypershift-debug
Created January 25, 2023 10:20 — forked from lucasponce/hypershift-debug
Hypershift debug
#!/bin/bash
# Params
# $1 environment (int or stage)
# $2 cluster name to debug
# $3 base directory to create logs and keys
if [ "$1x" == "x" ]
then
echo "It requires an environment {int or stage}"
@Nanyte25
Nanyte25 / setup-vpc.tf
Created December 7, 2022 15:31 — forked from wgordon17/setup-vpc.tf
Existing VPC Terraform
variable "aws_region" {
type = string
description = "The region to create the ROSA cluster in"
default = "us-east-2"
validation {
condition = contains(["us-east-2", "us-west-2"], var.aws_region)
error_message = "HyperShift is currently only availble in these regions: us-east-2, us-west-2."
}
}
@Nanyte25
Nanyte25 / WARNING.md
Created July 11, 2022 15:55 — forked from Ambroos/WARNING.md
Remove SentinelOne agent from Mac. Because honestly, it doesn't seem to do anything at all. Run as root, best is to do this from a recovery mode, single user mode with writeable filesystem, ...

USE AT OWN RISK

This was only tested on a 'partial' SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension. (Some things failed while I was messing around with OS betas.)

This script is most likely outdated.

A lot happens in 2+ years, at this point there's a good chance this script will do more harm than good. Read the comments before using!

@Nanyte25
Nanyte25 / docker-compose.yml
Created June 7, 2022 11:15 — forked from G4brym/docker-compose.yml
Docker compose for running GlitchTip with persistent PostgreSQL
version: "3.4"
x-environment: &default-environment
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
SECRET_KEY: your-secret-here
PORT: 8000
GLITCHTIP_DOMAIN: https://glitchtip.yourcompany.com
EMAIL_URL: smtp+tls://smtp-user:[email protected]:587
DEFAULT_FROM_EMAIL: [email protected]
ENABLE_OPEN_USER_REGISTRATION: "True"
x-depends_on: &default-depends_on