Skip to content

Instantly share code, notes, and snippets.

View mrbenosborne's full-sized avatar

Ben Osborne mrbenosborne

View GitHub Profile
@mrbenosborne
mrbenosborne / php-install-from-source.sh
Created January 26, 2021 15:40
Download PHP and Build from Source
#!/bin/bash
PHP_VERSION=$1
WORKDIR=$(pwd)
DOWNLOAD_FILE="php-$PHP_VERSION.tar.gz"
TAR_OUT_DIR="$WORKDIR/php-src-php-$PHP_VERSION"
curl -O -L https://github.com/php/php-src/archive/$DOWNLOAD_FILE
tar -zxvf "$WORKDIR/$DOWNLOAD_FILE"
@mrbenosborne
mrbenosborne / circleci_aws_add_remove.sh
Last active March 27, 2019 21:25
Circle CI - Add and Remove Security Group Rule for servers that are not publicly accessible
#!/bin/bash
# "jq" is required to be installed for this script to work
# and "awscli"
# set security group id from AWS
SecurityGroupID="sg-XXXXXXXX"
# Set the port no
Port=3306