Skip to content

Instantly share code, notes, and snippets.

View nenriquez's full-sized avatar

Nicolas Enriquez nenriquez

  • Kidloom
  • Buenos Aires
View GitHub Profile
@nenriquez
nenriquez / encrypt.php
Last active June 19, 2020 14:50
PYTHON / PHP compatible AES encryption.
<?php
/**
* Encrypt data using AES Cipher (CBC) with 128 bit key
*
* @param type $key - key to use should be 16 bytes long (128 bits)
* @param type $iv - initialization vector
* @param type $data - data to encrypt
* @return encrypted data in base64 encoding with iv attached at end after a :
*/
@nenriquez
nenriquez / ds_backup_importer.py
Last active September 6, 2017 14:53
App Engine's Datastore Backup to localhost importer
"""
# App Engine's Datastore Backup to localhost importer.
## Getting backup files
HOW TO USE
1) Dowloads your backup files from your bucket to this file's directory:
```
gsutil -m cp -r gs://<your_bucket>/datastore_backup_datastore_backup_* .
```
2) Start your server.
@nenriquez
nenriquez / livemap.py
Created August 1, 2017 20:02 — forked from dbr/livemap.py
Live Google Map marker update with Tornado
"""Playing with tornado.websocket, to add markers to a Google Map using WebSockets
$ pip install tornado
$ python livemap.py --port=8888
Open http://localhost:8888 in one window
Each time http://localhost:8888/ping is opened in a second window, a
new marker is added to the map (at a random location)
@nenriquez
nenriquez / gist:7484340
Created November 15, 2013 13:30
Notas de reunión de integración con billin.
suscripcion:
SONDEOS
- Plataforma NCP
Esta conectada a proovedores en la zona para hacer billing y sms.
Alta y baja de suscripciones. Mantenerlo vivo, cobro recurrente.
- ABM NPC
ABM que inicia una accion de cobros. Donde se puede programar los mismos. ETc.
A definir, quien va usar este ABM. Una accion de cobros tiene un modelo de suscripcion tradicional.
Te cobro. Luego te envio sms con que contenidos te voy a dar o recomendaciones. Hoy e dia tenemos un
@nenriquez
nenriquez / gist:7473242
Created November 14, 2013 19:52
Sobre el precio de GAE
https://developers.google.com/appengine/pricing