Skip to content

Instantly share code, notes, and snippets.

View dustinleblanc's full-sized avatar
🤣

Dustin LeBlanc dustinleblanc

🤣
View GitHub Profile
@dustinleblanc
dustinleblanc / BardContent.php
Created October 20, 2024 19:05
WIP Bard Content migration from Statamic to Drupal. Not complete or robust, but working for my use case right now
<?php
namespace Drupal\migrate_statamic\Plugin\migrate\process;
use Drupal\Component\Transliteration\TransliterationInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
@dustinleblanc
dustinleblanc / .lando.yml
Last active September 1, 2021 19:15
Pantheon Build Tools with Lando Behat Testing
name: some-site
recipe: pantheon
config:
framework: drupal8
env: dev
site: some-site
id: some-uuid-string-here
drush: 8.3
php: '7.3'
webroot: web
@dustinleblanc
dustinleblanc / .lando.yml
Last active August 4, 2019 23:11
Setting up Lando with Browsersync
proxy:
node:
- appname-bs.lndo.site:3000
services:
node:
type: node
# Change as needed
build:
- "cd /app && yarn install"
- "cd /app && yarn dev"
@dustinleblanc
dustinleblanc / lando.yml
Created May 3, 2019 18:04
Browsersync Lando
proxy:
mannequin:
- appname-styleguide.lndo.site
node:
- appname-bs.lndo.site:3000
services:
mannequin:
type: compose
services:
image: php:7.3
name: haxcms
recipe: lemp
config:
php: '7.2'
webroot: ./web # <- relative to the repo root!
database: mariadb
tooling:
magic:
service: appserver
cmd: ./magic_script.sh
@dustinleblanc
dustinleblanc / .lando.yml
Created August 6, 2018 23:29
Magic Robofile for Acquia sites
name: client
recipe: drupal7
config:
webroot: docroot
xdebug: true
php: '7.1'
via: nginx
services:
appserver:
composer:
@dustinleblanc
dustinleblanc / .lando.yml
Created March 18, 2018 17:29
Setting up Laravel Dusk with ChromeDriver and Lando
name: cool-app
recipe: laravel
compose:
- docker-compose.yml
config:
php: '7.1'
via: nginx
webroot: public
@dustinleblanc
dustinleblanc / DrupalProjectValetDriver.php
Created June 29, 2016 13:35
Drupal Project Driver for Laravel Valet
<?php
class DrupalProjectValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
@dustinleblanc
dustinleblanc / Contract Killer 3.md
Created April 6, 2016 18:43
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@dustinleblanc
dustinleblanc / _color-schemes.scss
Created December 17, 2015 21:31
Scoped SCSS Variables
$color-schemes: (
numba_one $brand-one,
numba_two $brand-two,
numba_three $brand-three,
);
@each $color-scheme in $color-schemes {
body.#{nth($color-scheme, 1)} {
$dark: darken(nth($color-scheme, 2), 20%);
$med: nth($color-scheme, 2);