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:
<?php | |
namespace Smichaelsen\Gist\Mail; | |
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext; | |
/** | |
* This class represents an email which can be rendered with fluid. | |
* You can use all the possibilities of TYPO3's MailMessage but instead of |
# GITLAB CI | |
# Maintainer: @randx | |
# App Version: 2.0 | |
upstream gitlab_ci { | |
server unix:/home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket; | |
} | |
server { | |
listen gitlab-ci.app-zap.de:443 ssl; |
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 <[email protected]> | |
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); |
<?php | |
function isRegularExpression($string) { | |
set_error_handler(function() {}, E_WARNING); | |
$isRegularExpression = preg_match($string, "") !== FALSE; | |
restore_error_handler(); | |
return isRegularExpression; | |
} |
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\')}'}
"/>