- composer require --dev symfony/var-dumper
composer require --dev drupal/devel:1.0.0-rc1
| <VirtualHost *:80> | |
| DocumentRoot "/home/dev/server/project/dist/" | |
| ServerName vuejs.project.local | |
| <Directory /home/dev/server/project/dist/> | |
| Options Indexes FollowSymLinks MultiViews | |
| AllowOverride all | |
| Require all granted | |
| Order allow,deny | |
| allow from all |
| git config merge.renameLimit 999999 | |
| git config --unset merge.renameLimit |
| # Requirements: php, php-yaml (pecl extention) | |
| php -r 'echo print_r(yaml_parse_file(__DIR__ . "/app/config/parameters.yml"), 1);' |
| #!/bin/bash | |
| # Converting environment to bash variables | |
| export $(cat .env | xargs) |
| #!/bin/bash | |
| # Usage | |
| # First create an encrypted password to be used as connection pass | |
| # and pass as a parameter with the script. To create use: slappasswd | |
| # Clean packages | |
| sudo yum clean all | |
| # Install openldap as service manager | |
| sudo yum -y install openldap-servers openldap-clients |
| # Root. | |
| $ docker exec -u 0 i -t {container_id/image_name} bash | |
| or | |
| # Default container's user. | |
| $ docker exec i -t {container_id/image_name} bash |
composer require --dev drupal/devel:1.0.0-rc1
| # -*- coding: utf-8 -*- | |
| # Print iterations progress | |
| def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100): | |
| """ | |
| Call in a loop to create terminal progress bar | |
| @params: | |
| iteration - Required : current iteration (Int) | |
| total - Required : total iterations (Int) |
| [ | |
| { | |
| "sp":"bluetooth", | |
| "spn":"ble_demo_hc06", | |
| "sf":"20", | |
| "smn":[ | |
| { | |
| "name":"accelerometer_gyroscope", | |
| "data":[ | |
| { |
| # | |
| # nginx configuration example for CakePHP 2.x | |
| # | |
| server { | |
| listen 80; | |
| server_name cakephp2.example; | |
| root /var/www/cakephp2/app/webroot; | |
| access_log /var/log/nginx/cakephp2.access.log; | |
| error_log /var/log/nginx/cakephp2.error.log; |