time drush php-eval '
$path="node/NODEID";
menu_set_active_item($path);
menu_execute_active_handler($path,
TRUE);' > /dev/null
Sample output.
time drush php-eval '
$path="node/NODEID";
menu_set_active_item($path);
menu_execute_active_handler($path,
TRUE);' > /dev/null
Sample output.
This is how to manage Letsencrypt in Ubuntu.
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache
# Create ssl certificate
sudo certbot --apache
ini_set('auto_detect_line_endings', true);
$rows = array();
// Load the csv file.
if ($csv_file = file_load($form_state['values']['csv_file'])) {
if (($handle = fopen($csv_file->uri, "r")) !== FALSE) {
while (($data = fgetcsv($handle, NULL, ",")) !== FALSE) {
array_push($rows, $data);
#!/usr/bin/env bash
# @param $1
# The directory where the dump sql file will ba saved.
#
# @param $2
# The database name that is going to backup. Note that Drupal and Drush don't really need
# this param but only for attachment on the filename.
drush fl --status=enabled | grep -o "\S\+\s\+Enabled.\+" | grep "Overridden"
function _x($data) {
// Store the hash data from mobile.
$hash_from_mobile = end($data);
// Remove the hash data as it is not needed anymore.
array_pop($data);
// Serialize the data before in order to calculate the checksum value.
$query_string = serialize($data);
$hash = md5($query_string);
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
For full list of tools please see this repo: Development Note