The setup installs the following software:
- Nginx
- MySQL
- PHP
- Node
- Composer
server { | |
#listen 80; | |
#listen [::]:80; | |
server_name sub.domain.tld; | |
access_log /var/log/sendy/nginx.access.log; | |
error_log /var/log/sendy/nginx.error.log; |
<?php | |
/* | |
Plugin Name: Get Remote Image to Custom Field | |
*/ | |
add_filter('really_simple_csv_importer_post_saved', function($post) | |
{ | |
if (is_object($post)) { | |
// Get the meta data of which key is "image" | |
$image = $post->image; |
#Put this in Export-Chocolatey.ps1 file and run it: | |
#.\Export-Chocolatey.ps1 > packages.config | |
#You can install the packages using | |
#choco install packages.config -y | |
Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>" | |
Write-Output "<packages>" | |
choco list -lo -r -y | % { " <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" version=`"$($_.SubString($_.IndexOf("|") + 1))`" />" } | |
Write-Output "</packages>" |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
rename = require('gulp-rename'), | |
cssmin = require('gulp-cssnano'), | |
prefix = require('gulp-autoprefixer'), | |
plumber = require('gulp-plumber'), | |
notify = require('gulp-notify'), | |
sassLint = require('gulp-sass-lint'), | |
sourcemaps = require('gulp-sourcemaps'); | |
// Temporary solution until gulp 4 |
Demonstrates how to load SVG's as Leaflet icons via the data URI method.
Following was helpful to figure this out:
/** | |
* Wrap embed html with bootstrap responsive embed div | |
*/ | |
function bootstrap_embed( $html, $url, $attr ) { | |
if ( ! is_admin() ) { | |
return "<div class=\"embed-responsive embed-responsive-16by9\">" . $html . "</div>"; | |
} else { | |
return $html; | |
} | |
} |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log