Skip to content

Instantly share code, notes, and snippets.

@webflo
webflo / # mariadb-connector-c - 2024-12-01_21-30-01.txt
Created December 1, 2024 20:30
mariadb-connector-c on macOS 15.1 - Homebrew build logs
Homebrew build logs for mariadb-connector-c on macOS 15.1
Build date: 2024-12-01 21:30:01
@webflo
webflo / # mariadb-connector-c - 2024-12-01_21-01-09.txt
Created December 1, 2024 20:12
mariadb-connector-c on macOS 15.1 - Homebrew build logs
Homebrew build logs for mariadb-connector-c on macOS 15.1
Build date: 2024-12-01 21:01:09
<?php
namespace Drupal\foo;
use Drupal\Core\Asset\LibraryDiscoveryCollector;
use Drupal\Core\Session\AccountInterface;
use Drupal\domain\DomainNegotiatorInterface;
/**
* LibraryDiscoveryCollector with domain and permissions context.
@webflo
webflo / drush
Created September 25, 2024 11:48
#!/bin/bash
set -x
findDrush() {
local path="$1"
# Check if the vendor/bin/drush directory exists in the current directory
drushDir="$path/vendor/bin/drush"
if [ -e "$drushDir" ]; then
class DrupalFinderInterface() {
public function getDrupalRoot();
public function getComposerRoot();
public function getVendorDir();
}
<?php
declare(strict_types=1);
namespace DrupalFinderPlugin;
/**
* This class is generated by webflo/drupal-finder-plugin, specifically by
* @see \DrupalFinderPlugin\Installer
*
{
"name": "drupal-composer/drupal-security-advisories",
"description": "Prevents installation of composer packages with known security vulnerabilities",
"type": "metapackage",
"license": "GPL-2.0-or-later",
"conflict": {
"drupal/acquia_contenthub": "<1.0,<1.4",
"drupal/alinks": "<1.1",
"drupal/auto_login_url": "<1.2",
"drupal/bootstrap": "<3.5",
<?php
/**
* @file
* Local development override configuration feature.
*
* To activate this feature, copy and rename it such that its path plus
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of
* 'sites/default/settings.php' and uncomment the commented lines that mention
* 'settings.local.php'.
@webflo
webflo / drupal-finder.php
Created October 26, 2017 15:03
drupal-finder.php
<?php
// Usage: php drupal-finder.php /var/www/some/example/path
include __DIR__ . '/vendor/autoload.php';
$path = array_pop($argv);
$finder = new \DrupalFinder\DrupalFinder();
print "Input: " . $path . PHP_EOL;