Skip to content

Instantly share code, notes, and snippets.

@cdoublev
cdoublev / logfiles-letsencrypt.conf
Created August 5, 2020 08:33
Logwatch files to watch Let's Encrypt log files
# /etc/logwatch/conf/logfiles/letsencrypt.conf
LogFile = letsencrypt/letsencrypt.log
Archive = letsencrypt/letsencrypt.log.*.gz
# `ApplyEuroDate` uses a space at the end of the following header...
*ApplyStdDate = "%Y-%m-%d %H:%M:%S(,...)?"
/**
* Internet Systems Consortium license
* ===================================
*
* Copyright (c) `2017`, `Colin Meinke`
*
* Permission to use, copy, modify, and/or distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright notice
* and this permission notice appear in all copies.
*
@cdoublev
cdoublev / product-lifecycle-hooks.txt
Created January 22, 2018 22:58
PS product lifecycle hooks.
--------------------------------------------------------------------------------
Duplicate product ($this->action = 'duplicate')
--------------------------------------------------------------------------------
AdminController::postProcess > actionAdminProductsControllerDuplicateBefore
AdminProductsController::processDuplicate
Product::add
ObjectModel::add > actionObjectProductAddBefore
--- ! saved ! ---
ObjectModel::add > actionObjectProductAddAfter
Product::add > actionProductSave