Skip to content

Instantly share code, notes, and snippets.

View pengkong's full-sized avatar

Peng Kong Choy pengkong

View GitHub Profile
@pengkong
pengkong / gist:80d95643892ceac51a6246cad5ce1ad1
Last active October 12, 2018 08:08
Setup NGINX PHP 7.1 for Laravel on AWS Amazon Linux 2
sudo yum update -y
sudo vim /etc/environment
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
# Install Nginx, PHP-FPM 7.1 & MySQL Server
sudo yum install nginx php71-fpm mysql56-server php71-mysqlnd -y
@pengkong
pengkong / instructions.md
Created June 30, 2017 03:42
Thumbor Server on AWS

Update AWS Instance

Launch and SSH to AWS Instance
Type sudo su
Type yum update -y
Type yum groupinstall "Development Tools" -y
Type pip install --upgrade pip (pip resides at /usr/local/bin/pip, pip version 8.0.2, python version 2.7.10)

Install Thumbor Dependencies

Type yum install libjpeg-turbo-devel libjpeg-turbo-utils libtiff-devel libpng-devel pngcrush jasper-devel libwebp-devel libcurl-devel cmake -y
Type /usr/local/bin/pip uninstall pycurl

@pengkong
pengkong / fcm-gcm-server-boilerplate.php
Last active January 28, 2017 04:25
Google FCM/GCM PHP Server Boilerplate
<?php
$registration_ids = [
'You',
'Only'
];
$data = ['title' => 'Live', 'message' => 'Once!'];
$payload = json_encode([