This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## once Ubuntu 22.04 is installed : | |
sudo apt update; | |
sudo apt install php8.1 php-xml php-curl composer; | |
## Then once those are installed: | |
mkdir -p ~/terminus && cd ~/terminus; | |
curl -L https://github.com/pantheon-systems/terminus/releases/download/3.1.5/terminus.phar --output terminus; | |
chmod +x terminus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lando version is at least +3.0 | |
name: drupal-nine | |
recipe: drupal9 | |
services: | |
appserver: | |
webroot: web | |
xdebug: debug | |
config: | |
php: .vscode/php.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using the pantheon recipe / wordpress_network framework, we add a config to the | |
# appserver_nginx service to use our own server and vhost files. Copy the files lando | |
# uses and on the wordpress_network.conf.tpl and added wp/ to the rewrite | |
# rules so lando knows where our WP files live within our Bedrock setup. | |
appserver_nginx: | |
type: nginx | |
ssl: true | |
config: | |
server: 'private/config/lando/nginx.conf.tpl' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# file: landoSmash.sh | |
echo "LANDO SMASH!!!"; | |
# change to your project folder | |
cd ~/clones/presence; | |
# exports db if it is bootstrappable (word?) | |
echo "Exporting dB...\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Drupal git normalization | |
# @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | |
# @see https://www.drupal.org/node/1542048 | |
# Normally these settings would be done with macro attributes for improved | |
# readability and easier maintenance. However macros can only be defined at the | |
# repository root directory. Drupal avoids making any assumptions about where it | |
# is installed. | |
# Define text file attributes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
'use strict'; | |
/**************** Gulp.js 4 configuration ****************/ | |
const | |
// development or production | |
devBuild = ((process.env.NODE_ENV || 'development').trim().toLowerCase() === 'development'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
import argparse | |
def parse_args(): | |
p = argparse.ArgumentParser() | |
p.add_argument('--dryrun', '-n', action='store_true') | |
p.add_argument('search') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush php-eval ' global $timers; $hook = 'cron'; $return = array(); $args = array(); foreach (module_implements($hook) as $module) { $function = $module . '_' . $hook; print($function ." - "); timer_start($function); $result = call_user_func_array($function, $args); if (isset($result) && is_array($result)) { $return = array_merge_recursive($return, $result); } else if (isset($result)) { $return[] = $result; } timer_stop($function); print($timers[$function]['time'] ."\r\n"); }' |