Skip to content

Instantly share code, notes, and snippets.

View tonyclemmey's full-sized avatar

Tony Clemmey tonyclemmey

  • London
View GitHub Profile
@tonyclemmey
tonyclemmey / wp_config.php
Created April 8, 2022 19:33 — forked from butlerblog/wp_config.php
Configure WordPress #wp_mail function to send through #SMTP server https://b.utler.co/Y3
<?php
/*
* Set the following constants in wp-config.php.
* These should be added somewhere BEFORE the constant ABSPATH is defined.
*
* Author: Chad Butler
* Author URI: https://butlerblog.com
*
* For more information and instructions, see: https://b.utler.co/Y3
@tonyclemmey
tonyclemmey / .htninja
Last active January 10, 2022 00:14 — forked from jcchikikomori/.htninja
NinjaFirewall config for Bedrock
<?php
/*
+=====================================================================+
| NinjaFirewall optional configuration file |
| |
| See: https://nintechnet.com/ninjafirewall/wp-edition/help/?htninja |
| |
+=====================================================================+
| |
| BEDROCK SUPPORT |
@tonyclemmey
tonyclemmey / theme-woocommerce.php
Last active November 30, 2021 19:35
wordpress mini cart menu - ekko theme
<?php
if ( ! class_exists( 'WooCommerce' ) ) {
return;
}
// Remove WooCommerce enqueued styles
add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
// Remove WooCommerce prettyPhoto
if( ! function_exists( 'ekko_remove_woo_scripts' ) ) {

Install MySQL

See what formula are available.

brew search mysql
==> Formulae
@tonyclemmey
tonyclemmey / squid3-install.sh
Last active January 10, 2022 17:34 — forked from james-see/squid_http_setup_ubuntu.sh
squid http proxy setup
#!/bin/bash
############################################################
# Squid Proxy Installer
# Author: Yujin Boby
# Email: admin@serverOk.in
# Github: https://github.com/serverok/squid-proxy-installer/
# Web: https://serverok.in/squid
############################################################
# For paid support, contact
# https://serverok.in/contact
@tonyclemmey
tonyclemmey / woocommerce.css
Created May 4, 2021 22:32 — forked from catchthemes/woocommerce.css
Make the WooCommerce Cart Table Responsive for Mobile Devices
/* START Make the WooCommerce Cart Table Responsive for Mobile */
/* CSS published in http://www.jeremycarter.com.au/optimising-woocommerce-checkout-for-mobile/ */
@media screen and (max-width: 600px) {
/* Force table to not be like tables anymore */
.woocommerce-page table.shop_table,
.woocommerce-page table.shop_table thead,
.woocommerce-page table.shop_table tbody,
.woocommerce-page table.shop_table th,
@tonyclemmey
tonyclemmey / Cordova for iOS
Created February 21, 2021 23:57 — forked from peteygao/Cordova for iOS
Step by Step guide to installing Cordova for iOS development
1. Install Xcode, if you haven't already.
a. Once installed, run Xcode and accept the license agreement.
b. Go into Xcode Prefs (Cmd + ,), go to Downloads, and install "Command Line Tools for Xcode" (or something named similarily)
2. Install Homebrew (copy and paste the following into your terminal):
```bash
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@tonyclemmey
tonyclemmey / whatissoslow.php
Created December 20, 2020 02:34 — forked from Viper007Bond/whatissoslow.php
WordPress: Times how long it takes each filter and action to run and displays results at the end of the page. Quick and dirty.
<?php
/**
* This little class records how long it takes each WordPress action or filter
* to execute which gives a good indicator of what hooks are being slow.
* You can then debug those hooks to see what hooked functions are causing problems.
*
* This class does NOT time the core WordPress code that is being run between hooks.
* You could use similar code to this that doesn't have an end processor to do that.
*

Gray & White - Skewed Slider with Scrolling

This Skewed Slider with Scrolling based on Pure JS and CSS (without libraries).

A Pen by Victor Belozyorov on CodePen.

License.

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.