- Assuming that you have already installed php and apache
- Install xDebug php extension
sudo apt-get install php-xdebug
- Now edit your
php.iniand add these lines at last
| #!/bin/bash | |
| # docker | |
| sudo apt-get update | |
| sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable" |
| /* | |
| Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
| Que tal enviar mensagens pra ela até obter uma resposta?! | |
| Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
| Para utilizar: | |
| - Abra o web.whatsapp.com; | |
| - Selecione a conversa que você quer; | |
| - Abra o console e cole o código que está no gist; |
| FROM ubuntu | |
| RUN dpkg-divert --local --rename --add /sbin/initctl | |
| RUN ln -s /bin/true /sbin/initctl | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| RUN apt-get -y install mysql-client mysql-server |
| [ | |
| { | |
| "name":"Bulbasaur", | |
| "attack":49, | |
| "defense":49, | |
| "evolveLevel":16, | |
| "evolveTo":"2", | |
| "type":"grass", | |
| "moves":[ | |
| "tackle", |
| # Source internet | |
| # Use at your own risk | |
| # Ovrride Default index.php | |
| DirectoryIndex home.php | |
| # prevent access to some files | |
| <FilesMatch "^(wp-config.php|readme.html|license.txt|README.md|.gitignore|.gitattributes|.htaccess|error_log)"> | |
| Order allow,deny | |
| Deny from all |
| # https://git-scm.com/book/en/Customizing-Git-Git-Attributes | |
| # https://help.github.com/articles/dealing-with-line-endings | |
| # Auto detect text files and perform LF normalization | |
| * text=auto | |
| # Force the following filetypes to have unix eols, so Windows does not break them | |
| *.* text eol=lf |
| #!/bin/bash | |
| # https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Script will auto terminate on errors | |
| # run like - bash script_name.sh | |
| # Prevent source | |
| [[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return |
| #!/bin/bash | |
| # Install node and npm via nvm - https://github.com/creationix/nvm | |
| # Does not require git to be pre-installed, now using CURL | |
| # Prevent source | |
| [[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return | |
| # Script will auto terminate on errors | |
| set -e |
sudo apt-get install php-xdebug
php.ini and add these lines at last
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Ubuntu 16.04 Dev Server | |
| # Don't source it, run like - bash install_lamp.sh | |
| # Script will auto terminate on errors | |
| # Prevent source |