Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
juanpabloaj / main.go
Last active August 3, 2019 23:42
gobuffalo/plush example
package main
import (
"fmt"
"time"
"github.com/gobuffalo/plush"
)
func main() {
@juanpabloaj
juanpabloaj / Dockerfile
Created August 2, 2019 22:41
dockerfile compile nvim centos
FROM centos:6
RUN yum install -y centos-release-scl-rh && \
yum install -y devtoolset-6-gcc rh-git29 \
rh-python36 python27 \
libtool autoconf automake cmake \
gcc gcc-c++ make pkgconfig \
unzip patch gettext
ENV HOME /root
<?xml version="1.0"?>
<definitions name="StockQuote"
targetNamespace="http://example.com/stockquote/definitions"
xmlns:tns="http://example.com/stockquote/definitions"
xmlns:xsd1="http://example.com/stockquote/schemas"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://example.com/stockquote/schemas"
@juanpabloaj
juanpabloaj / .gitignore
Last active May 27, 2020 00:37
traefik consul header matching
tags
version: '3'
services:
traefik:
image: traefik # The official Traefik docker image
command: --api -c traefik.toml #--docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
version: '3'
services:
traefik:
image: traefik # The official Traefik docker image
command: --api -c traefik.toml #--docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
@juanpabloaj
juanpabloaj / user.go
Created March 1, 2019 16:29
go test user_test.go user.go
package user
import "fmt"
func ShowUsers() int {
return 0
}
func main() {
fmt.Println("vim-go")
@juanpabloaj
juanpabloaj / main.go
Last active February 28, 2019 01:47
show mux routes
package main
import (
"encoding/json"
"log"
"net/http"
"github.com/gorilla/mux"
)
@juanpabloaj
juanpabloaj / .gitignore
Last active May 31, 2023 08:42
go api rest example
*.db
api_rest
@juanpabloaj
juanpabloaj / README.md
Created February 4, 2019 16:24
hello world with python and flask

Install dependencies

pip install Flask

Run

python service.py

Usage