Skip to content

Instantly share code, notes, and snippets.

View halbkreativ's full-sized avatar
🎾

Christoph halbkreativ

🎾
View GitHub Profile
@spoonerWeb
spoonerWeb / AddCategoriesToFile.php
Created August 7, 2020 10:18
Add category records to TYPO3 file record (e.g. for using it when fetching files via DataProcessing)
<?php
namespace Vendor\Package\EventListener;
/*
* This file is part of a TYPO3 extension.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@onza
onza / cookieconsent-config.js
Last active April 7, 2025 18:23
"Osano Cookie Consent" for opt-in registration of cookies (Google Analytics, YouTube, Pardot)
// *********************************
// Because of some drawbacks wrote everything from scratch w/out Osano: github.com/onza/CookieConsent
// *********************************
// head -------
// osano cookie banner css
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
// body -------
@helhum
helhum / PersistentObjectConverter.php
Last active September 19, 2025 11:11
Extbase TypeConverter to fetch hidden records from persistence (Using this will *always* fetch hidden models of the specified type)
<?php
namespace MyVendor\MyExtension\Property\TypeConverters
use TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter
class MyPersistentObjectConverter extends PersistentObjectConverter {
/**
* @var string
*/
on alfred_script(q)
-- Idea from https://coderwall.com/p/fyfp0w
-- automatic connect/disconnect (added 2014-08-25)
-- disable wifi on connect (added 2014-09-01)
-- Some required settings to get this connect script working
-- Set target bluetooth device
-- Set label of item to "click"
set DeviceToConnect to "jousch.com"
set ConnectLabel to "Mit Netzwerk verbinden"