Skip to content

Instantly share code, notes, and snippets.

View nem-c's full-sized avatar

Nemanja Cimbaljevic nem-c

View GitHub Profile
@nem-c
nem-c / install-composer
Created April 8, 2021 07:23
Composer for DevKinsta
## On you machine run:
docker exec -it devkinsta_fpm bash
## After you are logged change to /tmp
cd /tmp
## Install and configure composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
@nem-c
nem-c / managewp.allow
Last active October 21, 2016 12:42
CSF file to allow all ManageWP addresses
## Place this file in /etc/csf/managewp.allow
## add line
## Include /etc/csf/managewp.allow
## to /etc/csf/csf.allow
52.11.12.231
52.11.29.70
52.11.54.161
52.24.142.159
52.25.191.255
@nem-c
nem-c / newrelic.allow
Last active October 21, 2016 13:07
CSF file to allow all NewRelic addresses
## Place this file in /etc/csf/newrelic.allow
## add line
## Include /etc/csf/newrelic.allow
## to /etc/csf/csf.allow
## newrelic agents ##
50.31.164.0/24
162.247.240.0/22
## newrelic agents ##
## newrelic newrelic synthetics public minions ##