NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| import boto3 | |
| def generate_password(length=16): | |
| """Generate a random alphanumeric password. | |
| More recipes and best practices can be found here: | |
| https://docs.python.org/3/library/secrets.html#recipes-and-best-practices. | |
| Args: |
| { | |
| "A": "Alfa", | |
| "B": "Bravo", | |
| "C": "Charlie", | |
| "D": "Delta", | |
| "E": "Echo", | |
| "F": "Foxtrot", | |
| "G": "Golf", | |
| "H": "Hotel", | |
| "I": "India", |
| # Name: Makefile | |
| # Author: <insert your name here> | |
| # Copyright: <insert your copyright message here> | |
| # License: <insert your license reference here> | |
| # DEVICE ....... The AVR device you compile for | |
| # CLOCK ........ Target AVR clock rate in Hertz | |
| # OBJECTS ...... The object files created from your source files. This list is | |
| # usually the same as the list of source files with suffix ".o". | |
| # PROGRAMMER ... Options to avrdude which define the hardware you use for |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
LinkedIn is even more clickbait than Facebook nowadays. Adios. 💣
Visit https://www.linkedin.com/feed/following/
Scroll down to load all of your contacts
Open developer console, run the following
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
| /* Useful celery config. | |
| app = Celery('tasks', | |
| broker='redis://localhost:6379', | |
| backend='redis://localhost:6379') | |
| app.conf.update( | |
| CELERY_TASK_RESULT_EXPIRES=3600, | |
| CELERY_QUEUES=( | |
| Queue('default', routing_key='tasks.#'), |
| #!/usr/bin/env python | |
| # | |
| # automated ESP8266 programming station | |
| # monitors for inserted serial devices and calls esptool to flash them | |
| # written to mass flash entire batches of ESP8266 devices quickly | |
| # $ pip install esptool pyudev | |
| # | |
| # 2016.06.16 darell tan | |
| # |
| import json | |
| from .utils import copy_body | |
| class JSONRequest(dict): | |
| def __init__(self, request): | |
| try: | |
| data = json.loads(copy_body(request)) | |
| self.is_valid = True |