Skip to content

Instantly share code, notes, and snippets.

@avoelkl
avoelkl / OpenSTV
Created September 1, 2015 20:27
MagentoSE Election 2015
Created with the ballots file from:
http://magento.stackexchange.com/election/1
OpenSTV version 1.7 (http://www.OpenSTV.org/)
Suggested donation for using OpenSTV for an election is $50. Please go to
http://www.OpenSTV.org/donate to donate via PayPal, Google Checkout, or
Amazon Payments.
@avoelkl
avoelkl / gist:3ed0fdc5d7fd171ea591
Last active August 29, 2015 14:20
All the times & dates & places for #mhlej15 & #mm15de
### Keybase proof
I hereby claim:
* I am avoelkl on github.
* I am annavoelkl (https://keybase.io/annavoelkl) on keybase.
* I have a public key whose fingerprint is 03EB 35B6 57FF 341C DFA0 426C FF90 0BFB 049B 48C7
To claim this, I am signing this object:
<?php
/**
* Generate modman file from Magento Connect 2.0 package.xml
*
* Usage:
*
* php package2modman.php path/to/package.xml > path/to/modman
*
*/
require_once(getcwd()."/app/Mage.php");
@avoelkl
avoelkl / magestackday.md
Last active June 18, 2016 15:54
MageStackDay little helpers

MageStackDay notes & queries

Some notes from the MageStackDay chat:

  • save your votes. Marius can close unlimited nrs of questions so he'll do that, just vote / flag once is enough!
  • If you can clean up the spelling and grammar on the question, feel free to do so, as it would be easier for non-english speakers
  • use your votes

Queries

Questions to work on

@avoelkl
avoelkl / gist:49563c516d6cb318eb34
Last active November 17, 2020 07:41
Non-blocking and quick database dumps for large databases

How-to

Add --single-transaction and --quick to your mysqldump command.

--single-transaction

sets the isolation mode to REPEATABLE READ and starts a transaction before dumping data. useful for InnoDB tables, dumps the consistent state without blocking any applications.

--quick

@avoelkl
avoelkl / gist:39d299238e22512931b4
Created August 6, 2014 11:48
Magento 1.9 Promos
<ul class="promos">
<li><a href="#"> <img src="{{media url="wysiwyg/homepage-three-column-promo-01.png"}}" alt="" /> </a></li>
<li><a href="#"> <img src="{{media url="wysiwyg/homepage-three-column-promo-02.png"}}" alt="" /> </a></li>
<li><a href="#"> <img src="{{media url="wysiwyg/homepage-three-column-promo-03.png"}}" alt="" /> </a></li>
</ul>
@avoelkl
avoelkl / gist:04274589141a80cf1fcf
Last active August 29, 2015 14:04
Magento 1.9. Slideshow. Insert via CMS > Pages on homepage.
<div class="slideshow-container">
<ul class="slideshow">
<li><a href="linkhere"><img src="{{media url="wysiwyg/slide-1.jpg"}}" alt="" /></a></li>
<li><a href="linkhere"><img src="{{media url="wysiwyg/slide-2.jpg"}}" alt="" /></a></li>
<li><a href="linkhere"><img src="{{media url="wysiwyg/slide-3.jpg"}}" alt="" /></a></li>
</ul>
<div class="slideshow-pager">&nbsp;</div>
<span class="slideshow-prev">&nbsp;</span>
<span class="slideshow-next">&nbsp;</span>
</div>