I hereby claim:
- I am smichaelsen on github.
- I am smichaelsen (https://keybase.io/smichaelsen) on keybase.
- I have a public key whose fingerprint is 6DAE 2A04 601A 1C8B EC7A B5C5 5F5D 89D0 55B4 51E0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| defaults: &defaults | |
| allowed_gitlab_urls: | |
| # Replace with your gitlab server url | |
| - 'https://gitlab.app-zap.de/' | |
| ## Gitlab CI settings | |
| gitlab_ci: | |
| ## Web server settings | |
| host: gitlab-ci.app-zap.de | |
| port: 443 |
| #!/bin/sh | |
| KUNDENNR=XXXXXX | |
| PASSWORD=XXXXXX | |
| IP=$(wget -qO- ifconfig.me/ip) | |
| UPDATEIP=false | |
| if [ -f /var/run/current.ip ] |
| --- | |
| recipe: Quarkstrudel ohne Ei | |
| date: 2014-10-28 | |
| author: Sebastian Michaelsen <sebastian@michaelsen.io> | |
| defaults: | |
| ingredients: | |
| amount: 1 | |
| unit: g | |
| ingredient_groups: | |
| - name: Teig |
An extbase problem and my solution
A client contacted me and told me that his extbase extension ceases to work when upgrading from TYPO3 4.5 to 6.2. AJAX requests that aimed to modify a certain model ended in exceptions.
The request looked similar to this:
| <?php | |
| $dbhost = '127.0.0.1'; | |
| $dbname = 'dname'; | |
| $dbuser = 'dbuser'; | |
| $dbpass = '123'; | |
| $dsn = sprintf('mysql:host=%s;dbname=%s', $dbhost, $dbname); | |
| $connection = new \PDO($dsn, $dbuser, $dbpass); |
I regularly fail to remember the correct syntax to do this. So here it is:
<f:form.select
property="gender"
id="user_gender"
options="{1: '{f:translate(key: \'orderform.customer_data.gender.w\')}', 2: '{f:translate(key: \'orderform.customer_data.gender.m\')}'}
"/>
cd to the web rootcomposer install./vendor/phpunit/phpunit/phpunit -c typo3/sysext/core/Build/UnitTests.xml| ✗ git checkout -b feature/admin-interface/materialize feature/admin-interface | |
| error: unable to resolve reference refs/heads/feature/admin-interface/materialize: Not a directory | |
| fatal: Failed to lock ref for update: Not a directory |
| <?php | |
| namespace Smichaelsen\MyExtension\ViewHelpers\Format; | |
| use TYPO3\CMS\Core\Utility\ArrayUtility; | |
| use TYPO3\CMS\Core\Utility\GeneralUtility; | |
| use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * Usage example | |
| * |