Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
addEventListener("TabClose", function(e) { | |
function isNewTabURL(url) { | |
// See chrome://browser/content/utilityOverlay.js | |
return url == (window.BROWSER_NEW_TAB_URL || "about:newtab"); | |
} | |
var tab = e.target; | |
var browser = tab.linkedBrowser; | |
if(!isNewTabURL(browser.currentURI.spec)) | |
return; | |
var sh = browser.sessionHistory; |
var TU_hookCode = TU_hookMethod; | |
function TU_hookMethod(aStr) { | |
try { | |
var namespaces = aStr.split("."); | |
try { | |
var object = this; | |
while (namespaces.length > 1) { | |
object = object[namespaces.shift()]; | |
} |
// https://gist.github.com/Infocatcher/5387328 | |
// More: https://github.com/Infocatcher/Download_Panel_Tweaker | |
// (c) Infocatcher 2013, 2015 | |
var itemCountLimit = 5; | |
// resource://app/modules/DownloadsCommon.jsm, see getSummary() function | |
if(DownloadsCommon._privateSummary) | |
DownloadsCommon._privateSummary._numToExclude = itemCountLimit; | |
if(DownloadsCommon._summary) | |
DownloadsCommon._summary._numToExclude = itemCountLimit; |
#SingleInstance,force | |
Menu,Tray,Add | |
Menu,Tray,Add,Grab,grab | |
return | |
grab: | |
Hotkey,LButton,select,On | |
Hotkey,RButton,Select,On | |
Hotkey,^F1,getinfo,On | |
return | |
getinfo: |
<?php // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_filter( 'woocommerce_get_order_item_totals', 'custom_woocommerce_get_order_item_totals' ); | |
function custom_woocommerce_get_order_item_totals( $totals ) { | |
unset( $totals['payment_method'] ); | |
return $totals; |
<?php // Do not include this if already open! | |
/** | |
* Remove existing tabs from single product pages. | |
*/ | |
function remove_woocommerce_product_tabs( $tabs ) { | |
unset( $tabs['description'] ); | |
unset( $tabs['reviews'] ); | |
unset( $tabs['additional_information'] ); | |
return $tabs; |
add_filter( 'woocommerce_get_order_item_totals', 'adjust_woocommerce_get_order_item_totals' ); | |
function adjust_woocommerce_get_order_item_totals( $totals ) { | |
unset($totals['cart_subtotal'] ); | |
return $totals; | |
} |
<?php | |
/** | |
* WooCommerce Extra Feature | |
* -------------------------- | |
* | |
* Register a shortcode that creates a product categories dropdown list | |
* | |
* Use: [product_categories_dropdown orderby="title" count="0" hierarchical="0"] | |
*/ |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.