Skip to content

Instantly share code, notes, and snippets.

View Mosnar's full-sized avatar
💫

Ransom Mosnar

💫
View GitHub Profile
@khalwat
khalwat / m240515_172552_add_index_to_demo_data.php
Last active September 2, 2025 19:19
Craft CMS 5 content migration that will create a functional index for custom fields, which are now stored as a JSON column in element_sites.content. Also handles dropping the index if the migration is reverted.
<?php
/**
* Craft CMS 5 content migration that will create a functional index for custom fields, which
* are now stored as a JSON column in element_sites.content. Also handles dropping the index if
* the migration is reverted.
*
* @licence MIT
* @link https://nystudio107.com
* @copyright Copyright (c) nystudio107
*/
@sergeyklay
sergeyklay / phpenv-install.md
Last active November 10, 2024 14:36
Multiple PHP versions using phpenv and php-build

Multiple PHP versions using phpenv and php-build

Install dependecies

Debian/Ubuntu users

sudo apt install \
  autoconf \
  bison \