Skip to content

Instantly share code, notes, and snippets.

@markorapaic
markorapaic / config.yml
Created December 7, 2020 06:07 — forked from Prophe1/config.yml
CircleCI + WPEngine + SAGE
# Continuous Integration to a WP Engine install
# PHP CircleCI 2.0 configuration file
#
# You need to generate and add SSH key to CircleCI project SSH Permissions tab
# And then copy fingerprint and replace YOUR_SSH_KEY with it. Also same Key must be added to WPEngine's project SSH tab.
# After, You need to add environtmen varriables WP_THEME_DIR - theme directory and WPE_INSTALL -
# WPEngine install name/slug. You need to have .gitignores folder with two files (__default and __production)
# __default means that it will be used in local develoment, and __production will be used when pushing to WPEngine
version: 2
@markorapaic
markorapaic / .circleci config.yml
Created June 8, 2020 13:29 — forked from ryanshoover/.circleci config.yml
CircleCI 2.1 Continuous Integration with WP Engine
# Continuous Integration to a WP Engine install
# PHP CircleCI 2.1 configuration file
# Requirements:
# 1. In CircleCI settings, add environment variables for your site's installs:
# * WPE_PRODUCTION_INSTALL=thenameofyourproductioninstall
# * WPE_STAGING_INSTALL=thenameofyourstaginginstall
# * WPE_DEVELOPMENT_INSTALL=thenameofyourdevelopmentinstall
# 2. In your repo, have two files
# * `./.gitignores/__default` -- Excludes any compiled files
image: php:7.2-cli
before_script:
# Updates
- curl -sL https://deb.nodesource.com/setup_10.x | bash
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt-get update
- apt-get -y install yarn libpcre3-dev zlib1g-dev libbz2-dev libpng-dev libjpeg-dev nodejs git zip unzip curl rsync mysql-client
- docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr
FOLDER=wp-content/themes/
if [ "production" == "${CI_ENVIRONMENT_NAME}" ]; then
WPE_INSTALL=prod_install
elif [ "staging" == "${CI_ENVIRONMENT_NAME}" ]; then
WPE_INSTALL=staging_install
else
WPE_INSTALL=dev_install
fi
@markorapaic
markorapaic / perfectelementary.bash
Created November 23, 2018 14:51 — forked from ezeeyahoo/perfectelementary.bash
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#https://elementary.io/
#Clean-up System
sudo apt-get purge midori-granite -y
sudo apt-get purge yelp -y
sudo apt-get purge evince -y
sudo apt-get purge gnome-orca -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y