Skip to content

Instantly share code, notes, and snippets.

@fjacobi
fjacobi / Caddyfile
Created July 22, 2024 10:49
Minimal shortlink service
:80 {
map {path} {redirect-uri} {
/example https://www.google.de
# more
# ...
}
# this below code is required to actually make the above `map` work
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
data-namespace-typo3-fluid="true">
<nav class="main_menu drop_down right">
<ul id="menu-mainmenu">
<v:menu pageUid="1" as="pages" classActive="is-active" classCurrent="is-active">
<f:for each="{pages}" as="page">
<li class="menu-item menu-item-has-children has_sub narrow">
@fjacobi
fjacobi / SearchExtension.php
Last active October 7, 2016 14:16
ke_search with Mask
<?php
namespace Vendor/Ext/Hooks;
class SearchExtension
{
public function modifyPageContentFields(&$fields, $pObj)
{
$fields .= ', subheader, tx_mask_mask_rte';
}
@fjacobi
fjacobi / 0_reuse_code.js
Created January 21, 2014 09:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console