This is a tutorial for the compilation and installation of the Nginx firewall module: https://github.com/ADD-SP/ngx_waf/
$ nginx -v
This is a tutorial for the compilation and installation of the Nginx firewall module: https://github.com/ADD-SP/ngx_waf/
$ nginx -v
import requests | |
def postToFacebook(post): | |
fb_url = 'https://graph.facebook.com/{}/feed'.format('FANPAGE_ID') | |
data = {} | |
data['link'] = post.url | |
data['message'] = post.texto | |
data['access_token'] = 'FANPAGE_ACCESS_TOKEN' | |
# Validación de Cédula y RUC para Ecuatorianos en Python compatible con 2.7 y 3.4 en adelante. | |
# Ligeramente modificado para validar las cedulas 23 (Sto Dgo, :D soy de ahí) y 24 (Santa Elena). | |
# Tomado de aquí: https://fecyman10.wordpress.com/2014/05/01/validar-cedula-y-ruc-ecuatorianos-en-python/ | |
def verificar(nro): | |
l = len(nro) | |
if l == 10 or l == 13: # verificar la longitud correcta | |
cp = int(nro[0:2]) | |
if cp >= 1 and cp <= 24: # verificar codigo de provincia | |
tercer_dig = int(nro[2]) |