+------+-------+
| type | value |
+------+-------+
| a | 2 |
+------+-------+
| a | 5 |
+------+-------+
| c | 1 |
+------+-------+
| b | 8 |
{# | |
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ | |
Updated by: Simon Schick <[email protected]> | |
Parameters: | |
* currentFilters (array) : associative array that contains the current route-arguments | |
* currentPage (int) : the current page you are in | |
* paginationPath (string) : the route name to use for links | |
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled) | |
* lastPage (int) : represents the total number of existing pages |
#!/bin/sh | |
#aktualisiert DNS-Einträge bei HostEurope | |
#HostEurope-Zugangsdaten | |
KUNDENNR=xxx | |
PASSWORD=xxx | |
#Host-ID des eigentlichen Eintrages | |
HOSTID=xxx | |
#externe IP bestimmen und dann vergleichen |
#!/bin/sh | |
# Get stream URLs for the second episode of the seventh season of futurama: | |
# kinox.sh futurama 7 2 | |
# for shows with spaces, insert a plus sign instead: | |
# kinox.sh it+crowd 3 1 | |
# grab the stream by searching for the show on kinox.to, filtering to only show english versions, and extracting the internal show name | |
export stream_page=$(curl -sL "http://kinox.to/Search.html?q=$1" | pcregrep -M 'lng\/2\.png(\n|.)+?class="Title"' | pcregrep -o1 'Stream\/(.+?)\.html' | head -n 1) | |
# get the show's page, with the undocumented additional parameters for season and episode, and grab the "rel" attribute of the hoster list |
<f:layout name="Default" /> | |
<f:section name="Main"> | |
<button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | |
<div class="row"> | |
<div class="col-md-9"> | |
<div class="row"> | |
<f:for each="{suggest}" as="sug"> | |
<div class="col-sm-6 col-md-4"> | |
<div class="thumbnail"> |
+------+-------+
| type | value |
+------+-------+
| a | 2 |
+------+-------+
| a | 5 |
+------+-------+
| c | 1 |
+------+-------+
| b | 8 |
composer create-project typo3/cms-base-distribution='^7.6.0' my-test-typo3 --no-interaction | |
cd my-test-typo3/ | |
composer require helhum/typo3-console | |
# This will only work with PHP < 7 as realurl need PHP 5.x | |
composer require typo3-ter/introduction | |
cp web/typo3conf/ext/typo3_console/Scripts/typo3cms . | |
cp web/typo3conf/ext/bootstrap_package/Configuration/Apache/.htaccess web/ | |
chmod +x typo3cms | |
./typo3cms install:setup --non-interactive --database-user-name="root" --database-user-password="root" --database-host-name="localhost" --database-port="3306" --database-name="t3_my_test" --admin-user-name="admin" --admin-password="password" --site-name="Auto Install" | |
./typo3cms database:updateschema '*.*' |
We're a small team of only two people, but we're tackling more and more rather big TYPO3 projects. Over time we introduced package management for PHP (composer) and JS (bower) and depended on frontend building with Grunt. With rising complexity and importance of our projects we felt the demand for an efficient and safe way to deploy our websites on different servers.
We helped our selves with small self written deploy scripts that performed building on the target server, but you can't run node (for Grunt) or sass in every environment, and if building goes wrong the website was likely to be broken on the live server - so we needed a Build Server.
But solutions we looked at turned out to be quite time consuming (setting up and managing self hosted Gitlab and Gitlab-CI or a Jenkins server and runners) or costly.
This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
This mini-article describes the methods of dependency injection, what each method implies in terms of both performance and simplicity.
This method is half manual and quite well known. Declare your classes' dependencies as constructor and pass the dependencies when you construct your instances. This approach completely skips the automation around detection of injections - but performs the best of all methods.