Skip to content

Instantly share code, notes, and snippets.

View leiluspocus's full-sized avatar
🦥
Slowing things down

* Laila Atrmouh leiluspocus

🦥
Slowing things down
View GitHub Profile
@leiluspocus
leiluspocus / symfo_live_day1.md
Created March 28, 2019 19:54
Symfony_Live-Day1

Keynote

Symfony Mime > Swift_Mailer

  • Moins d’objets à serializer
  • Headers pas determines a l’avance
  • intégration native avec twig, embarque l’objet email : méthode template / textTemplate / htmlTemplate à utiliser.
  • Inky pour simplifier templating
  • séparation envoi et création
  • Symfony mailer juste pour mails transactionnels

http : body déjà construit, api: il le construit par le provider

@leiluspocus
leiluspocus / autoSkipNetflix.js
Created August 26, 2018 18:52
Skip Netflix credits
$('.skip-credits').bind('afterShow', function() {
$('.skip-credits a').click();
});
<?php
/**
* Crontab observer.
*
* @author Fabrizio Branca <fabrizio.branca@aoemedia.de>
*/
class Aoe_Scheduler_Model_Observer extends Mage_Cron_Model_Observer {
const XML_PATH_MAX_RUNNING_TIME = 'system/cron/max_running_time';