Skip to content

Instantly share code, notes, and snippets.

View kelvearagao's full-sized avatar

Kelve Aragão kelvearagao

  • XP Inc
  • São Paulo - SP
View GitHub Profile
@kelvearagao
kelvearagao / gist:76e5d4450649eff603eb
Created November 26, 2015 17:44
Link to read book Maven by Example
http://books.sonatype.com/mvnex-book/reference/index.html
@kelvearagao
kelvearagao / laravel_pkg_cmd.sh
Last active November 26, 2015 18:33
Laravel 4.2 commands for the development of packages
# Migrate
sudo php artisan migrate --bench="aeatour/icarus"
# Rollback
sudo php artisan migrate:rollback --env='local'
# Publish
php artisan asset:publish --bench="aeatour/icarus"
# Autoload
@kelvearagao
kelvearagao / date_from_en_to_br.php
Last active November 26, 2015 19:21
Conversor de data no formato EN para o formato BR.
<?php
/**
* Receives a date in the EN format (Y-m-d) and renturns in the BR format (d/m/Y).
*
* @param string $date - format 'Y-m-d'.
* @return string - format 'd/m/Y'.
*/
function dateFromEnToBr($date)
{
return date('d/m/Y', strtotime($date));
@kelvearagao
kelvearagao / div_editable.js
Created December 1, 2015 15:13
DIV editable!
$('.editable').each(function(){
this.contentEditable = true;
});
@kelvearagao
kelvearagao / gist:8ef11ff1808c99d40367
Created December 23, 2015 12:47
Linux Documentation Project Guides
http://tldp.org/LDP/guides.html
@kelvearagao
kelvearagao / kill_process.sh
Created December 26, 2015 00:38
Matando processos
fuser -v 8080/tcp
kill -9 17459
@kelvearagao
kelvearagao / dateEn.js
Created January 6, 2016 18:15
Função javascript para converter a data do formato brasileiro para formato inglês.
/**
* Recebe um data no formato dd/mm/yyyy e retorna yyyy-mm-dd.
*
* @param string date - Data no formato 'dd/mm/yyyy'.
* @return string - Data no formato 'yyyy-mm-dd'.
*/
function dateToEN(date)
{
return date.split('/').reverse().join('-');
}
@kelvearagao
kelvearagao / gist:3e1820beef91a01b0c1a
Created March 7, 2016 16:23
How to build your own team chat in five days (angular, nodejs)
http://fdietz.github.io/2015/04/13/day-1-how-to-build-your-own-team-chat-in-five-days.html
@kelvearagao
kelvearagao / dbdesign
Created June 24, 2016 12:17
db design link
http://www.tomjewett.com/dbdesign/dbdesign.php
@kelvearagao
kelvearagao / gist:b454ebed7466a8edbb19ad439d04f234
Created December 9, 2016 18:17
Fechar processo no windows pesquisando a porta
C:\Users\username>netstat -o -n -a | findstr 0.0:3000
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116
C:\Users\username>taskkill /F /PID 3116