Skip to content

Instantly share code, notes, and snippets.

View pixiekat's full-sized avatar
✈️
Dreaming of Scotland

Katie pixiekat

✈️
Dreaming of Scotland
View GitHub Profile
From 5b0bad9304c44d4f0a1ea25f920e9a0f4d669bbf Mon Sep 17 00:00:00 2001
From: Katie Elizabeth <[email protected]>
Date: Tue, 11 Mar 2025 15:20:23 -0400
Subject: [PATCH] add try/catch
---
src/Controller/SimpleAccessLog.php | 145 +++++++++++++++--------------
1 file changed, 76 insertions(+), 69 deletions(-)
diff --git a/src/Controller/SimpleAccessLog.php b/src/Controller/SimpleAccessLog.php
From b1bed8ae5cd7f547ac5215e2d65f8f580065b3b1 Mon Sep 17 00:00:00 2001
From: Katie Elizabeth <[email protected]>
Date: Mon, 23 Sep 2024 10:40:14 -0400
Subject: [PATCH] alter to allow for custom alicanto permissions to
opigno_class for view, view teaser, and join
---
opigno_learning_path.module | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
@pixiekat
pixiekat / OhMyPoshInstall.sh
Created August 4, 2024 12:43 — forked from BraINstinct0/OhMyPoshInstall.sh
Oh My Posh install & update script for AMD64-based linux
echo "Installing 'Oh My Posh'..."
sudo wget https://www.github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
echo "Oh My Posh installation complete. Version:"
oh-my-posh --version
@pixiekat
pixiekat / get_all_field_types.php
Created June 22, 2018 12:38
Drupal 8 Useful Snippets
<?php
$definitions = Drupal::service('plugin.manager.field.field_type')->getDefinitions();
foreach ( $definitions as $field_type => $definition) {
print 'Label: '. $definition['label']. PHP_EOL;
print 'Machine name: '. $field_type. PHP_EOL;
print 'Descritpion: '. $definition['description']. PHP_EOL;
print 'Provider: '. $definition['provider']. PHP_EOL . ' ---' . PHP_EOL;
}