Skip to content

Instantly share code, notes, and snippets.

@kroell
kroell / tailwind-v1.config.js
Created January 30, 2023 18:28 — forked from thinkverse/tailwind-v1.config.js
Useful TailwindCSS config that saves paddings and margins upon build
// https://v1.tailwindcss.com/docs/controlling-file-size#purge-css-options
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: {
content: ['./public/**/*.html'],
options: {
whitelistPatterns: [
@kroell
kroell / generate-ssh-key.sh
Created January 14, 2021 10:55 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@kroell
kroell / Caches.yaml
Created June 22, 2018 09:28 — forked from aertmann/Caches.yaml
Use Redis or Memcached cache backends for optimizing certain caches that has tags which become slow with lots of content in Neos – Included in https://speakerdeck.com/aertmann/tasty-recipes-for-every-day-neos
# Redis (has to be configured to different databases on shared hosting)
TYPO3_TypoScript_Content:
backend: TYPO3\Flow\Cache\Backend\RedisBackend
backendOptions:
defaultLifetime: 0
Flow_Mvc_Routing_Resolve:
backend: TYPO3\Flow\Cache\Backend\RedisBackend
backendOptions:
defaultLifetime: 0
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {