./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
#!/bin/bash | |
# USAGE | |
# Install opendkim | |
# List all your domains in file /etc/opendkim/TrustedHosts, one per line | |
CHOWN="$(which chown)" | |
MKDIR="$(which mkdir)" | |
REMOVE="$(which rm)" | |
ECHO="$(which echo)" | |
COPY="$(which cp)" |
<?php | |
$backend = Mage::getResourceModel('catalog/product_attribute_backend_media'); | |
$attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product', 'media_gallery'); | |
$container = new Varien_Object(array( | |
'attribute' => new Varien_Object(array('id' => $attributeId)) | |
)); | |
$product = new Varien_Object(array( | |
'id' => 519, |
- Note that SHA2 hash algorithm may be not supported on older systems (Windows XP, Windows 2003, among others).
- Be aware that mandatory https on SNI vhosts eliminate [Internet Explorer on Windows XP, among others] (http://en.wikipedia.org/wiki/Server_Name_Indication#Web_browsers.5B6.5D).
- My version of konklones SSL config does not have SPDY support(my nginx+openssl does not support it)
- You need a default ssl server (example.org-default.conf).
- Some SSL-options have to be unique across your instance, so it's easier to have them in a common file(ssl.conf).
On Twitter the other day, I was lamenting the state of OCSP stapling support on Linux servers, and got asked by several people to write-up what I think the requirements are for OCSP stapling support.
-
Support for keeping a long-lived (disk) cache of OCSP responses.
This should be fairly simple. Any restarting of the service shouldn't blow away previous responses that were obtained. This doesn't need to be disk, just stable - and disk is an easy stable storage for most server
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
-----BEGIN CERTIFICATE----- | |
MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB | |
hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G | |
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV | |
BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQwMjEy | |
MDAwMDAwWhcNMjkwMjExMjM1OTU5WjCBkDELMAkGA1UEBhMCR0IxGzAZBgNVBAgT | |
EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR | |
Q09NT0RPIENBIExpbWl0ZWQxNjA0BgNVBAMTLUNPTU9ETyBSU0EgRG9tYWluIFZh | |
bGlkYXRpb24gU2VjdXJlIFNlcnZlciBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP | |
ADCCAQoCggEBAI7CAhnhoFmk6zg1jSz9AdDTScBkxwtiBUUWOqigwAwCfx3M28Sh |
<?php | |
class Orchid_CouponFix_Model_Observer | |
{ | |
public function cancel($observer) | |
{ | |
$resource = Mage::getModel('core/resource'); | |
$db = $resource->getConnection('core_write'); | |
$event = $observer->getEvent(); | |
$order = $event->getPayment()->getOrder(); | |
if ($order->canCancel()) { |
- I advice you to buy SSL Certs from officially Comodo only , or some SSL reseller whose you trust.
These are the steps I went through to set up an SSL cert. Purchase the cert
Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You’ll be asked for the content of the CSR file when ordering the certificate:
openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
#!/bin/bash | |
#### | |
# Split MySQL dump SQL file into one file per table | |
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump | |
#### | |
if [ $# -lt 1 ] ; then | |
echo "USAGE $0 DUMP_FILE [TABLE]" | |
exit |