Skip to content

Instantly share code, notes, and snippets.

View mrcave's full-sized avatar

Denny Cave mrcave

View GitHub Profile
@wpmudev-sls
wpmudev-sls / mp-custom-order-number.php
Last active May 22, 2019 03:21
[MarketPress] - Custom Order Numbers
<?php
/**
* Plugin Name: [MarketPress] - Custom Order Numbers
* Description: [MarketPress] - Custom Order Numbers - 1121058994277124
* Plugin URI: https://premium.wpmudev.org/
* Author: WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / mp-remove-privacy-add-custom-fields.php
Last active May 31, 2019 06:52
[MarketPress] - Remove privacy field and add custom fields
<?php
/**
* Plugin Name: [MarketPress] - Remove privacy field and add custom fields
* Plugin URI: https://premium.wpmudev.org/
* Author: WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
@wpmudev-sls
wpmudev-sls / mp-add-quantity-in-product-list.php
Last active May 22, 2019 03:27
MarketPress - Adds quantity field into [mp_list_products] shortcode
<?php
/**
* Plugin Name: MarketPress - [mp_list_products] quantity
* Plugin URI: https://premium.wpmudev.org/
* Description: Adds quantity field into [mp_list_products] shortcode
* Author: Panos Lyrakis / Konstantinos Xenos @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@yookoala
yookoala / example.php
Last active June 16, 2019 15:25 — forked from hklcf/Screenshot via Google PageSpeed API
Screenshot via Google PageSpeed API
<?php
include_once 'getGooglePageSpeedScreenshot.php';
echo getGooglePageSpeedScreenshot($_GET['url']);
// Output: <img src="..." border="1" style="width: 80px; height: 80px" />
echo getGooglePageSpeedScreenshot($_GET['url'], [
'class' => 'thumbnail',
'style' => ['width: 80px;', 'height: 80px;']
@wpmudev-sls
wpmudev-sls / mp-export-orders.php
Last active January 9, 2019 04:17
[MarketPress] - Export Orders
<?php
/**
* Plugin Name: [MarketPress] - Export Orders
* Plugin URI: https://premium.wpmudev.org/
* Description: Ability to export MarketPress orders to CSV
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / mp-duplicate-products.php
Last active May 22, 2019 03:27
[MarketPress] - Duplicate Products
<?php
/**
* Plugin Name: [MarketPress] - Duplicate Products
* Plugin URI: https://premium.wpmudev.org/
* Description: Ability to duplicate products
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / mp-tos.php
Last active May 22, 2019 03:27
[Marketpress] Adds TOS / Terms of Service / Terms and conditions on checkout page
<?php
/*
Plugin Name: MarketPress Terms of Service
Plugin URI: https://premium.wpmudev.org/
Description: Adds Terms of Service on MarketPress checkout page
Author: Panos Lyrakis @ WPMUDEV
Author URI: https://premium.wpmudev.org/
License: GPLv2 or later
*/
anesthesia, anaesthesia, analgesia & anesthesiologist
-----------------------------------------------------
anesthesiologist questions and answers
questions for anesthesiologist before surgery
questions to ask anesthesiologist
questions to ask anesthesiologist about epidural
questions to ask an anesthesiologist about their job
what is the general anesthesia
amnesia
general anesthesia
@skoskie
skoskie / monit-setup.sh
Last active October 8, 2022 02:01
Monit -- Quick Download and Config
#!/bin/bash
# Must run this as sudo. How to make sure of that??
if [ "$EUID" -ne 0 ]
then
# Turn off history expansion to make it easier to echo exlaimation points
set +H
printf "%s\n" "Error: Monit installation and setup must be run as root. Type 'sudo !!' at the prompt, enter your password, in order to try again."
@1forh
1forh / index.html
Last active July 3, 2024 14:24
Prevent map zoom on scroll
<div id="map-wrapper">
<iframe id="map-canvas"></iframe>
</div>