Skip to content

Instantly share code, notes, and snippets.

View davinian's full-sized avatar

David Churchill davinian

View GitHub Profile
@joshp23
joshp23 / YWP_widget.php
Last active March 1, 2024 10:06
WordPress widget to fetch and display YOURLS shorturl
<?php
/*
Name: YOURLS WordPress Widget
Description: A WordPress widget to display a YOURLS shorturl and QR code
Code URI: https://gist.github.com/joshp23/3f990e6ec36e24ba53985968bbfa89f1
Author: Josh Panter
Author URI: https://unfettered.net
======================================================================
This widget will create &/or fetch the existing short URL for a WordPress post from YOURLS,
provide a button to copy the short url, and optionally display a qrcode.
@haasn
haasn / about:config.md
Last active April 2, 2024 18:46
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

@danielpataki
danielpataki / alt-cron.php
Last active November 14, 2019 02:22
WordPress Config File
define( 'ALTERNATE_WP_CRON', true );
@spivurno
spivurno / gw-coupons-exclude-products.php
Last active October 6, 2021 16:23
Gravity Wiz // Gravity Forms Coupons // Exclude Products from Coupon Discount
<?php
/**
* Gravity Wiz // Gravity Forms Coupons // Exclude Products from Coupon Discount
*
* Exclude specific products when calculating discounts with the Gravity Forms Coupons add-on.
*
* Requires Gravity Forms Coupons v1.1
*
* @version 1.2
* @author David Smith <david@gravitywiz.com>
@spivurno
spivurno / gw-gravity-forms-edit-products.php
Last active July 13, 2021 00:15
Gravity Wiz // Gravity Forms // Edit Products on Entry Detail
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-edit-product-and-payment-details.php
*/
/**
* Gravity Wiz // Gravity Forms // Edit Products & Payment Details
*
* Edit products (and payment details) via the Gravity Forms Edit Entry view.
@cheeaun
cheeaun / firefoxos-phone-observations.md
Last active December 16, 2015 23:59
My observations on using Firefox OS phone, Peak, since 2 May 2013

My observations on using Firefox OS phone, Peak, since 2 May 2013

  • Auto-brightness is constantly changing when switching apps or views of an app, eventhough the surrounding ambient light doesn't change much. I've disabled it.
  • Press both 'Home' button and 'Sleep/wake' button, takes screenshot, like iPhone.
  • Gallery, Camera, Music app, etc don't work without a microSD memory card in the phone.
  • If 'USB mass storage' option is enabled in Settings app -> 'Media storage', Gallery and Camera app doesn't work while plugged in (charging) to the computer, stating that the memory card is in use.
  • 3 ways to install web apps; via Marketplace, Firefox browser or the Search screen. Sometimes generate different icons on the Home screen from each method.
  • Firefox browser seems to have a viewport issue, where web pages seems to be 2x zoomed out. Once the web page is added to Home screen, relaunch from there, the web page is no longer 2x zoomed out. [1] Marketplace app somehow still have issue.
  • Scrolling on t
@mikejolley
mikejolley / functions.php
Created August 23, 2012 12:35 — forked from ChromeOrange/functions.php
Move Tabs Around in WooCommerce
<?php
add_action( 'wp' , 'wc_order_tabs' );
function wc_order_tabs() {
// Remove tabs
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 );
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@mikejolley
mikejolley / template-print-processing-orders.php
Created November 4, 2011 12:45
WooCommerce - Print Processing orders. A template page snippet to (if you are logged in as admin) output all of your orders with 'processing' status (paid) ready for printing.
<?php
/*
Template Name: Print Processing Orders :)
*/
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />