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
#reset passwords | |
drush user-password admin --password=1234 |
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
#!/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 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 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 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
#Remove all docker containers with status exited | |
$ docker rm -v $(docker ps -a -q -f status=exited) |
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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use SensioLabs\Security\SecurityChecker; | |
class CheckSecurity extends Command | |
{ | |
/** |
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 | |
$data = array_filter($data, function ($value) { | |
return $value !== ''; | |
}); |
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 | |
namespace Api\v1; | |
use Apilog; | |
use Config; | |
use Input; | |
use League\Fractal; | |
use League\Fractal\Pagination\Cursor; | |
use League\Fractal\Resource\Collection; |
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
vagrantfile: | |
target: local | |
vm: | |
box: puphpet/ubuntu1404-x64 | |
box_url: puphpet/ubuntu1404-x64 | |
hostname: cvhomevag | |
memory: '2048' | |
cpus: '2' | |
chosen_provider: virtualbox | |
network: |
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
find . | grep .git | xargs rm -rf |