Skip to content

Instantly share code, notes, and snippets.

View MervinHernandez's full-sized avatar
💼
On Task

Mervin Hernandez MervinHernandez

💼
On Task
View GitHub Profile

1: Install the Kemp Load Balancer

  1. DOWNLOAD from https://kemptechnologies.com/free-vlm-register/
  2. INSTALL The OVF Image (either in ESXI or in VMWare Workstation)
  3. EDIT Network Adapter Settings
    1. Ensure the two NIC's have a unique and static MAC address
  4. LOGIN To the web interface
  5. ACTIVATE "Free" license

2: Load Balancer Initial Setup

  1. LOGIN to the web interface of the load balancer Mervin's Local Network = https://192.168.1.28/
<?php
/*
* Add this in functions
*/
// -- WooCommerce - Hide product upsells admin notes
add_filter('woocommerce_product_related_posts_query', '__return_empty_array', 100);
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
@MervinHernandez
MervinHernandez / toggle_admin_notices.php
Created April 1, 2020 17:35
TOGGLE WP Admin Notices
<?php
// -- Header - TOGGLE Hide Admin Notices
// -- -- ADD Script and Styling
function wm_admin_notices_toggle_script() { ?>
<!-- JS for Admin Notices Hide -->
<script>
function toggle_visibility(className) {
//alert ('you clicked it');
elements = document.getElementsByClassName('notice');
for (var i = 0; i < elements.length; i++) {
@MervinHernandez
MervinHernandez / gravityforms-unrequire-fields.php
Created December 20, 2019 01:53
Gravity Forms - Unrequire Fields for Testing
/**
* Gravity Forms Unrequire.
* Unrequire all required fields so you don't have to fill them out during testing.
*/
class GravityFormsUnrequire {
var $args = null;
public function __construct( $args = array() ) {
extract( wp_parse_args( $args, array(
'admins_only' => true,
'require_query_param' => false
@MervinHernandez
MervinHernandez / functions.php
Created February 5, 2019 05:11
Pro Theme - User Role Condition Display Global Block
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to Pro in this file.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
@MervinHernandez
MervinHernandez / stylebot-chrome-monster.css
Last active November 27, 2017 18:33
Stylebot Chrome Extension - my custom CSS for Monster.com
/* = = = = = = = = = = =
SCREEN EDITS for StyleBot Chrome Extension
SITE: https://hiring.monster.com
= = = = = = = = = = = */
.recordsDisplay {
font-size: 200% !important;
background-color: yellow;
line-height: 1.5em !important;
clear: both;
@MervinHernandez
MervinHernandez / stylebot-chrome-cats.css
Last active May 8, 2018 19:55
Stylebot Chrome Extension - CATS
/*
// ---------------------
GLOBAL CATS Edits
// ---------------------
*/
/* Header FIXED */
#header {position: fixed;}
/* Hide CATS Commons Link */