Skip to content

Instantly share code, notes, and snippets.

View wouerner's full-sized avatar

Wouerner Brandão wouerner

View GitHub Profile
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 / 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
# Use wildcards as well
# Can also ignore all directories and files in a directory.
//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
git init
git add .
git commit -m "message"
git remote add origin ssh://git@host/foo/foo.git
git push -u origin master
<LEADER> = / se não tiver um padrão pre definindo.
path to PhpCodeAniffer
cd /usr/lib/php/PHP/CodeSniffer/Standards/