Skip to content

Instantly share code, notes, and snippets.

View tboock's full-sized avatar
🚀

Thorsten Boock tboock

🚀
View GitHub Profile
@tboock
tboock / s3-bucket-enable-caching.sh
Created January 6, 2020 13:27
Enable client-side caching for files *after* deployment. Useful if you are hit by https://github.com/aws/aws-cdk/issues/4665.
#!/usr/bin/env bash
function enable_caching {
ttl="$1"
shift
for dir in "${@}"
do
aws s3 cp \
--metadata-directive REPLACE \
--cache-control "max-age=$ttl" \
@tboock
tboock / DatefieldViewHelper.php
Created March 4, 2015 11:16
TYPO3 Flow DatefieldViewHelper
<?php
namespace Vendor\MyPackage\ViewHelpers\Form;
use TYPO3\Fluid\Core\ViewHelper\Exception;
use TYPO3\Fluid\ViewHelpers\Form\TextfieldViewHelper;
class DatefieldViewHelper extends TextfieldViewHelper {
/**
* @return void
@tboock
tboock / MailService.php
Last active August 29, 2015 14:15 — forked from bwaidelich/EmailService.php
TYPO3 Flow EmailService
<?php
namespace Vendor\MyPackage\Mail;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Configuration\ConfigurationManager;
use TYPO3\Flow\Log\SystemLoggerInterface;
use TYPO3\Flow\Mvc\Routing\Router;
use TYPO3\Flow\Mvc\Routing\RouterInterface;
use TYPO3\Flow\Reflection\ObjectAccess;
use TYPO3\Fluid\View\StandaloneView;