Skip to content

Instantly share code, notes, and snippets.

@vvasiloi
vvasiloi / aliases.csv
Created February 11, 2026 07:21
Incident AIDENT-3CV: Migration script and alias mapping for .mailbox expense import fix
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Group ID;Group name;Group alias;Group primary email;Description;Group email aliases;Synced from on-premises;Group type;Dynamic membership;IsYammerGroup;IsPLCGroup;Group privacy;Group domain;Has Teams;Created on;Assignable to roles;CreatedByAppId;SecurityEnabled
86cb66a1-fc9e-40e0-b24a-4d07e27e51b2;Aident - mailing list 't Snoepboerinneke;1f01524a-8d16-6e5a-b75b-000d3ad9e330;1f01524a-8d16-6e5a-b75b-000d3ad9e330@aident.app;Aident - mailing list 't Snoepboerinneke;snoepboerinneke.mailbox@aident.app+1f01524a-8d16-6e5a-b75b-000d3ad9e330@itexpertsbvba.onmicrosoft.com;FALSE;Mail-enabled security;FALSE;FALSE;FALSE;;aident.app;FALSE;07.07.2025 15:51;FALSE;98db8bd6-0cc0-4e67-9de5-f187f1cd1b41;TRUE
cddbeb19-3ce2-45b5-ad0d-43c2a88db2f9;Aident - mailing list AC Zwembaden;1ed85118-85af-659c-9af9-000d3ad9e330;1ed85118-85af-659c-9af9-000d3ad9e330@aident.app;Aident - mailing list AC Zwembaden;aczwembaden.mailbox@aident.app+1ed85118-85af-659c-9af9-000d3ad9e330@itexpertsbvba.onmicrosoft.com;FALSE;Mail-enabled security;FALSE;
@vvasiloi
vvasiloi / 01-introduction.md
Created July 26, 2024 11:55 — forked from gemmadlou/01-introduction.md
WordPress Composer Starter (Steps)

Develop WordPress as a Modern PHP Project with Composer


WordPress is popular because it's easy to setup without much technical know-how. However, to build a more robust PHP project with command line deployments, updates and ongoing maintenance, working with WordPress out-of-the-box raises specific challenges:


  • How can we make our WordPress projects portable between developers?

Falsehoods programmers believe about prices

  1. You can store a price in a floating point variable.
  2. All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
  3. All currencies are subdivided in decimal units (like dinar/fils)
  4. All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
  5. All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
  6. Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
  7. For any currency you can have a price of 1. (ZWL)
  8. Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)
@vvasiloi
vvasiloi / ExampleFactoryDecoratorTrait.php
Last active November 17, 2020 12:26
Extract options when decorating an example factory. See example usage in ProductExampleFactory.php. #sylius #fixtures #example #factory
<?php
namespace App\Fixture\Factory;
use Symfony\Component\OptionsResolver\OptionsResolver;
trait ExampleFactoryDecoratorTrait
{
/**
* @param array $options
@vvasiloi
vvasiloi / BulkInsertQuery.php
Created May 31, 2018 17:11 — forked from gskema/BulkInsertQuery.php
PHP PDO / Doctrine DBAL bulk insert query
<?php
namespace YourApp\Repository\Query;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Identifier;
/**
* Class BulkInsertQuery
*
@vvasiloi
vvasiloi / gist:0e7b948828d9c62be3b41706df041c65
Created April 22, 2016 12:56 — forked from ckaklamanos/gist:448984aadd5897e2a8fc
CS Cart .gitignore for Addon development
# -----------------------------------------------------------------
# .gitignore for CS Cart theme and addon development
#
# By default all files are ignored. You'll need to whitelist
# any addons, folders, files you want to include in the repo.
#
# To ignore uncommitted changes in a file that is already tracked, use
# git update-index --assume-unchanged
#
# To stop tracking a file that is currently tracked, use