dhcp-script=/etc/detect_new_device.sh
Reference:
<?php # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Page Feed | |
* Description: Adds a feed for pages at <code>/feed/?post_type=page</code>. | |
* Version: 2012.05.22 | |
* Author: Thomas Scholz | |
* Author URI: http://toscho.de | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
*/ |
#!/bin/bash | |
# Convert Markdown to Wordpress blogging format | |
# Required program(s) | |
req_progs=(ascii2uni pandoc) | |
for p in ${req_progs[@]}; do | |
hash "$p" 2>&- || \ | |
{ echo >&2 " Required program \"$p\" not installed."; exit 1; } | |
done |
<?php | |
// -------------------------------------------------------------------------- // | |
// CONTACT FORM 7 -> MAILCHIMP // | |
// -------------------------------------------------------------------------- // | |
// © 2015 Caio Tarifa. All Rights Reserved. // | |
// -------------------------------------------------------------------------- // | |
function wpcf7_send_to_mailchimp() { |
function setUserAgent(window, userAgent) { | |
// Works on Firefox, Chrome, Opera and IE9+ | |
if (navigator.__defineGetter__) { | |
navigator.__defineGetter__('userAgent', function () { | |
return userAgent; | |
}); | |
} else if (Object.defineProperty) { | |
Object.defineProperty(navigator, 'userAgent', { | |
get: function () { | |
return userAgent; |
dhcp-script=/etc/detect_new_device.sh
Reference:
<?php | |
/* | |
Plugin Name: Append Download button below audio player | |
Plugin URI: https://www.damiencarbery.com/2017/02/add-download-link-to-wordpress-audio-player/ | |
GitHub Plugin URI: https://github.com/damiencarbery/audio-shortcode-download-link | |
Description: Add a Download link to the html generated for the "audio" shortcode. | |
Author: Damien Carbery | |
Version: 0.2 | |
*/ |
addEventListener('fetch', event => { | |
event.respondWith(purgeCache(event.request)) | |
}) | |
async function purgeCache(request) { | |
const url = new URL(request.url) |
<?php | |
/* | |
Plugin Name: Display attribute name and value in WooCommerce | |
Plugin URI: https://www.damiencarbery.com/2019/09/display-attribute-name-and-value-in-woocommerce/ | |
Description: Show the attribute name beside the attribute value in WooCommerce (in Cart, Checkout and order emails). | |
Author: Damien Carbery | |
Version: 0.2 | |
*/ | |
add_filter( 'woocommerce_product_variation_title_include_attributes', 'dcwd_product_variation_title_include_attributes', 10, 2 ); |
After you've downloaded and installed WAMP Server, follow these steps:
Add C:\wamp64\bin\apache\apache2.4.27\bin
directory to the PATH so you can access openssl
command from the command prompt (WAMP comes with its own version of OpenSSL already integrated, so you don't need to install it. You'll find it in this directory.).
IMPORTANT: Please note that the path of your installation depends on your version of Apache! DO NOT copy and paste the paths presented in this gist as they will not match with yours!
Navigate to your user directory (C:\Users\%YOUR_USERNAME%\
), create a new folder (.openssl
), navigate to it with Powershell and run these commands:
openssl genrsa -aes256 -out private.key 2048
openssl rsa -in private.key -out private.key
sendmail.zip
and place the contents in an easily accessible place, like C:\sendmail
;sendmail.ini
file using a text editor such as notepad and edit the following values:
[sendmail]
smtp_server=mail.example.com
smtp_port=465
[email protected]
auth_password=your_password