sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| <?php | |
| /* | |
| A simple PHP class to perform basic operations against Amazon S3 and compatible | |
| services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules. | |
| Copyright 2022 Marco Arment. Released under the MIT license: | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
| {# Check if we got a session without creating one #} | |
| {% if app.request.hasPreviousSession %} | |
| {# Check if we got some flash messages #} | |
| {% if app.session.flashbag.peekAll()|length > 0 %} | |
| <div id="flash"> | |
| {# Loop all types of flash messages #} | |
| {% for type, flashMessages in app.session.flashbag.all() %} | |
| {# For all flash messages with this type #} | |
| {% for idx, flashMessage in flashMessages %} | |
| <div class="flash-item flash-type-{{ type }}"> |
| <?xml version="1.0"?> | |
| <config> | |
| <global> | |
| <skip_process_modules_updates>1</skip_process_modules_updates> | |
| </global> | |
| </config> |
| From 473846959772d8160b34b92ae3bcecddf24b972f Mon Sep 17 00:00:00 2001 | |
| From: =?UTF-8?q?Julian=20Nu=C3=9F?= <julian.nuss@outlook.com> | |
| Date: Tue, 23 Sep 2014 21:07:29 +0200 | |
| Subject: [PATCH 1/1] [BUGIFX] Zend Framework 1 + PHP5.6 | |
| --- | |
| lib/Zend/Locale/Format.php | 22 +++++++++++----------- | |
| lib/Zend/Service/Audioscrobbler.php | 6 +++--- | |
| lib/Zend/Service/Technorati.php | 6 +++--- | |
| lib/Zend/Validate/Hostname.php | 4 ++-- |
| /** | |
| * Created by Andreas Penz. | |
| * Date: 24.06.14 | |
| * Time: 17:18 | |
| */ | |
| protected function mockNotifications() | |
| { | |
| $mock = $this->getBlockMock('index/adminhtml_notifications', array('getProcessesForReindex')); | |
| $mock->expects($this->any()) |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| <?php | |
| class EcomDev_Optimization_Model_Rule_Observer extends Mage_CatalogRule_Model_Observer | |
| { | |
| protected $_preloadedPrices = array(); | |
| public function beforeCollectTotals(Varien_Event_Observer $observer) | |
| { | |
| $quote = $observer->getQuote(); | |
| $date = Mage::app()->getLocale()->storeTimeStamp($quote->getStoreId()); |
| <?php | |
| /** | |
| * Optimized version of attribute source options model | |
| * | |
| * That allows to preload options once and reuse them instead of doing calls to db all the time | |
| * | |
| */ | |
| class EcomDev_Optimization_Model_Resource_Attribute_Source_Table | |
| extends Mage_Eav_Model_Entity_Attribute_Source_Table |
| delimiter ;; | |
| drop procedure if exists build_catalog;; | |
| create procedure build_catalog(IN categories INT, IN products INT) | |
| begin | |
| SET @category_count = 1; | |
| SET @CATNAMEPREFIX = "Category "; | |
| SET @CATURLKEYPREFIX = "cat-"; | |
| SET @CATURLPATHPREFIX = "catpath-"; | |
| SET @ROOTCATEGORY = 2; | |
| SET @INCLUDEINMENU = 1; |