Mac OSX regenerate CA certificates via brew:
brew reinstall ca-certificates
Mac OSX regenerate CA certificates via brew:
brew reinstall ca-certificates
## Source: https://support.plesk.com/hc/en-us/articles/360004529374/comments/360001512840 | |
#!/bin/bash | |
plesk bin php_handler --list | grep -E plesk.*fpm | awk -F" " '{ print $1 }' | while read i; do service $i restart; done |
<?php | |
/** | |
* Provide an interface to obtain field information on the frontend. | |
*/ | |
class GF_JS_Fields_Query | |
{ | |
/** |
<?php | |
function delete_custom_posts($post_type = 'post'){ | |
global $wpdb; | |
$result = $wpdb->query( | |
$wpdb->prepare(" | |
DELETE posts,pt,pm | |
FROM wp_posts posts | |
LEFT JOIN wp_term_relationships pt ON pt.object_id = posts.ID | |
LEFT JOIN wp_postmeta pm ON pm.post_id = posts.ID | |
WHERE posts.post_type = %s |
<?php | |
/** | |
* Filter below adds custom condition for IF-Menu plugin. | |
* https://wordpress.org/plugins/if-menu/ | |
*/ | |
add_filter( 'if_menu_conditions', 'pgs_menu_conditions' ); | |
function pgs_menu_conditions( $conditions ) { |
PROGRAM_NAME=Used | |
#PROGRAM_NAME=Ignore |
# TEMP MAINTENANCE PAGE | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# maintenance page and assets | |
RewriteCond %{REQUEST_URI} !/maintenance [NC] | |
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] | |
# serve default 503 response | |
RewriteRule .* ./maintenance.html [R=503,L] |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
Create /etc/nginx/conf.d/cache.conf with contents:
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:5m max_size=1000m;
proxy_cache_key "$host$request_uri$cookie_user";
Add the following to nginx directives for the specific domain:
<% | |
' Compile QueryStirng From POST | |
DataToSend = "" | |
For Each Item In Request.Form | |
fieldName = Item | |
fieldValue = Request.Form(Item) |