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 | |
//readme: | |
//run `composer require typhonius/acquia-php-sdk-v2:^2.0` | |
//adjust vars $key, $secret, $app_uuid, $env_name | |
//run in terminal `php acquia_environments.php` | |
require "vendor/autoload.php"; | |
// @file get acquia application environment per field name |
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 | |
/* | |
This files checks for duplicate modules in your drupal installation, by checking duplicated occurrences of `.info` files. | |
It will print an array with all occurrences of the info files. | |
This is intented to be executed via command line, send the paths to be scanned as params in the php call. | |
Be sure to place the files inside your site's `docroot` location, and do not commit to your production repository. | |
For example: | |
``` | |
php php-modules.php /sites/all /profiles/gardens /profiles/profile2 |
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 | |
/* | |
+----------------------------------------------------------------------+ | |
| PHP Version 5 | | |
+----------------------------------------------------------------------+ | |
| Copyright (c) 1997-2004 The PHP Group | | |
+----------------------------------------------------------------------+ | |
| This source file is subject to version 3.0 of the PHP license, | | |
| that is bundled with this package in the file LICENSE, and is | | |
| available through the world-wide-web at the following url: | |
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 | |
# Shell script to backup MySql database (Performed for Drupal databases) | |
# It ignores drupal cache and temporary information common tables content, | |
# although it fits any mysql database dump. | |
# To backup a Mysql database file to a chosen directory you must provide the | |
# database name, and mysql access information through parameters in the script | |
# execution. | |
# Based on the original script on | |
# http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html | |
# Last updated: May - 2013 |