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/bash | |
# Deployment script for Acquia Cloud Next on a multisite (non-Site Factory) setup. | |
# Place this file in your repository at hooks/common/post-code-deploy/deploy.sh | |
# See https://github.com/acquia/cloud-hooks/blob/master/samples/post-code-deploy.tmpl | |
site="$1" | |
target_env="$2" | |
cd "/var/www/html/$site.$target_env/docroot" |
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/bash | |
# For an unknown reason, the Acquia Site Studio repositories package their | |
# releases in a way that prevents comparing code changes between releases. | |
# Maybe this is intentional as a kind of security through obscurity. Maybe it | |
# is unintentional and just a part of a flawed release practice. Either way, | |
# the source code is GPL'ed on Github which lends itself to being able to track | |
# the changes between versions. That is exactly what this script does. | |
## | |
## Usage: | |
## ./cohesion_git_history.sh https://github.com/acquia/cohesion |
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/env bash | |
# | |
# Create a local environment leveraging DDEV for the specified Drupal core version. | |
# | |
# Installation: | |
# store this file in your /usr/local/bin or ~/bin and ensure it shows up in your $PATH | |
# | |
# Usage: | |
# ddev-drupal-core-install 11.x (bleeding edge) | |
# ddev-drupal-core-install 10.2.x |
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
# Add the following to your project's .gitignore | |
# The approach here assumes you're going to want to have the awscli also configured | |
# on your host OS, so we can just copy configs from ~/.aws/ on your host OS into the | |
# ddev web container during startup by way of the .ddev/homeadditions folder. | |
.ddev/homeadditions/.aws |
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
.contact-form input:not(:placeholder-shown):valid, | |
.contact-form textarea:not(:placeholder-shown):valid { | |
background-color: #f4feee; | |
} | |
.contact-form input:not(:placeholder-shown):invalid, | |
.contact-form textarea:not(:placeholder-shown):invalid { | |
background-color: #fff0f0; | |
} |
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
libraries-extend: | |
# Improve interoperability between MyTheme and the Drupal admin toolbar. | |
toolbar/toolbar: | |
- mytheme/toolbar |
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
/*! | |
* @file | |
* Google Sheets XHR insert script. | |
* | |
* From: https://gist.github.com/jameswilson/0dea86b63741ee4a723cc568c09796ea | |
* | |
* Setup instructions: | |
* | |
* 1. Create a new Google Sheet and add column names in Row 1. | |
* 2. Click "Tools" > "Script editor" from the toolbar. |
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
git checkout old_branch_name # Ensure you're on the local branch. | |
git branch -M new_branch_name # Rename branch locally. | |
git branch --unset-upstream # unset | |
git push origin :old_branch_name # Delete the old branch | |
git push -u origin new_branch_name # Push the new branch, set local branch to track the new remote |
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
{# | |
/** | |
* @file | |
* Theme override to display a node. | |
* | |
* Available variables: | |
* - see Stable Theme's node.twig.html for standard variables. | |
* - has_page_title: Flag for page title block visibility. Will be true when | |
* the iu_page_title block is present on the page. This is useful to add the | |
* H1 inside the article when page title block not present. |
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/bash | |
# Git command to compare which branches are merged into one branch but not | |
# present in another. Useful for comparing which branches have been merged | |
# into a release branch that are already on the mainline branch. | |
# | |
# Usage: | |
# | |
# git mdiff origin/master origin/integration | |
# |
NewerOlder