First run ./stream_parser as described in this article and the use the following script.
Good luck, you need it.
This file contains hidden or 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/sh | |
| # | |
| # Creates a new RamsaltMedia platform and sets it up with Esolitos' default configuration. | |
| # | |
| DRUSH=`which drush` | |
| if [ -z $DRUSH ]; then | |
| echo "ERROR: drush command not found!" 1>&2 | |
| exit -1 | |
| fi; |
This module simply loads and saves the nodes, it increases by 1 second the creation date and by only 5 the "last updated" on nodes.
Version: 1.3
This file contains hidden or 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 | |
| $all = $platforms = array(); | |
| // Use standard linux 'PATH' style, so if you need more entries separate them using a column ':' char | |
| // For example: '/path/to/platforms/container' OR '/path/to/platforms/container:/path/to/another/location' | |
| // This dorectory will contain one or more drupal roots directories | |
| $platforms_path = '/var/www/platforms'; | |
| $paths = explode(':', $platforms_path); | |
| foreach($paths as $path) { |
This file contains hidden or 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/sh | |
| # | |
| # Checks if a server is running, otherwise it restarts it | |
| SERVER=$1 | |
| if [ -z "$SERVER" ]; then | |
| echo "Server name not provided!" 1>&2 | |
| exit 1 | |
| fi |
This file contains hidden or 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
| # This is a Drupal Console (chain file)[https://docs.drupalconsole.com/en/commands/chain.html]. | |
| # Needs to be deployed in `~/.console/chain` directory. | |
| # Can be be run using `drupal chain --file=~/.console/chain/deploy-config.yml`. | |
| # | |
| # The purpouse if this chain is to remove "devel-only" modules and config from the configuration | |
| # export, so that we can avoid issues in the syncronisation in Staging/Production. | |
| # | |
| commands: | |
| # Remove 'devel' modules | |
| - command: module:uninstall |
This file contains hidden or 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/sh | |
| # | |
| # Argument 1: Source drush-based drupal | |
| # Argument 2: Destination composer-based drupal | |
| # | |
| OLD_ROOT=$1 | |
| NEW_ROOT=$2 | |
| if [ ! -d "$OLD_ROOT" ]; then | |
| echo "Source directory not found!" |
This file contains hidden or 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 | |
| # [...] All your config | |
| /* Composer Manager configuration */ | |
| $conf['composer_manager_vendor_dir'] = realpath(DRUPAL_ROOT .'/../vendor'); | |
| $conf['composer_manager_file_dir'] = realpath(DRUPAL_ROOT .'/..'); | |
| # [...] more stuff |
This file contains hidden or 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
| # Update Drupal modules on composer-based setups | |
| comp-drup() { | |
| if [ -z "$1" ]; then echo -e "\e[31m[ERR] You MUST specify a module name\e[0m" 1>&2; return -1; fi; | |
| if [ ! -f ./composer.json ]; then echo -e "\e[31m[ERR] Missing composer.json file. Are you sure you're in the correct directory? \e[0m" 1>&2; return -2; fi; | |
| composer update "drupal/$1" --with-dependencies | |
| } |
This file contains hidden or 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
| varnishlog -aAD -w ./varnish-ban.log -P ./varnish-ban.pid -g raw -q "CLI ~ 'Rd ban obj.*'" |