This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ethereum | |
| import ( | |
| "fmt" | |
| "time" | |
| web3 "github.com/regcostajr/go-web3" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Blockchain Academy | |
| Curso Hyperledger - Prodesp | |
| https://pad.riseup.net/p/bahyperledger201906 | |
| i3tech --> senha da VM | |
| Abrir Terminal | |
| mkdir ~/Hyperledger | |
| cd ~/Hyperldeger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Blockchain Academy | |
| Curso Hyperledger - Prodesp | |
| https://pad.riseup.net/p/bahyperledger201906 | |
| Resumo dia anterior | |
| https://gist.github.com/jcbombardelli/f06082a0f983e1d5713617ffadc8c0fb | |
| i3tech --> senha da VM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <script> | |
| let salarioBruto = 5000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Recebivel { | |
| constructor(tipo, idSistContratos) { | |
| this.acao = new Acao(tipo, idSistContratos); | |
| } | |
| serialize() { | |
| return JSON.stringify(this, (key, value) => { | |
| if (value !== null) return value | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: hello-nginx | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: | |
| app: hello-nginx | |
| template: |
OlderNewer