Skip to content

Instantly share code, notes, and snippets.

View hassanhashmy's full-sized avatar
💭
DevOps

Hassan Hashmi hassanhashmy

💭
DevOps
View GitHub Profile
@hassanhashmy
hassanhashmy / 01_elastic_beanstalk_install_packages.config
Created March 23, 2021 16:28 — forked from hanhdt/01_elastic_beanstalk_install_packages.config
Setup additional linux packages on AWS Elastic Beanstalk that need to build Rails 5
# Setup linux packages
option_settings:
- option_name: BUNDLE_DISABLE_SHARED_GEMS
value: "1"
- option_name: BUNDLE_PATH
value: "vendor/bundle"
packages:
yum:
curl: []
AWSTemplateFormatVersion: "2010-09-09"
Description: "Template description"
Parameters:
AppEnvironment:
Type: String
Default: production
EC2InstanceType:
Type: String
Default: a1.medium
@hassanhashmy
hassanhashmy / VulnerbilityPatch.sh
Created July 6, 2019 13:06
This script is to remove vulnerabilities from the Operating System based on Linux Centos
#/bin/bash
# This is general file to update operating system based on centos.
@hassanhashmy
hassanhashmy / upgrade-php7.sh
Created July 6, 2018 15:06 — forked from heathdutton/upgrade-php7.sh
Upgrade PHP 7.0 to 7.1 on Amazon Linux (specifically for Elastic Beanstalk but should work elsewhere)
#!/usr/bin/env bash
# Upgrade an Amazon Linux PHP 7.0 EC2 to PHP 7.1
#
# Must be ran as sudo:
# sudo bash upgrade-php71.sh
#
# Can be added to ./.ebextensions/20_php.config like so:
# container_commands:
# 20_php71_upgrade:
# command: sudo bash scripts/upgrade-php71.sh