Skip to content

Instantly share code, notes, and snippets.

View AlexSkrypnyk's full-sized avatar
💭
https://github.com/drevops

Alex Skrypnyk AlexSkrypnyk

💭
https://github.com/drevops
View GitHub Profile
@AlexSkrypnyk
AlexSkrypnyk / drush-drupal-unsuck.sh
Last active August 29, 2015 14:25
Drush Drupal unsuck
drush dis \
overlay \
dashboard \
toolbar \
color \
shortcut \
rdf\
-y && \
drush en \
admin_menu \
@AlexSkrypnyk
AlexSkrypnyk / settings.helpers.inc
Last active September 19, 2015 11:52
Drupal feature_banish exclude variables
<?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 September 19, 2015 11:57
Drupal settings constants
<?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 September 21, 2015 01:15
Drupal patches PATCHED.txt log file.
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 July 3, 2017 07:54
Page builder paragraphs authoring
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 July 3, 2017 08:14
Page builder paragraphs authoring
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 / db_d7.dist.sql
Created July 27, 2017 02:24
Drupal 7 Vanilla DB
-- 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 October 30, 2017 02:18
Acquia Cloud API drush commands
<?php
/**
* @file Acquia Cloud API commands
*/
/**
* Implementation of hook_drush_command().
*/
function acapi_drush_command() {
@AlexSkrypnyk
AlexSkrypnyk / page.json
Last active April 19, 2018 01:58
page schemata
{
"$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 April 19, 2018 02:12
Simplified Page 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"