Skip to content

Instantly share code, notes, and snippets.

View KoenRijpstra's full-sized avatar
💭
Pushing Web3 Development To The Next Level 🚀

Koen Rijpstra KoenRijpstra

💭
Pushing Web3 Development To The Next Level 🚀
View GitHub Profile
@KoenRijpstra
KoenRijpstra / laravel-forge-ngx-pagespeed.sh
Created January 31, 2018 19:01 — forked from CasperLaiTW/laravel-forge-ngx-pagespeed.sh
Laravel Forge Support NGX_PAGESPEED
PAGESPEED_VERSION=v1.12.34.2-stable
apt-get remove nginx nginx-full -y
apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev -y
sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list.d/nginx-ubuntu-development-xenial.list
apt-get update
apt-get build-dep nginx -y
cd /tmp
apt-get source nginx
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
/**
* Enable unpublished pages in page lists and dropdowns
*
* @param array $args
* @return array $args
*/
function scl_list_pages_args( $args ) {
$args['post_status'] = array( 'publish', 'private' );
return $args;
}