Skip to content

Instantly share code, notes, and snippets.

View vyasamit2007's full-sized avatar
🏠
Working from home

Amit Vyas vyasamit2007

🏠
Working from home
View GitHub Profile
@vyasamit2007
vyasamit2007 / acsf-backport-hooks.patch
Created March 27, 2018 13:06
BLT - ACSF Backport Hooks
From 5c995a21a5bdac8cbd97f794881801444b4ef4ab Mon Sep 17 00:00:00 2001
From: vyasamit2007 <vyasamit2007@gmail.com>
Date: Tue, 27 Mar 2018 18:32:58 +0530
Subject: [PATCH] ACSF Cloud Hooks / Factory Hooks Enhancements
---
scripts/cloud-hooks/functions.sh | 36 ++++++++++++++++------
.../common/post-code-deploy/post-code-deploy.sh | 4 +++
settings/acsf/db-update/db-update.sh | 25 +++++++++++++++
settings/acsf/post-install/post-install.php | 23 ++++++++++++++
@vyasamit2007
vyasamit2007 / build.xml
Last active April 26, 2017 14:02
BLT Build file to exclude the core updates if drupal version is 8.2.8
<project name="custom" default="build">
<!-- Override setup:update task for config import. -->
<target name="setup:update" description="Update current database to reflect the state of the Drupal file system.">
<!-- enable_property and uninstall_property must be set at this time. -->
<phingcall target="setup:toggle-modules"/>
<!-- Execute db updates. -->
<drush command="updb" assume="yes" alias="${drush.alias}">
<option name="entity-updates"></option>
</drush>
<!-- Rebuild caches. -->
@vyasamit2007
vyasamit2007 / lotus.module
Created April 10, 2017 18:48
Task-13 Add a field to an existing form
<?php
/**
* @file
* Add a field to an existing form.
*/
use \Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_FORM_ID_alter().
---
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1404
vagrant_user: vagrant
# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.
vagrant_hostname: project.local
vagrant_machine_name: project
PLAY [all] *********************************************************************
TASK [setup] *******************************************************************
ok: [project]
TASK [Include OS-specific variables.] ******************************************
ok: [project]
TASK [Update apt cache if needed.] *********************************************
ok: [project]