Needs the patch: https://www.drupal.org/node/1848686
Split "Administer vocabularies and terms" permission: Access the taxonomy overview page and Add terms in vocabulary name
File structure:
mymodule
|- src
- name: Install Apache | |
run: | | |
pwd | |
sudo apt update | |
sudo apt install apache2 | |
echo "GETTING ADMIN PERMS SETUP" | |
sudo adduser $(whoami) www-data | |
sudo adduser $(whoami) root |
Needs the patch: https://www.drupal.org/node/1848686
Split "Administer vocabularies and terms" permission: Access the taxonomy overview page and Add terms in vocabulary name
File structure:
mymodule
|- src
/*------------------------------------*\ | |
breakpoint vars | |
\*------------------------------------*/ | |
$break-320: 20em; | |
$break-321: 20.0625em; | |
$break-480: 30em; | |
$break-600: 37.5em; | |
$break-768: 48em; | |
$break-980: 61.25em; | |
$break-1024: 64em; |
<?php | |
/* | |
Plugin Name: Custom clear cache | |
Description: Clears out the custom cache code | |
Author: Tyler Fahey | |
Version: 1.0.0 | |
Author URI: https://tylerfahey.com | |
*/ | |
class CCC_CLI { |
Drupal.behaviors.mybehavior = { | |
attach: function (context, settings) { | |
$('#some_element', context).once('mybehavior', function () { | |
// Code here will only be applied to $('#some_element') | |
// a single time. | |
}); | |
} | |
}; |
allmodules=""; | |
# Tweak these excluded as needed. Pesky modules, erroneous folders, etc. that are not modules. | |
# Keep in mind all files in the source folder will be scanned and use in the composer require statement. | |
excluded=("contrib" "custom" "README.txt" "platform" "config_split") | |
# Tweak location as needed for wherever script is being run. | |
for f in $(ls /Users/tylerfahey/Sites/pantheon-sites/wpccu2019/modules); do | |
# TODO: Check if module is in excluded list and ignore if so. | |
if [[ " ${excluded[@]} " =~ " ${f} " ]]; then | |
# whatever you want to do when array contains value | |
echo "ignoring $f" |
# Temporarily move current .git to not purge it. | |
mv .git .gitbackup | |
mv .gitignore .gitignorebackup | |
# Purge all gits | |
find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} + | |
# Put back original git | |
mv .gitbackup .git |
cat << 'EOF' | terminus drush mysite.dev -- php-script - | |
$config = \Drupal::config('jsonapi_extras.settings')->get('path_prefix'); | |
echo $config; | |
EOF |
ZSH_THEME="dracula" | |
# DRACULA_ARROW_ICON="-> " | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' | |
} | |
COLOR_DEF='%f' | |
COLOR_USR='%F{243}' | |
COLOR_DIR='%F{180}' | |
COLOR_GIT='%F{39}' | |
NEWLINE=$'\n' |