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 | |
#web/modules/custom/sdgs_helper/src/EventSubscriber/SearchAlterDocuments.php | |
namespace Drupal\sdgs_helper\EventSubscriber; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Drupal\search_api_solr\Event\SearchApiSolrEvents; | |
use Drupal\search_api_solr\Event\PostCreateIndexDocumentEvent; |
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
name: q1 | |
type: drupal9 | |
docroot: web | |
php_version: "7.4" | |
webserver_type: nginx-fpm | |
router_http_port: "8080" | |
router_https_port: "8443" | |
xdebug_enabled: false | |
additional_hostnames: [] | |
additional_fqdns: [] |
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
for t in $(drush sqlq "show tables"); do echo $(drush sqlq "SELECT '$t' n, COUNT(*) r FROM $t") ; done |
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
# Add MS code to path https://code.visualstudio.com/docs/setup/mac | |
cat << EOF >> ~/.zshrc | |
# Add Visual Studio Code (code) | |
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH" | |
EOF | |
================== | |
# Add Sublime text to path https://code.visualstudio.com/docs/setup/mac | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |