Skip to content

Instantly share code, notes, and snippets.

View fikret's full-sized avatar

Fikret fikret

View GitHub Profile
@fikret
fikret / functions.php
Created March 17, 2025 01:14 — forked from danielbitzer/functions.php
AutomateWoo - Add WP Shortcode support to workflow emails
<?php
/*
* Add shortcode support to to AutomateWoo email content.
*
* NOTE: Using shortcode's in emails is discouraged because most shortcodes don’t output valid HTML for email.
* Also many shortcodes simply don't work outside of the frontend template context.
*/
add_filter( 'automatewoo_email_content', 'shortcode_unautop', 11 );
add_filter( 'automatewoo_email_content', 'do_shortcode', 11 );
@fikret
fikret / php-pools.md
Created January 2, 2021 16:52 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@fikret
fikret / Basckup_Web_Database_Server.sh
Created December 21, 2020 04:34 — forked from ashutoshsmaurya/Basckup_Web_Database_Server.sh
Backup Web Server and Database to Google Drive - Bash Script
#!/bin/bash
#Please note - This script tested on Centos-6,7/Redhat-6,7.
#Check Internet Connection
IS=`/bin/ping -c 5 4.2.2.2 | grep -c "64 bytes"`
if (test "$IS" -gt "2") then
internet_conn="1"
#Check Gdrive Software Install Or Not
file="/usr/bin/gdrive"
if [ -f "$file" ]
then