Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
https://github.com/drevops

Alex Skrypnyk AlexSkrypnyk

💭
https://github.com/drevops
View GitHub Profile
View drush-drupal-unsuck.sh
drush dis \
overlay \
dashboard \
toolbar \
color \
shortcut \
rdf\
-y && \
drush en \
admin_menu \
@AlexSkrypnyk
AlexSkrypnyk / settings.helpers.inc
Last active Sep 19, 2015
Drupal feature_banish exclude variables
View settings.helpers.inc
<?php
/**
* Settings helpers.
*/
/**
* Configuration for features_banish's module variable features_banish_items.
*
* Returned value contains Drupal 7 config variables that are state variables.
* This may include contrib-specific variables, but should never include
@AlexSkrypnyk
AlexSkrypnyk / settings.constants.inc
Created Sep 19, 2015
Drupal settings constants
View settings.constants.inc
<?php
/**
* @file
* Global constants.
*
* This file contains only site-wide, not module-related, constants.
* Module-related constants must stay with their modules.
*/
@AlexSkrypnyk
AlexSkrypnyk / PATCHED.txt
Created Sep 21, 2015
Drupal patches PATCHED.txt log file.
View PATCHED.txt
Uncommitted patches
===================
Uncommited patches are where we store references to the drupal.org node which
contains our patch. These modules are all patched with uncommitted patches and
must be very carefully updated.
EXAMPLE:
[#728702] - Drupal core [drupal]
Issue: Visiting index.php should redirect to install.php if settings.php already has database credentials but database is empty.
@AlexSkrypnyk
AlexSkrypnyk / cms.page_builder.feature
Created Jul 3, 2017
Page builder paragraphs authoring
View cms.page_builder.feature
Scenario: Page builder paragraphs authoring
Given I create a published 'page_builder' with content:
| title | Example page |
| field_theme | victory |
# Create section with title.
And I add Section paragraph to 'field_page_builder_section' with fields:
| title | Section 1 |
And I add WYSIWYG paragraph to 'field_left' with fields:
@AlexSkrypnyk
AlexSkrypnyk / cms.page_builder.feature
Last active Jul 3, 2017
Page builder paragraphs authoring
View cms.page_builder.feature
Scenario: Page builder paragraphs authoring
Given I create a published 'page_builder' with content:
| title | Example page |
| field_theme | victory |
# Create section with title.
And I add Section paragraph to 'field_page_builder_section' with fields:
| title | Section 1 |
And I add WYSIWYG paragraph to 'field_left' with fields:
View db_d7.dist.sql
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
-- Host: localhost Database: beetbox
-- ------------------------------------------------------
-- Server version 5.7.19-0ubuntu0.16.04.1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@AlexSkrypnyk
AlexSkrypnyk / acapi.drush.inc
Created Oct 30, 2017
Acquia Cloud API drush commands
View acapi.drush.inc
<?php
/**
* @file Acquia Cloud API commands
*/
/**
* Implementation of hook_drush_command().
*/
function acapi_drush_command() {
@AlexSkrypnyk
AlexSkrypnyk / page.json
Last active Apr 19, 2018
page schemata
View page.json
{
"$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
"id": "https:\/\/nginx-php-content-vic-develop.lagoon.vicsdp.amazee.io\/schemata\/node\/page?_format=schema_json&_describes=api_json",
"type": "object",
"title": "node:page Schema",
"description": "Use <em>Page<\/em> content type for basic pages.",
"properties": {
"attributes": {
"type": "object",
"properties": {
@AlexSkrypnyk
AlexSkrypnyk / page_simplified.json
Last active Apr 19, 2018
Simplified Page json
View page_simplified.json
{
"id": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Template",
"description": "An Azure deployment template",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "JSON schema reference"