Skip to content

Instantly share code, notes, and snippets.

@Dx3webs
Dx3webs / gist:5982844
Created July 12, 2013 08:37
Add CMS block to magento
{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="6"}}
@Dx3webs
Dx3webs / mage-strings
Last active November 9, 2016 19:30
magento connect strings
mailchimp / mandrill
./mage install http://connect20.magentocommerce.com/community/ Ebizmarts_MageMonkey
fooman speedster
http://connect20.magentocommerce.com/community/Fooman_Speedster
lesti fpc
@Dx3webs
Dx3webs / gist:756d9614553b504c2951
Last active December 1, 2015 21:18
geo trust EV bundle
-----BEGIN CERTIFICATE-----
MIIEbjCCA1agAwIBAgIQboqQ68/wRIpyDQgF0IKlRDANBgkqhkiG9w0BAQsFADBY
MQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMo
R2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0xMzEw
MzEwMDAwMDBaFw0yMzEwMzAyMzU5NTlaMEcxCzAJBgNVBAYTAlVTMRYwFAYDVQQK
Ew1HZW9UcnVzdCBJbmMuMSAwHgYDVQQDExdHZW9UcnVzdCBFViBTU0wgQ0EgLSBH
NDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANm0BfI4Zw8J53z1Yyrl
uV6oEa51cdlMhGetiV38KD0qsKXV1OYwCoTU5BjLhTfFRnHrHHtp22VpjDAFPgfh
bzzBC2HmOET8vIwvTnVX9ZaZfD6HHw+QS3DDPzlFOzpry7t7QFTRi0uhctIE6eBy
GpMRei/xq52cmFiuLOp3Xy8uh6+4a+Pi4j/WPeCWRN8RVWNSL/QmeMQPIE0KwGhw
@Dx3webs
Dx3webs / hijack.php
Created November 19, 2015 15:06
scan all databases for hijack hack
#!/usr/bin/env php
<?php
$email_addr = '[email protected]';
$log_fpath = '/var/log/hijack.log';
$user = 'admin';
$pass = file_get_contents('/etc/psa/.psa.shadow');
if ($pass === false)
die("error fetching mysql password\n");
$pass = trim($pass);
$hostname = gethostname();