Skip to content

Instantly share code, notes, and snippets.

View nelero's full-sized avatar

Aurélien Pohu nelero

View GitHub Profile
@nelero
nelero / magento-code-snippets.md
Created April 8, 2024 09:21 — forked from arosenhagen/magento-code-snippets.md
[magento] - code snippets

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
@nelero
nelero / HTML_UnEncode.sql
Created February 23, 2024 12:00 — forked from arnisjuraga/HTML_UnEncode.sql
Convert HTML entities to HTML code in MySQL
/*
Function converts encoded HTML entities back to HTML tags in pure MySQL
-- Original method: https://stackoverflow.com/a/41460016/1720476
-- @Balmiopour comment added https://stackoverflow.com/questions/3678980/is-there-a-mysql-function-to-decode-html-entities#comment71742861_41460016
Version history:
@nelero
nelero / copy_content.mkd
Created August 20, 2019 13:13 — forked from appleboy/copy_content.mkd
Copy all branch from another repository?

Repository url

origin: https://github.com/appleboy/git-test
remote: https://github.com/appleboy/html5-template-engine

Copy all branch from another repository

@nelero
nelero / onepage.phtml
Created December 1, 2016 14:21 — forked from ashsmith/onepage.phtml
Track each step of the Magento onepage checkout in Google Analytics with this simple Javascript addition to [package]/[theme]/template/checkout/onepage.phtml just add it to the bottom of that file and follow up by configuring with Google Analytics goals
<script type="text/javascript">
Checkout.prototype.gotoSection = Checkout.prototype.gotoSection.wrap(function(parentMethod, section, reloadProgressBlock) {
// Call parent method.
parentMethod(section, reloadProgressBlock);
var _gaq = _gaq || [];
try {
// push current checkout section to google analytics if available.
@nelero
nelero / README.md
Last active December 16, 2015 01:49 — forked from alper/import-tweets.txt

Architecture

Archive from tweeter contains a folder named "data/js/tweets". In this folder, tweets are combined by year and month in js file (eg. 2010-01.js for tweets published in january 2010).

Usage

Put all this files in a tweets folder in the root of thinkup. Put importoldtwitter.php file in the root of thinkup. Run the script importoldtwitter.php in command line.

The script will loop on each file in tweets folder, read and import it, then remove it.