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
import os, sys, time, json | |
from base64 import b64decode, b64encode | |
from io import BytesIO | |
from axolotl.kdf.hkdfv3 import HKDFv3 | |
from axolotl.util.byteutil import ByteUtil | |
import binascii | |
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from cryptography.hazmat.backends import default_backend | |
import mimetypes |
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
#!./venv/bin/python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Cria um serviço pra receber notificações WebHook de COMMIT do Bitbucket e envia para o MandeUmZap (M1Z) | |
''' | |
import os | |
import asyncio | |
import pprint | |
import aiohttp | |
from aiohttp import web |
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
### | |
#ref UNICODE chars | |
#https://en.wikipedia.org/wiki/Box-drawing_character | |
import pyqrcode | |
def qr_doble(txt): | |
print(txt.replace('0','\U00002588\U00002588').replace('1',' ')) | |
def half_char(u, d): | |
half_matrix = { |
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
#!/usr/bin/php -q | |
## Local | |
# /usr/local/elastix/addons_scripts | |
<?php | |
function curl_post_json($url, $post = NULL, $options = array(), $userpass = NULL) | |
{ | |
$post_string = $post; | |
$defaults = array( |