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
| http://www.bentedder.com/using-mysql-workbench-with-vagrant/ |
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
| mysqladmin -u root -proot extended-status processlist |
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 apt-get install php-pear | |
| - sudo apt-get install php7.0-dev | |
| - sudo apt-get install libcurl3-openssl-dev | |
| - sudo pecl install mongodb | |
| - add "extension=mongodb.so" to php.ini on both apache2 and cli folders |
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
| => Debug | |
| => Info (interação do usuário, hit de api) | |
| => Notice (eventos comuns, eventos relevantes) | |
| => Warning (eventos que fogem do comum, não sendo erros, mas relevantes ao sistema) | |
| => Error (erro em tempo de execução) | |
| => Critical (falha de serviços externos) | |
| => Alert (erros que precisam de ação corretiva imediata) | |
| => Emergency (sistema em estado inativo) |
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
| apt-get update | |
| apt-get install -y apache2 | |
| if ! [ -L /var/www/html ]; then | |
| rm -rf /var/www/html | |
| ln -fs /vagrant/html /var/www/html | |
| fi | |
| add-apt-repository ppa:ondrej/php | |
| apt-get update | |
| apt-get install -y php7.0 |
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
| <? | |
| $pdo = new PDO('mysql:hostlocalhost;dbname=linhas_santos','root',''); | |
| $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
| $pdo->exec("set names utf8"); | |
| $pagina = "http://www.cetsantos.com.br/transportes/linha04.htm"; | |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:orientation="vertical" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" | |
| android:paddingRight="@dimen/activity_horizontal_margin" | |
| android:paddingTop="@dimen/activity_vertical_margin" | |
| android:paddingBottom="@dimen/activity_vertical_margin" |
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
| import sublime, sublime_plugin | |
| import datetime | |
| import subprocess | |
| import os | |
| class PhplocCommand(sublime_plugin.TextCommand): | |
| # Class created to consume Sebastian Bergmann's PHPLOC | |
| # from SublimeText |
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
| import sublime, sublime_plugin | |
| import datetime | |
| import subprocess | |
| import os | |
| class HelloCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| arquivo = self.view.file_name() |
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 | |
| for($i=0;$i < 100;$i++){ | |
| echo ($i - 100)*(-1)."<br>"; | |
| } | |
| ?> |