Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| <?php | |
| /** | |
| * Drush script to delete a text format (filter format) from the Drupal 7 database. | |
| * | |
| * Usage: | |
| * drush scr path/to/delete_filter_format.drush.php --filter_format=filtered_html [--dry-run] | |
| */ | |
| // Drush bootstrap for full Drupal access. | |
| drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL); |
| {% for key, item in node.field_image.value %} | |
| <img src="{{ file_url(content.field_image[key]['#item'].entity.uri.value) }}" alt="{{ item.alt }}" title="{{ item.title }}" /> | |
| {# or #} | |
| {{ content.field_image[key] }} | |
| {% endfor %} |
| #!/usr/bin/env bash | |
| # Upgrade an Amazon Linux EC2 to PHP 7.3 | |
| # | |
| # Last tested w/ PHP 7.2 AWS Linux version 2.8.5 | |
| # | |
| # Must be ran as sudo: | |
| # sudo bash upgrade-php7.sh | |
| # | |
| # Can be added to ./.ebextensions/20_php.config like so: | |
| # container_commands: |
| <?php | |
| /* | |
| Plugin Name: wordpress assist clean header | |
| Plugin URI: http://www.wordpressassist.nl/ | |
| Description: Remove shortlink hook | |
| Version: 1.0 | |
| Author: AukeJomm | |
| Author URI: http://www.aukejongbloed.nl | |
| */ | |
| { | |
| "name": "mortenson/example", | |
| "minimum-stability": "dev", | |
| "authors": [ | |
| { | |
| "name": "Samuel Mortenson", | |
| "email": "samuel.mortenson@acquia.com" | |
| } | |
| ], | |
| "repositories": [ |
| #!/usr/bin/env bash | |
| # Ubuntu Server or VM Cleaner. Safe by default; aggressive when asked. | |
| # Example safe: sudo ./clean.sh | |
| # Example aggressive: sudo JOURNAL_DAYS=3 AGGRESSIVE=1 ./clean.sh | |
| # Enable Docker image prune (images only): sudo ./clean.sh --docker-images | |
| # Tested on Ubuntu 20.04, 22.04, 24.04 (server/VM images). | |
| set -Eeuo pipefail | |
| trap 'rc=$?; echo "Error on line $LINENO: $BASH_COMMAND (exit $rc)"; exit $rc' ERR | |
| IFS=$'\n\t' |
| Array | |
| ( | |
| [hook_menu] => 6744 | |
| [hook_uninstall] => 4742 | |
| [hook_perm(ission)] => 4012 | |
| [hook_install] => 3751 | |
| [hook_theme] => 3525 | |
| [hook_schema] => 3003 | |
| [hook_help] => 2465 | |
| [hook_form_alter] => 2273 |