Skip to content

Instantly share code, notes, and snippets.

View jcbombardelli's full-sized avatar
:shipit:
Ever Focusing

JC Bombardelli jcbombardelli

:shipit:
Ever Focusing
View GitHub Profile
@jcbombardelli
jcbombardelli / testeTransaction.go
Last active March 13, 2018 18:50
Código para executar transação entre carteiras usando o Geth do EthereumClassic
package ethereum
import (
"fmt"
"time"
web3 "github.com/regcostajr/go-web3"
)
func main() {
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
sudo usermod -aG docker ${USER}
@jcbombardelli
jcbombardelli / 20190618 Prodesp.txt
Created June 18, 2019 10:45
Conteúdo Compartilhado do Curso de Hyperledger Prodesp 2019 06 10
Blockchain Academy
Curso Hyperledger - Prodesp
https://pad.riseup.net/p/bahyperledger201906
i3tech --> senha da VM
Abrir Terminal
mkdir ~/Hyperledger
cd ~/Hyperldeger
Blockchain Academy
Curso Hyperledger - Prodesp
https://pad.riseup.net/p/bahyperledger201906
Resumo dia anterior
https://gist.github.com/jcbombardelli/f06082a0f983e1d5713617ffadc8c0fb
i3tech --> senha da VM
@jcbombardelli
jcbombardelli / environment-golang.sh
Last active January 22, 2020 19:37
Configure Golang for Ubuntu 18.x
echo 'export GOROOT=/usr/local/go' >> ~/.profile
echo 'export GOPATH=$HOME/Desenv/go' >> ~/.profile
echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile
source ~/.profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script>
let salarioBruto = 5000;
class Recebivel {
constructor(tipo, idSistContratos) {
this.acao = new Acao(tipo, idSistContratos);
}
serialize() {
return JSON.stringify(this, (key, value) => {
if (value !== null) return value
})
FROM php:7.3-cli
RUN pecl install swoole \
&& docker-php-ext-enable swoole
COPY index.php /var/www
EXPOSE 9501
ENTRYPOINT [ "php","/var/www/index.php","start" ]
FROM golang:1.13-alpine as builder
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
RUN go build -o /go/bin/app
@jcbombardelli
jcbombardelli / deployment.yaml
Created April 28, 2020 12:36
Modelo de Deployment.yaml para k8s no curso da code.education - Aula: Trabalhando com Deployments
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-nginx
spec:
replicas: 3
selector:
matchLabels:
app: hello-nginx
template: