Skip to content

Instantly share code, notes, and snippets.

View xperseguers's full-sized avatar

Xavier Perseguers xperseguers

View GitHub Profile
@xperseguers
xperseguers / README.md
Last active September 15, 2026 06:31
LLM local AI for coding on DGX Spark

This Gist explains how to run Qwen3.6-35B-A3B on an NVIDIA DGX Spark with a 256 KB context window, which is necessary (in my case) to do anything useful. The memory needed is around 53 GB, leaving plenty of room for loading further tools.

Extension Cline (saoudrizwan.claude-dev) works fine with PhpStorm and Rider (and Visual Studio Code for macOS) using following configuration:

  • API provider: OpenAI Compatible
  • Base URL: http://{{DGX-SPARK-IP}}:8001/v1
  • OpenAI Compatible API Key: placeholder
  • Model ID: Qwen/Qwen3.6-35B-A3B
  • Model Configuration
    • Context Window Size: 262144
@xperseguers
xperseguers / README.md
Last active November 19, 2024 10:55
Migrate from Pootle to Crowdin

Migrate your project from Pootle to Crowdin

Step 1: Choose extensions to migrate

I have a few extensions of mine on Pootle and I decided to migrate those:

  • cloudflare
  • direct_mail_userfunc
  • file_list
  • ig_ldap_sso_auth
@xperseguers
xperseguers / README.md
Last active March 23, 2024 18:21
Create composer patch from a pending TYPO3 patch on Gerrit

Following structure is expected for your TYPO3 project (adapt script if it differs):

.
├── composer.json
├── composer.lock
├── patches
│   ├── ...
│   └── ...
└── scripts
@xperseguers
xperseguers / flexform_myplugin.xml
Last active June 11, 2020 07:38
FlexForm for a Plugin with a repeatable section
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general</sheetTitle>
</TCEforms>
@xperseguers
xperseguers / SingleRecordLocalizationMenu.php
Last active November 12, 2019 16:37
TypoScript-based language menu only showing available single news localizations
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* 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.
*
@xperseguers
xperseguers / InlineRecordContainer.php
Created May 6, 2017 16:10
XCLASS to change style of IRRE blocks in FormEngine
<?php
// This is file EXT:your_ext/Classes/Xclass/Backend/Form/Container/InlineRecordContainer.php
/*
* This file is part of the TYPO3 CMS project.
*
* 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.
*
@xperseguers
xperseguers / MyCustomActionBackend.yaml
Last active May 19, 2020 15:41
Custom finisher for EXT:form in TYPO3 v8
# File EXT:your_ext/Configuration/Yaml/MyCustomActionBackend.yaml
TYPO3:
CMS:
Form:
prototypes:
# add our finisher to the 'standard' form prototype
standard:
formElementsDefinition:
Form:
formEditor:
@xperseguers
xperseguers / ContextMenuActions.js
Last active October 31, 2019 17:44
Disable "delete" in TYPO3 context menu for pages under custom condition
/*
* This file is part of the TYPO3 CMS project.
*
* 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.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
@xperseguers
xperseguers / migration_helper.diff
Created February 22, 2017 10:54
TYPO3 TCA Migration helper
This patch was tested against TYPO3 v7.
Purpose is to *temporarily and quickly* let you export the migrated TCA to a file within typo3temp/migrated_TCA/<table_name>.migrated.php
so that you may then use any diff tool to compare the migrated TCA of a given table with your own definition.
To run it, just open backend module "Configuration -> TCA". This will automatically dump the whole (migrated) TCA to the disk.
This is not perfect but should help you a lot anyway to go through the various deprecation messages in typo3conf/deprecation_*.log.
Have fun!
@xperseguers
xperseguers / SocialNetworksCell.cs
Last active November 24, 2016 12:41
SocialNetworksCell to be used with Xamarin.Forms within a TableView
#region Using directives
using Xamarin.Forms;
using MyProjectUI.ValueConverters;
using MyProject;
#endregion Using directives
namespace MyProjectUI.Controls
{