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
SELECT * FROM dba_tab_privs WHERE GRANTEE ='Name of user' ; |
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
//criando um controller restful | |
artisan controller:make FooController | |
//criando um controller restful com criação opcional dos metodos. | |
artisan controller:make FooController --only="index,show" | |
//criando um controller restful menos os metodos. | |
artisan controller:make FooController --except="destroy" |
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
//Rota para resourceful controller ([nome da rota],[namespace]) | |
Route::resource('artista', 'artista\\ArtistaController'); |
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
// executar este comando para registar os namespace das classes criadas. | |
composer.phar dump-autoload |
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
# Can ignore specific files | |
.DS_Store | |
# Use wildcards as well | |
*~ | |
*.swp | |
# Can also ignore all directories and files in a directory. | |
tmp/**/* |
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
// http://four.laravel.com/docs/migrations | |
//criando migrations para tabela | |
php artisan migrate:make create_foo_table | |
//populando/semeando as tabela do banco de dados. | |
artisan db:seed | |
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
//ignore arquivos de backup do vim | |
*~ | |
*.swp |
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
git init | |
git add . | |
git commit -m "message" | |
git remote add origin ssh://git@host/foo/foo.git | |
git push -u origin master |
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
// https://github.com/scrooloose/nerdcommenter | |
<LEADER> = / se não tiver um padrão pre definindo. |
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
path to PhpCodeAniffer | |
cd /usr/lib/php/PHP/CodeSniffer/Standards/ |
OlderNewer