I hereby claim:
- I am ssoto on github.
- I am ssoto (https://keybase.io/ssoto) on keybase.
- I have a public key ASDIMePFgKn99KpRuQSqSIKEWZYNf0eL3wbuDdsWgF_qSwo
To claim this, I am signing this object:
import qrcode | |
import qrtools | |
import uuid | |
def create_qr_code(qr_content, qr_path): | |
qr = qrcode.QRCode(version=1, box_size=10, border=5) | |
qr.add_data(qr_content) | |
qr.make(fit=True) | |
imagen_qr = qr.make_image(fill_color="black", back_color="white") |
I hereby claim:
To claim this, I am signing this object:
sudo apt-get install software-properties-common && \ | |
sudo add-apt-repository ppa:deadsnakes/ppa && \ | |
sudo apt-get update && \ | |
sudo apt-get install python3.6 python3.6-dev |
def foo_function(a: int, b: int) -> int: | |
return a + b | |
# First ussage example | |
result_a = foo_function(4, 10) | |
type(result_a) | |
>>> int | |
print(result_a) | |
>>> 14 |
import datetime | |
import json | |
PROJECT = 'sparta' | |
KIBANA_URL = 'http://elastic:9200/{}-'.format(PROJECT) | |
def send_to_kibana(): | |
headers = {'Content-Type': 'application/json', | |
'Accept': 'text/plain'} | |
today = data['out'].strftime('%Y.%m.%d') |
from usefull_decorators import command_decorator | |
logger = logging.getLogger('Command') | |
logger.setLevel(logging.DEBUG) | |
logger.addHandler(logging.StreamHandler()) | |
# decorator needs a logger object | |
@command_decorator(logger) | |
def f_example(a): | |
print("managing proces... with args: %s" %(a)) |
#!python | |
# -*- coding: utf-8 -*- | |
import importlib | |
import os | |
from timeit import default_timer as timer | |
import logging | |
from my_module import config | |
class benchmark(object): |
# -* coding: utf-8 *- | |
import json | |
import traceback | |
import falcon | |
class Resource(object): | |
def __init__(self): |
#!/bin/bash | |
POS=2 | |
LEN=16 | |
SECONDS_MAX=10 | |
while true; do | |
str1=$( echo -n `date +\"%s\"` | md5sum | md5sum ) |
Exploids en su blog para tirar wordpress [@jorgewebsec][https://twitter.com/JorgeWebsec]
borrar meta que pueda decir CMS, tersión, etc si se usa un CMS.