Skip to content

Instantly share code, notes, and snippets.

View enricodeleo's full-sized avatar

Enrico Deleo enricodeleo

View GitHub Profile
@enricodeleo
enricodeleo / atomasxml.php
Created May 7, 2013 09:57
read an atom feed as XML in php 5+
<?php
// Lettore Feed Atom come xml
// Requisito minimo php5
// Funzione che limita il numero di caratteri di una stringa
function strlimit($string, $limit) {
if (strlen($string) > $limit) {
$string = substr($string, 0, strrpos(substr($string, 0, $limit), ' ')) . '...';
}
@enricodeleo
enricodeleo / fb-comments-responsive.css
Last active December 15, 2015 21:29
Make Facebook Comments Responsive
/**********************************
* RESPONSIVE FB COMMENTS *
***********************************/
.fb-comments, .fb-comments iframe[style] {width: 100% !important;}
.fb-comments span, .fb-comments iframe span[style] {width: 100% !important;}

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex