import os
import sys
import shutil
from datetime import datetime
from PIL import Image
def get_timestamped_directory():
# Obtiene la fecha y hora actual
Aquí tienes un script en Python que realiza todas las tareas que has descrito:
import os
import sys
import datetime
from PIL import Image
import zipfile
def process_image(image_path, my_image_width):
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 <[email protected]>" |
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 |
NewerOlder