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
| ### INSTALL | |
| composer create-project drupal-composer/drupal-project:8.x-dev httpdocs --stability dev --no-interaction | |
| ### UPDATE | |
| composer update drupal/core webflo/drupal-core-require-dev --with-dependencies | |
| cd web | |
| drush updb | |
| drush cex | |
| drush cr |
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
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| DocumentRoot "[FULL_PATH]/httpdocs" | |
| ServerName www.[DOMAIN].loc | |
| ServerAlias www.[DOMAIN].loc | |
| ErrorLog "[FULL_PATH]/logs/error.log" | |
| CustomLog "[FULL_PATH]/logs/access.log" common | |
| <Directory "[FULL_PATH]/httpdocs"> | |
| AllowOverride All | |
| Order allow,deny |
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
| sudo su | |
| cd /usr/local/var/mysql | |
| rm *.err | |
| chown -R febstarer:admin . |
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
| # apache con brew | |
| sudo brew services restart httpd | |
| sudo vim /usr/local/etc/httpd/extra/httpd-vhosts.conf | |
| sudo vim /usr/local/etc/httpd/httpd.conf | |
| brew unlink [email protected] | |
| brew install [email protected] | |
| brew unlink [email protected] && brew link --force --overwrite [email protected] | |
| brew link [email protected] | |
| # brew operate with services |
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
| # update db for locate | |
| sudo updatedb | |
| locate XXX | |
| # distro infos | |
| lsb_release -a | |
| # espacio disco | |
| df -h |
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
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| # PHP 7.0 | |
| sudo apt-get install php7.0 php7.0-mysql php7.0-fpm php7.0-common php7.0-cli php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mcrypt php7.0-zip php7.0-curl libapache2-mod-php7.0 | |
| # PHP 7.1 | |
| sudo apt-get install php7.1 php7.1-mysql php7.1-fpm php7.1-common php7.1-cli php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mcrypt php7.1-zip php7.1-curl libapache2-mod-php7.1 | |
| # Switch between versions (fpm) |
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
| Error: | |
| "A VirtualBox machine with the name 'XXX' already exists. | |
| Please use another name or delete the machine with the existing | |
| name, and try again." | |
| $ vboxmanage list vms | |
| "my-vm" {c700b8b6-b766-4638-871b-736b44b7db18} | |
| Copy the ID of the desired VM (the c700…db18 string) into the contents of ~/.vagrant/machines/default/virtualbox/id. | |
| Save the file then run vagrant up to get the vm working without having to destroy it. |
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
| ############ | |
| ### SCOTCHBOX php7 o php5.6 | |
| ############ | |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "scotch/box" | |
| # Optional: version 2.5 con php5.6 | |
| #config.vm.box_version = "2.5" | |
| config.vm.network "private_network", ip: "[IP]" |
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
| $("form :input, form textarea, form select").each(function(index, elem) { | |
| var eId = $(elem).attr("id"); | |
| if(eId && (label = $(elem).parents("form").find("label[for="+eId+"]")).length == 1){ | |
| if($(elem).prop('tagName') == 'SELECT'){ | |
| // if it's a dropdown, change the first item ('All') to be the label | |
| $(elem).find('option:first').text('- '+$(label).text()+' -'); | |
| }else{ | |
| if ($(elem).is(':checkbox') || $(elem).is(':radio')) { | |
| // if it's a checkbox or radio, don't change anything |
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
| error_reporting(E_ALL); | |
| $conf['error_level'] = 2; | |
| ini_set('display_errors', TRUE); | |
| ini_set('display_startup_errors', TRUE); |
NewerOlder