View dynamo_client.py
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
""" | |
Dev: Franco Gil. | |
DynamoDB Documentation: | |
boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb | |
docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html | |
** The Front End are check the Optional & Non - Optional data requeriments. ** | |
""" |
View dual_pivot_quick_sort.c
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
/* | |
Code Name: dual_pivot.c | |
Developer: franco Gil | |
Date: 18*2*17 | |
Edited: 1*12*18 | |
Concept: Dual pivot Quicksort. (Yarovlavskiy) | |
--------------------------------------------------------------------- | |
Compilation way # 1: |
View insertion_l.c
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
/* | |
* insercion.l.c | |
* franco Gil | |
* date: 23*3*17 | |
* Insertion sort algorithm, using dynamic memory, and | |
* self NODES for construct a simple linked LIST. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
View sqliclient.py
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
""" | |
SQL client to create or consuting a DB. | |
Dev: Franco Gil. | |
""" | |
import os | |
import json | |
from time import gmtime, strftime |
View trigger_slug_creator.sql
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
-- Date: May 12, 2020 | |
-- | |
-- RDBMS: Postgres. | |
-- Procedural Language: PL / pgSQL. | |
-- Given two params. create a slug (url identification) as new attr. for a row. | |
-- | |
-- Input: (a, a) | |
-- Output: 'a-a', if the tuple (a, a) do not exist. | |
-- | |
-- if the tuple exist (a, a), then |
View deploy_ssl_nginx_react_yarn.sh
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
# Steps to install the react Project | |
# Requirements: | |
# - ubuntu 18.04 ( I do not test it on 20.04 ). | |
# - git | |
# - Nginx | |
# - Node | |
# - pm2 | |
# - Certbot |
View ses_sns_lambda_dynamodb.js
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
/** | |
* Date: June 16th, 2020 | |
* Dev: franco@systemagency.com | |
* | |
* > Code triggered by the lambda function to continue with SES Stats. | |
* > Including the original email headers on delivery notifications. | |
* | |
* Code taken from: | |
* > https://aws.amazon.com/premiumsupport/knowledge-center/lambda-sns-ses-dynamodb/ | |
* |
View deploy_nginx_fastapi_systemd.sh
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
# References | |
# https://majornetwork.net/2020/10/webhook-listener-with-fastapi/ | |
# https://majornetwork.net/2020/11/systemd-setup-for-fastapi-webhook-listener/ | |
git clone https://gitlab.com/realFranco/some-rest-service.git | |
cd into_the_folder | |
nano .env | |
sudo apt-get install python3-venv | |
python3 -m venv env | |
source env/bin/activate |
View stage-fonasa-service-type.json
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
{ | |
"service_type" : [ | |
{ "code" : "0108000", "description" : "Teleconsulta"}, | |
{ "code" : "0101c01", "description" : "Visita Médica Presencial" }, | |
{ "code" : "0101c02", "description" : "Atención Presencial" }, | |
{ "code" : "0307c01", "description" : "Toma de Muestra Lab" }, | |
{ "code" : "0108c01", "description" : "Atención de Teleconsulta" }, | |
{ "code" : "0307c02", "description" : "Toma de Muestra PCR" }, | |
{ "code" : "2601000", "description" : "Procedemiento de Enfermería" }, | |
{ "code" : "2601c01", "description" : "Vacunación" } |
View stage-medical-agreement.json
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
{ | |
"medical_agreement" : { | |
"client" : "ECR Salud", | |
"care_provider" : [ | |
"ECR Salud", | |
"Inmunomedica", | |
"Centro Médico de Quilicura", | |
"UCM", | |
"Medismart", | |
"Teledoc", |
OlderNewer