Skip to content

Instantly share code, notes, and snippets.

Danish Backer danishbacker

Block or report user

Report or block danishbacker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danishbacker
danishbacker / assets.confg
Created Jun 25, 2017 — forked from Azrael808/assets.confg
Automatically Publishing Files to CloudFront in Elastic Beanstalk
View assets.confg
container_commands:
01_upload_to_cdn:
command: |
export REGION=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document |grep region |cut -d: -f2 | sed -e 's/[\",]//g'`
export INCLUDES=`echo $W3TC_CF_FILE_EXTENSIONS | sed 's/;/\ /g'`
for INC in $INCLUDES; do
aws s3 sync wp-includes/ s3://${W3TC_CF_BUCKET_NAME}/wp-includes/ --exclude "*" --include "${INC}" --region $REGION
aws s3 sync wp-content/ s3://${W3TC_CF_BUCKET_NAME}/wp-content/ --exclude "*" --include "${INC}" --region $REGION
done
@danishbacker
danishbacker / circle.yml
Created Jun 25, 2017 — forked from Azrael808/circle.yml
CircleCI: Automatically Deploy WordPress to Elastic Beanstalk
View circle.yml
machine:
<machine_config>
dependencies:
pre:
- pip install awsebcli
- <other_project_dependencies>
database:
<database_setup>
test:
<test_config>
@danishbacker
danishbacker / phpmyadmin.config
Created Jun 25, 2017 — forked from Azrael808/phpmyadmin.config
Install and Configure PHPMyAdmin on Elastic Beanstalk
View phpmyadmin.config
container_commands:
01_install_pma:
test: test -n "$PMA_VER" && test ! -f /tmp/phpmyadmin.tar.gz
command: |
cd /tmp
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1
cd /tmp && sha1sum --check phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1
if [[ $? == 0 ]]
then
You can’t perform that action at this time.