Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
juanpabloaj / .gitignore
Last active Oct 23, 2020
go http service with concurrency
@juanpabloaj
juanpabloaj / Dockerfile
Last active Jun 4, 2020
phoenix gitlab monitor and haproxy
View Dockerfile
FROM haproxy:1.7
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
@juanpabloaj
juanpabloaj / Dockerfile
Created May 4, 2020
haproxy strip path prefix
View Dockerfile
FROM haproxy:1.7
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
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 May 27, 2020
traefik consul header matching
You can’t perform that action at this time.