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 | |
# Cleans up git repo by rebasing local branches (if possible) and deleting already merged branches | |
set -e | |
git fetch --all | |
BASE_BRANCH="origin/master" | |
CHECKOUT_BRANCH="master" |
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 | |
set -e | |
# Create build commit by pulling the remote branch and copying over the files from the project build | |
# which contain data in the docroot we usually do not commit. | |
LAST_COMMIT_INFO=$(git log -1 --pretty="[%h] (%an) %B") | |
LAST_COMMIT_USER=$(git show -s --format="%an") | |
LAST_COMMIT_USER_EMAIL=$(git show -s --format="%ae") | |
CURRENT_REV=$(git rev-parse --abbrev-ref HEAD) | |
# We store directory values, so we can restore them later. |
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
$controller = \Drupal::entityManager()->getStorage($entity_type); | |
$entities = $controller->loadMultiple(NULL); | |
dvm(array_keys($entities)); | |
$controller->delete($entities); |
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
<?php | |
$ini = file_get_contents(__DIR__ . '/../make.ini'); | |
/** | |
* @var SplFileInfo $path | |
* @var SplFileInfo $file | |
*/ |
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
<?php | |
$ini = file_get_contents(__DIR__ . '/../make.ini'); | |
/** | |
* @var SplFileInfo $path | |
* @var SplFileInfo $file | |
*/ | |
foreach(new DirectoryIterator(__DIR__ . '/sites/all/modules/contrib') as $path) { |
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
<?php | |
/** | |
* @var SplFileInfo $path | |
* @var SplFileInfo $file | |
*/ | |
foreach(new DirectoryIterator(__DIR__ . '/sites/all/modules/contrib') as $path) { | |
$projectname = $path->getFilename(); |
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 build | |
find . -not -name ".git" -not -name "." -not -name ".." -maxdepth 1 | xargs rm -rf | |
git checkout develop -- . | |
composer install | |
find . -type d -name ".git" -not -path "./.git" | xargs rm -rf |
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
Notification.requestPermission().then(function(result) { | |
function checkError() { | |
console.log('check error'); | |
if (jQuery('.error').length > 0) { | |
new Notification("Batch error occured"); | |
} | |
else { | |
setTimeout(checkError, 10000); | |
} | |
} |
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
# Ignore freistilbox related files | |
/config | |
/private | |
/tmp | |
# Ignore configuration files that may contain sensitive information or are | |
# dependent on the environment | |
/docroot/sites/default/settings.php | |
/docroot/sites/default/local.settings.php | |
/docroot/sites/default/settings.local.php |
NewerOlder