Skip to content

Instantly share code, notes, and snippets.

View wouerner's full-sized avatar
💙
SouJunior

Wouerner Brandão wouerner

💙
SouJunior
View GitHub Profile
@wouerner
wouerner / SQL oracle user
Created December 27, 2012 16:45
User permissions on SQL Oracle, in tables. Permissões do usuario nas tabelas do oracle.
SELECT * FROM dba_tab_privs WHERE GRANTEE ='Name of user' ;
@wouerner
wouerner / artisan controller Laravel 4
Last active December 17, 2015 00:59
Commands Artisan Laravel 4
//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"
//Rota para resourceful controller ([nome da rota],[namespace])
Route::resource('artista', 'artista\\ArtistaController');
// executar este comando para registar os namespace das classes criadas.
composer.phar dump-autoload
# Can ignore specific files
.DS_Store
# Use wildcards as well
*~
*.swp
# Can also ignore all directories and files in a directory.
tmp/**/*
// 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
//ignore arquivos de backup do vim
*~
*.swp
git init
git add .
git commit -m "message"
git remote add origin ssh://git@host/foo/foo.git
git push -u origin master
// https://github.com/scrooloose/nerdcommenter
<LEADER> = / se não tiver um padrão pre definindo.
path to PhpCodeAniffer
cd /usr/lib/php/PHP/CodeSniffer/Standards/