- remove boto in
requirements.txt - remove boto in
setup.py - remove boto in
test_bn.py test_bn.py- L22
boto.s3.connection import S3Connection-> migrate - L48
boto.s3.tagging - L572
boto.s3.connection.OrdinaryCallingFormat
- L22
- L584
boto.s3.connection.OrdinaryCallingFormat
in http, it's implemented here
check function send
- case ack_level == ack_level_t::None -> increase then decrease
- case y, increase before line amqp::publish_with_confirm (L216), decrease after check rc < 0
- case y false, increase before amqp::publish_with_confirm (L228), decrease after amqp::publish_with_confirm (???)
This file contains hidden or 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
| hello world |
This file contains hidden or 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 socket | |
| from redis.client import Redis | |
| from redis.connection import Connection, ConnectionPool | |
| from redis._compat import iteritems | |
| class ProxyConnection(Connection): | |
| def __init__(self, host='localhost', port=6379, db=0, password=None, | |
| socket_timeout=None, socket_connect_timeout=None, | |
| socket_keepalive=False, socket_keepalive_options=None, |
- Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
- Fetch the current Authy snap
This file contains hidden or 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
| from cryptography import x509 | |
| from cryptography.hazmat.backends import default_backend | |
| from cryptography.hazmat.primitives import hashes, serialization | |
| from cryptography.hazmat.primitives.asymmetric import rsa | |
| from cryptography.x509.oid import NameOID | |
| import datetime | |
| import uuid | |
| one_day = datetime.timedelta(1, 0, 0) | |
| private_key = rsa.generate_private_key( | |
| public_exponent=65537, |
This file contains hidden or 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
| ssh-keygen -a 101 -t ed25519 -f ~/.ssh/id_ed25519 -C "[email protected]" |
NewerOlder
