Skip to content

Instantly share code, notes, and snippets.

View luizpaulogodoy's full-sized avatar

Luiz Paulo Godoy luizpaulogodoy

  • Bleu
  • Recife, Pernambuco, Brazil
View GitHub Profile
package main
import (
"crypto/hmac"
"crypto/sha512"
"encoding/hex"
"fmt"
"io/ioutil"
"log"
"net/http"
@luizpaulogodoy
luizpaulogodoy / BitRecife Private Request
Created May 8, 2019 14:01
BitRecife Private Request example
package main
import (
"crypto/hmac"
"crypto/sha512"
"encoding/hex"
"fmt"
"io/ioutil"
"log"
"net/http"
version: '3'
services:
app:
build: .
working_dir: /go/src/github.com/mesainc/sode-combination-service
volumes:
- .:/go/src/github.com/mesainc/sode-combination-service
networks:
- rabbitmq_default
external_links:
##############################################################################
## Development Dockerfile for Golang Applications ##
##############################################################################
# Start from a Debian image with the 1.9.2 version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang:latest
# Create Working Directory
RUN mkdir -p /go/src/github.com/luizpaulogodoy/app-service
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim " set the runtime path to include Vundle
call vundle#begin() " and initialize
" Keep Plugin commands between vundle#begin/end.
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
@luizpaulogodoy
luizpaulogodoy / .vimrc
Last active June 11, 2018 21:46 — forked from henriquemenezes/.vimrc
.vimrc
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim " set the runtime path to include Vundle
call vundle#begin() " and initialize
" Keep Plugin commands between vundle#begin/end.
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'

Deploy using git tag

Update VERSION file

Check current tag version

$ git tag

Create new tag

@luizpaulogodoy
luizpaulogodoy / IGBE cities
Created August 9, 2017 17:58
List of all brazilian cities and UF
[
{
"NomeMunic": "ALTA FLORESTA D'OESTE",
"UF": "Rondônia",
"CodUF": "11",
"Codmun": "110001"
},
{
"NomeMunic": "ARIQUEMES",
"UF": "Rondônia",
@luizpaulogodoy
luizpaulogodoy / scrollcirective
Created April 16, 2015 15:20
Scroll directive
@app.directive "scroll", ['$window', ($window) ->
(scope, element, attrs) ->
angular.element($window).bind "scroll", ->
if this.pageYOffset >= 400
scope.visibleGotoTop = true
else
scope.visibleGotoTop = false
scope.$apply()
]