Skip to content

Instantly share code, notes, and snippets.

@linuxdevops-34
linuxdevops-34 / prepare_s3_report-basic.sh
Created September 9, 2020 05:50 — forked from kshailen/prepare_s3_report-basic.sh
Get Size details of all S3 buckets
#!/bin/bash
# exit when the command fails
set -o errexit;
# exit when try to use undeclared var
set -o nounset;
Total_num_of_buckets=`aws s3 ls s3:// | awk '{print $NF}'| wc -l`
printf "%s: %4d\n" "Total Number of s3 buckets" ${Total_num_of_buckets}
printf "%s: %4s\n" "Bucket Name" "Bucket Size"
@linuxdevops-34
linuxdevops-34 / configure-ec2-instance.md
Created July 17, 2020 09:20 — forked from manojkumararyan/configure-ec2-instance.md
Complete guide for deploying rails application to aws ec2 instance, using capistrano as deploying tool with nginx & puma server

Deploy Rails Application to AWS EC2

Creating AWS EC2 Instance

- login to 'AWS Management Console' (https://aws.amazon.com/console/)
- from 'Services'(in navbar) choose 'EC2'
- from 'Create Instance' section, click on 'Launch Instance'
- then select 'AMI' (Amazon Machine Image), we will be using 'Ubuntu Server 16.04 LTS (HVM)' as example
- select 'Instance Type' as per your requirement
- then click 'Next:Configure Instance Details' to continue
  change 'Configure Instance Details' or used as default settings
// Set your project Prefix using your GUID
def prefix = "user22"
// Routes
def clusterDomain = "apps.cluster-19ae.sandbox478.opentlc.com"
def tasksDevRoute = "tasks-${prefix}-tasks-dev.${clusterDomain}"
def ocpRegistryRoute = "default-route-openshift-image-registry.${clusterDomain}"
def nexusRegistryRoute = "nexus-registry-${prefix}-cicd.${clusterDomain}"
// Set variable globally to be available in all stages
@linuxdevops-34
linuxdevops-34 / update.sh
Created July 17, 2020 04:57 — forked from jack-tjia/update.sh
Script to update jenkins master
#!/bin/sh
################################################################################
# This script will upgrade Jenkins.
#
# It assumes the Jenkins server is started with java -jar jenkins.war command.
# The script will backup existing Jenkins war file and configurations.
# After upgrade is done, Jenkins server will be restarted.
#
# Check upgrade.sh -h to get help.
@linuxdevops-34
linuxdevops-34 / mern-deploy.md
Created July 17, 2020 04:40 — forked from rmiyazaki6499/deploy-mern.md
Deploying a Production ready React-Express app on AWS EC2 with CI/CD

Deploying a Production ready React-Express App on EC2 with CI/CD

In this guide I will go through the steps of setting up your EC2 instance for your React-Express project and deploy it with CI/CD using Github Actions.

Any commands with the "$" at the beginning run on your local machine and any with "%" should be run on your server.

Table of Contents

@linuxdevops-34
linuxdevops-34 / README.md
Created July 17, 2020 04:27 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.