Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -e
# Function to delete an RDS instance.
#
# Arguments
# - $1: The identifier of the RDS instance to be deleted.
#
delete_instance() {
@kagodarog
kagodarog / Dockerfile
Created January 5, 2023 10:17 — forked from iolufemi/Dockerfile
Add Pentaho to Apache Fineract in a Docker Environment
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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
#
@kagodarog
kagodarog / appspec.yml
Created October 13, 2021 18:09 — forked from moshest/appspec.yml
Node.js Project on AWS CodeDeploy CentOS
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/node
permissions:
- object: /home/ec2-user
owner: ec2-user
group: ec2-user
type:
@kagodarog
kagodarog / vpc.yaml
Created June 1, 2021 21:40 — forked from milesjordan/vpc.yaml
Cloudformation template for a VPC with ipv6, with public and private subnets, calculating the subnet ipv6 CIDR blocks on the fly.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Public VPC and subnets
Resources:
#
# Public VPC
#
PublicVpc:
@kagodarog
kagodarog / docker-compose.yml
Created September 1, 2020 18:57 — forked from heironeous/docker-compose.yml
Traefik Ghost docker-compose
version: '3'
services:
ghost:
image: ghost:2-alpine
restart: always
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.backend=ghost"
@kagodarog
kagodarog / migrating-sonarqube.md
Created November 17, 2019 21:32 — forked from qtopie/migrating-sonarqube.md
Migrating sonarqube to docker container. (DB: mysql)

Back up database sonar

mysqldump -v -h 127.0.0.1 -P 3306 -u root -p --default-character-set=utf8 sonar > sonar_backup.sql

Database recovery

mysql -u username -p database_name < backup_name.sql
---
version: 0.2
phases:
pre_build:
commands:
- $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
- COMMIT_HASH="$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)"
- IMAGE_TAG="${COMMIT_HASH:=latest}"
- printenv