Skip to content

Instantly share code, notes, and snippets.

View clchoong's full-sized avatar

Chee Leong clchoong

View GitHub Profile
@clchoong
clchoong / purge_cf.php
Created May 31, 2022 12:42 — forked from Greg-Boggs/purge_cf.php
PHP code to Purge Cloudflare Cache
<?php
// Replace EMAIL/API_KEY/ZONE_ID with your details.
// Zone ID is on the dashboard for the domain in the bottom right.
// Api keys are generated from the account settings. You must give cache purge permissions
// Place this script on your webserver and point a Github Webhook at it, and you'll clear
// the Cloudflare cache every time you do a push to GH.
try {
$head = [];
$head[] = 'Content-Type: application/json';
@clchoong
clchoong / commands.txt
Created August 14, 2019 16:03 — forked from adam1010/commands.txt
Web Server Setup on Amazon Linux 2
## Amazon Linux 2 ##
sudo yum update -y
sudo amazon-linux-extras install lamp-mariadb10.2-php7.2 nginx1.12
sudo yum install -y mariadb-server
sudo systemctl enable php-fpm
sudo systemctl enable nginx
sudo systemctl enable mariadb
@clchoong
clchoong / amazon-ec2-ftp.md
Created October 27, 2016 03:17 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup