Skip to content

Instantly share code, notes, and snippets.

View kitos9112's full-sized avatar
💭
#AutomateEveything

Marcos Soutullo Rodriguez kitos9112

💭
#AutomateEveything
  • Reading, UK
View GitHub Profile
@kitos9112
kitos9112 / get-terragrunt.sh
Last active March 26, 2024 14:41
Bash script that automatically updates to latest version of Terragrunt
#!/bin/bash
###########################################################################
# Fetch and install the latest Terragrunt version
# curl -Ls https://gist.githubusercontent.com/kitos9112/67c1ab959680492197e9bfe973297f2f/raw/2331cb5fb08d3c307a6ae8e84fc4685314151571/get-terragrunt.sh| bash
##########################################################################
set -e
set -x
function get_latest_github_release {
curl -s https://api.github.com/repos/$1/$2/releases/latest | grep -oP '"tag_name": "[v]\K(.*)(?=")'
@kitos9112
kitos9112 / cf-ddns.sh
Created September 14, 2020 21:47 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@kitos9112
kitos9112 / grantPermissionsToMSI.ps1
Last active June 20, 2023 08:36
Idempotently Manages MS Graph Permissions for a Managed-Service Identity in Azure using Powershell
#------------------------------------------------------------
# DO NOT EDIT THIS SECTION
#------------------------------------------------------------
$GraphAppId = "00000003-0000-0000-c000-000000000000" # Don't change this.
$oGraphSpn = Get-AzADServicePrincipal -Filter "appId eq '$GraphAppId'"
#------------------------------------------------------------
#------------------------------------------------------------
# EDIT THIS SECTION
@kitos9112
kitos9112 / bootstrap-k8s.ps1
Created September 23, 2023 10:03
Bootstraps a Kubernetes cluster using multipass and HyperV
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and