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
composer create-project drupal/drupal project-name 8.1.* | |
composer config repositories.drupal composer https://packages.drupal.org/8 | |
drush si standard --db-url='mysql://[user]:[pass]@localhost/[db_name]' --site-name=xxx --account-name=admin --account-pass=9999 | |
### Drupal Commerce | |
composer require "drupal/commerce 2.x-dev" | |
drupal module:install commerce_product commerce_checkout commerce_cart commerce_tax |
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 | |
$ldaprdn = "uid=test,ou=test,dc=test,dc=test,dc=pt"; | |
$ldappass = "xxx"; | |
$basedn = "dc=test,dc=pt"; | |
// if no ldap.conf or ldaprc configured, need to put certificate in environment | |
putenv('LDAPTLS_CACERT=./ca.pem'); | |
//Enable debug |
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 | |
# Original by Ken Lin | |
# Updated by Pierre-Julien Mazenot | |
# | |
# - Mysql version 5.7.9 -> 5.7.11 | |
# - Comments | |
# | |
# Additional notes after last tests | |
# |
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
#reset passwords | |
drush user-password admin --password=1234 |
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 | |
/** | |
* @file | |
* Handles localization for module. | |
*/ | |
/** | |
* Language callback for selecting the active language. |
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
/** | |
* Implements hook_language_negotiation_info(). | |
*/ | |
function nap_language_negotiation_info() { | |
return array( | |
'nap_language_provider' => array( | |
'callbacks' => array( | |
'language' => 'MODULE_language_provider_callback', | |
'switcher' => 'MODULE_language_switcher_callback', | |
'url_rewrite' => 'MODULE_language_url_rewrite_callback', |
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
#How to prune local tracking branches that do not exist on remote anymore | |
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d |
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
####Mysql 5.7 | |
## Fedora 25 ## | |
MariaDb 10.1 | |
#Fedora 25 provides PHP version 7.0 in its official repository | |
#Command to install the Remi repository configuration package: | |
dnf install http://rpms.remirepo.net/fedora/remi-release-25.rpm | |
#You want multiple versions which means using a Software Collection |
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
/** | |
* A collection of helper prototype for everyday DOM traversal, manipulation, | |
* and event binding. Sort of a minimalist jQuery, mainly for demonstration | |
* purposes. MIT @ m3g4p0p | |
*/ | |
window.$ = (function (undefined) { | |
/** | |
* Duration constants | |
* @type {Object} |
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
/** | |
* A collection of helper prototype for everyday DOM traversal, manipulation, | |
* and event binding. Sort of a minimalist jQuery, mainly for demonstration | |
* purposes. MIT @ m3g4p0p | |
*/ | |
window.$ = (function (undefined) { | |
/** | |
* Duration constants | |
* @type {Object} |