defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0; killall Dock;
defaults delete com.apple.dock autohide-delay; defaults delete com.apple.dock autohide-time-modifier; killall Dock
<?php | |
/** | |
* @file | |
* Script to help cleanup the not existing permissions from your roles. | |
* | |
* @code | |
* drush scr clean_permissions.php | |
* drush -y cex | |
* @endcode | |
* |
let debounce = function (cb, delay) { | |
let timer; | |
return function () { | |
let context = this; | |
clearTimeout(timer); | |
timer = setTimeout(() => { | |
cb.apply(context, arguments); | |
}, delay); | |
}; | |
}; |
sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_general_ci/g' db.sql |
################################################################################### | |
# | |
# * | |
# /( | |
# ((((, | |
# /((((((( | |
# ((((((((((* | |
# ,((((((((((((((( | |
# ,((((((((((((((((((( | |
# ((((((((((((((((((((((((* |
<?php | |
// Example of setting up a batch process in Drupal that runs programmatically without user intervention | |
// Define batch operations and other batch settings as required: $batch | |
batch_set($batch); // Initialize and register the batch with Drupal's batch processing system. | |
drupal_alter('batch', $batch); // Allow other modules to alter the batch settings before it runs. | |
$batch = &batch_get(); // Retrieve a reference to the current batch array for direct manipulation. | |
$batch['progressive'] = FALSE; // Set the batch to run non-progressively, suitable for automated processes. | |
batch_process(); // Start processing the batch without expecting a user-driven progression. |
module.exports = { | |
content: [ | |
'./{templates, components}/**/*.{twig,js}', | |
], | |
theme: { | |
extend: {}, | |
}, | |
plugins: [] | |
} |
function ordinal($number) | |
{ | |
$ends = array( | |
'th', | |
'st', | |
'nd', | |
'rd', | |
'th', | |
'th', | |
'th', |
<?php | |
use Drupal\Core\Database\Database; | |
use Drush\Drush; | |
function find_content_types_with_fields() { | |
$fields_to_find = [ | |
'field_salesforce_account_id', | |
'field_publish_on_csrwire', | |
]; |
vendor/bin/phpcs --standard=Drupal,DrupalPractice -p ./html/modules/custom > phpcs.txt | |
vendor/bin/phpstan analyse -l 8 ./html/modules/custom > phpstan.txt |