View json vouchers dani
2018/05/09 21:35:58 Request received from body
2018/05/09 21:35:58 [
{
"id": "5ae9cc30cc922d08eab5d47d",
"creationDate": 1525271600000,
"updateDate": -62135596800000,
"startDate": 1532988120000,
"endDate": 1533074520000,
"customerId": "5849ebe9cc922d4efdbf00e4",
"partyId": "5adfaa31cc922d5c7853f988",
View worker.form.tsx
const TestaCPFFunction = (strCPF) => {
let Soma;
let Resto;
Soma = 0;
if (strCPF == "00000000000") {
return false
}
for (let i = 1; i <= 9; i++) {
Soma = Soma + parseInt(strCPF.substring(i - 1, i)) * (11 - i);
View gist:a40dc2924e71b28d26d03e103565c3c3
package image
import (
"io"
"os"
"strings"
"archive/tar"
"bytes"
"io/ioutil"
View Dockerfile
FROM alpine:3.4
RUN apk add --no-cache ca-certificates apache2-utils
ADD ./dist/bin/goapp /bin/goapp
CMD ["/bin/goapp"]
View deploy_docker.go
package cmd
import (
"bitbucket.org/cescoferraro/api/util"
"github.com/fatih/color"
"github.com/spf13/cobra"
)
var (
logger = util.Block{
View Dockerfile.dev
# GLIDE INSTALLATION
#WORKDIR /tmp
# RUN curl -sL https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz | tar xvz
# RUN chmod +x /tmp/linux-amd64/glide
# RUN mv /tmp/linux-amd64/glide /usr/local/bin/glide
# RUN chmod +x /usr/local/bin/glide
# RUN glide install
View kubelet wrapper
[Unit]
Description=Kubernetes Kubelet
After=docker.service
Requires=docker.service
[Service]
User=root
EnvironmentFile=/home/core/environment
Environment=KUBELET_VERSION=v1.3.6_coreos.0
Environment="RKT_OPTS=--volume=kubeconfig,kind=host,source=/home/core/.kube/config \
View Dockerfile
FROM ubuntu:14.04
MAINTAINER Francesco Ferraro <francescoaferraro@gmail.com>
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:masterminds/glide
RUN DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:ubuntu-lxc/lxd-stable
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git
View romulus.yaml
---
apiVersion: v1
kind: Service
metadata:
name: tech-blog
namespace: blog
labels:
name: tech-blog
romulus/route: public
romulus/lb: vulcan
View fdf
core@coreos2 ~ $ export ETCDCTL_CERT_FILE=/home/core/ssl/etcd1.pem
core@coreos2 ~ $ export ETCDCTL_KEY_FILE=/home/core/ssl/etcd1-key.pem
core@coreos2 ~ $ export ETCDCTL_CA_FILE=/home/core/ssl/ca.pem
core@coreos2 ~ $ export ETCDCTL_ENDPOINT=https://${MASTER_PRIVATE}:2379,https://${DATABASE_PRIVATE}:2379