Skip to content

Instantly share code, notes, and snippets.

View azhtom's full-sized avatar
Coding...

Daniel Soria azhtom

Coding...
View GitHub Profile
@azhtom
azhtom / mp
Created November 25, 2016 23:02
mp
preference = {
'items': [
{
'title': 'TIcket Test',
'quantity': 1,
'currency_id': 'PEN',
'unit_price': 100.0
}
],
'payer': [
CREATE TABLE "public"."users" (
"id" int4 NOT NULL,
"fist_name" varchar(60) NOT NULL COLLATE "default",
"last_name" varchar(60) NOT NULL COLLATE "default",
"email" varchar(100) NOT NULL COLLATE "default",
"facebook_id" varchar(60) COLLATE "default",
"google_id" varchar(60) COLLATE "default"
)
@azhtom
azhtom / digicert_to_aws.sh
Created October 16, 2021 04:34 — forked from PuKoren/digicert_to_aws.sh
Upload Digicert certificate to Amazon Web Services (AWS)
#!/bin/sh
# $1: certificate name on AWS
# $2: certificate file (crt)
# $3: private key file (pem)
# $4: DigicertCA2 path
# $5: TrustedRoot path
# Download certificates on Digicert (Other formats > Individual crt files with a .cer extension)
# Generate intermediate cert for AWS (not an option, many browsers requires it it). Intermediate is concatenation of CA and Root certs
(openssl x509 -inform PEM -in $4; openssl x509 -inform PEM -in $5) > Intermediate.cer