This file contains 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 main | |
import ( | |
"github.com/auth0/go-jwt-middleware" | |
"github.com/dgrijalva/jwt-go" | |
"gopkg.in/gin-gonic/gin.v1" | |
) | |
func main() { | |
startServer() |
This file contains 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
{% capture email_title %}Thank you for your purchase! {% endcapture %} | |
{% capture email_body %} | |
{% if requires_shipping %} | |
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent. | |
{% endif %} | |
{% endcapture %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |
This file contains 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
import 'dart:convert'; | |
void main() { | |
final rawJson = '{"nombre": "Logan", "poder": "Regeneración"}'; | |
Map parsedJson = json.decode(rawJson); | |
//print(parsedJson); | |
final wolverine = new Heroe.fromJson(parsedJson); |
This file contains 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
openssl req -new -newkey rsa:4096 -days 365 -x509 -subj "/CN=Kafka-Security-CA" -keyout ca-key -out ca-cert -nodes | |
# ca-cert publico | |
# ca-key privado | |
#ssl port 9093 | |
export SRVPASS=serversecret | |
#para crear un kafka broker certificate | |
#CN callname => el dns publico |
This file contains 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
# Dockerfile References: https://docs.docker.com/engine/reference/builder/ | |
# Start from golang v1.11 base image | |
FROM golang:1.11 | |
#RUN apk add git | |
# Add Maintainer Info | |
LABEL maintainer="Santo <hectorgool@gmail.com>" |
This file contains 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
//_LAMBDA_SERVER_PORT=3000 go run main.go | |
package main | |
import ( | |
"encoding/json" | |
"github.com/aws/aws-lambda-go/lambda" | |
) | |
type Data struct { |
This file contains 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
/* | |
go get -v labix.org/v2/mgo | |
*/ | |
package main | |
import ( | |
"fmt" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"log" |
This file contains 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
hola |
This file contains 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
const path = require('path'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
module.exports = (env) => { | |
const plugins = [ | |
new ExtractTextPlugin("css/[name].[hash].css") | |
] |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Platzi Video</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="http://localhost:9000/js/santo.js"></script> | |
</body> |
NewerOlder