Skip to content

Instantly share code, notes, and snippets.

@ivoba
ivoba / composer.json
Created April 11, 2022 10:59
SilverStripe 4.10 & PHP8.1 fix deprecation warnings
"require": {
...
"cweagans/composer-patches": "^1.7"
...
"extra": {
"patches": {
"silverstripe/framework": {
"Fix SilverStripe deprecations error_reporting for PHP 8.1": "./fix-deprecation-error_reporting.4.10.4.patch"
}
}
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Ivo Bathke",
"label": "Software Developer",
"picture": "https://gist.githubusercontent.com/ivoba/e60c4a537dfa773d37f12cfc02a33798/raw/6c5f4160e1ba2956bcf28eb90bf8eeac30374ba3/resume_ivoba.JPG",
"summary": "I am a senior Software Developer with 20+ years experience in APIs and web applications for ecommerce, travel industry and other sectors. I prefer the backend yet im not afraid of frontends. I even can do DevOps, i would not call me a Admin though. I like open source, remote work, putting tickets to \"Ready for Review\", meetings in videochats across timezones, tagging releases, refactoring, writing tests, checking the commit log and posting smilies to the chat.",
"website": "https://ivo-bathke.name",
@ivoba
ivoba / PostgisPostgreSqlPlatform.php
Created October 31, 2022 09:11
Postgis Postgres Platform for Doctrine
<?php
namespace App\DBAL;
use Doctrine\DBAL\Platforms\PostgreSQLPlatform as PostgreSqlPlatformBase;
class PostgisPostgreSqlPlatform extends PostgreSqlPlatformBase
{
public function getListNamespacesSQL()
{
@ivoba
ivoba / DateTimeNoSecondsTransformer.php
Created November 3, 2022 11:07
DataTransformer to remove seconds for HTML5 datepicker with symfony forms
<?php
namespace App\Form;
use Symfony\Component\Form\DataTransformerInterface;
class DateTimeNoSecondsTransformer implements DataTransformerInterface
{
public function transform(mixed $value)
{
@ivoba
ivoba / ThemeSwitcher.astro
Created January 7, 2024 12:27
Astro PicoCss V2 DarkMode Switcher
---
---
<button id="theme-switcher"></button>
<style is:global>
#theme-switcher {
background: none;
border: 0;
}