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.
| # 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 |
| 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 |
| #!/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 |
| #!/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}" |
| # 1. Three subnets for each AZ. | |
| # Privarte subnet - NATGW subent - FW (Public) subnet - Internet Gateway | |
| # 2. AWS firewall deployed with a policy which allow all the domains listed on the ROSA document as prerequistes for egress. | |
| # 3. one bation server will be deployed on which oc and git command are already installed. This can be access directly from AWS console. | |
| # | |
| # you can choose the default IP ranges and the AZs. Please be aware the network will be deployed in Japan as default. | |
| # 2023/01/14 yuhkih Added allow domains to setup an EC2 for Let's Encrypt (needed in case you put the EC2 in ROSA VPC) | |
| # - "dl.fedoraproject.org" # Added to setup EC2 for Let's Encrypt | |
| # - "mirrors.fedoraproject.org" # Added to setup EC2 for Let's Encrypt | |
| # - "d2lzkl7pfhq30w.cloudfront.net" # Added to setup EC2 for Let's Encrypt |
| 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." | |
| } | |
| } |
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.)
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!
| 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 |