Skip to content

Instantly share code, notes, and snippets.

JuanPablo juanpabloaj

Block or report user

Report or block juanpabloaj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View d32_pro.ino
// mapping suggestion for ESP32, e.g. LOLIN32 D32 PRO
// BUSY -> 15
// RST -> 2
// DC -> 0
// CS -> 5
// CLK -> SCK(18)
// DIN -> MOSI(23)
// GND -> GND
// 3.3V -> 3.3V
// note: use explicit value for CS
@juanpabloaj
juanpabloaj / main.go
Last active Aug 19, 2019
go template example
View main.go
package main
import (
"os"
"text/template"
"time"
)
type Todo struct {
Name string
@juanpabloaj
juanpabloaj / neovim.spec
Last active Aug 6, 2019
neovim centos 6 spec
View neovim.spec
# yum install -y rpm-build rpmdevtools yum-utils centos-release-scl-rh
# rpmdev-setuptree
# mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
# spectool -g -R rpmbuild/SPECS/neovim.spec
# yum-builddep -y rpmbuild/SPECS/neovim.spec
# source scl_source enable devtoolset-6
# rpmbuild -ba rpmbuild/SPECS/neovim.spec
%define build_timestamp %(date +"%Y%m%d%H%M")
@juanpabloaj
juanpabloaj / main.go
Last active Aug 3, 2019
gobuffalo/plush example
View main.go
package main
import (
"fmt"
"time"
"github.com/gobuffalo/plush"
)
func main() {
@juanpabloaj
juanpabloaj / Dockerfile
Created Aug 2, 2019
dockerfile compile nvim centos
View Dockerfile
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
View stockquote.wsdl
<?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 Feb 26, 2020
traefik consul header matching
View docker-compose.yaml
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:
View docker-compose.yaml
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 Mar 1, 2019
go test user_test.go user.go
View user.go
package user
import "fmt"
func ShowUsers() int {
return 0
}
func main() {
fmt.Println("vim-go")
You can’t perform that action at this time.