Skip to content

Instantly share code, notes, and snippets.

View Mfalm3's full-sized avatar
🤖
Learning

Mfalm3

🤖
Learning
View GitHub Profile
@Mfalm3
Mfalm3 / settings.json
Created March 26, 2019 09:42
My Preferred settings for VS Code
{
"[python]": {
"editor.rulers": [
79,
120
]
},
"beautify.language": {
@Mfalm3
Mfalm3 / console.php
Created October 25, 2021 09:27 — forked from duncanmcclean/console.php
Identify & fix Duplicate IDs in Statamic 3.
<?php // copy everything after this line
Artisan::command('identify-duplicates', function () {
$duplicates = [];
$shouldFixDuplicates = $this->confirm('Should Duplicate IDs be replaced with fresh IDs?');
$items = collect(\Illuminate\Support\Facades\File::allFiles(__DIR__.'/../content'))
->filter(function ($file) {
return $file->isFile();
})