Skip to content

Instantly share code, notes, and snippets.

View matheusvill's full-sized avatar

Matheus Vill matheusvill

  • Neoway
  • Florianópolis, SC
View GitHub Profile

Keybase proof

I hereby claim:

  • I am matheusvill on github.
  • I am matheusvill (https://keybase.io/matheusvill) on keybase.
  • I have a public key ASCQERapEPBqY3NSQB-R_oznI7Sdgo3pKSDhPwzazLQbZAo

To claim this, I am signing this object:

@matheusvill
matheusvill / Makefile
Last active August 29, 2015 14:18 — forked from isaacs/Makefile
[SHELL] Criando um Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@matheusvill
matheusvill / gist:569b7f9b5a86f7099b8e
Created April 2, 2015 00:27
[DOCKER] Instalação no MAC
# Adicionar esta linha no ~/.bash_profile para conseguir acesso aos comandos do docker
$(docker-machine env dev)
@matheusvill
matheusvill / gist:b427a556ffc40e8c744a
Created April 1, 2015 00:47
[GIT] Criando uma git tree
git config --global alias.tree "log --graph --full-history --all --color --pretty=tformat:\"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m\""
@matheusvill
matheusvill / gist:7803942
Created December 5, 2013 11:39
[ORACLE] Converter BLOB para String.
SELECT
UTL_RAW.CAST_TO_VARCHAR2(LINHA_CLOB)
FROM
TABELA_CLOB;
@matheusvill
matheusvill / gist:7548652
Created November 19, 2013 16:59
[ORACLE] Quebrar uma string por vírgula em diversas linhas
-- Consulta
SELECT
REGEXP_SUBSTR('PAIS,UF,CIDADE','[^,]+', 1, LEVEL) AS RESULTADO
FROM
DUAL
CONNECT BY REGEXP_SUBSTR('PAIS,UF,CIDADE', '[^,]+', 1, LEVEL) IS NOT NULL;
-- Resultado
1 PAIS
2 UF