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
# https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md | |
terraform { | |
required_providers { | |
google = { | |
source = "hashicorp/google" | |
version = "~> 4.22" | |
} | |
} | |
} |
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
### disabling pylint inline | |
# pylint: disable=protected-access | |
### typing example in function | |
qname: Optional[str] = None | |
ack_id: Union[int, str] |
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 collections | |
>>> import json | |
>>> d = collections.namedtuple("A", "a b c") | |
>>> d(a=1,b=2,c=3) | |
A(a=1, b=2, c=3) | |
>>> f = d(a=1,b=2,c=3) | |
>>> f | |
A(a=1, b=2, c=3) | |
>>> f._asdict() | |
OrderedDict([('a', 1), ('b', 2), ('c', 3)]) |
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: https://github.com/boto/botocore/blob/develop/botocore/utils.py#L897 | |
import re | |
import sys | |
from botocore.compat import urlsplit | |
def is_valid_endpoint_url(endpoint_url): | |
"""Verify the endpoint_url is valid. | |
:type endpoint_url: string | |
:param endpoint_url: An endpoint_url. Must have at least a scheme | |
and a hostname. |
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
* get cursor in every line: alt+shift+I |
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
__pycache__ | |
dist | |
*.pyc | |
*.swp | |
*.coverage | |
*.egg-info | |
.DS_Store | |
.settings | |
.vscode | |
.pytest_cache |
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
Data Sources | |
============ | |
* https://archive.org/about/ | |
* http://www.botsol.com/Products/GoogleMapsCrawler | |
* https://www.octoparse.com/blog/top-30-free-web-scraping-software/ | |
* https://www.blackhat.com/docs/asia-16/materials/asia-16-Sivakorn-Im-Not-a-Human-Breaking-the-Google-reCAPTCHA-wp.pdf |
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
* https://pages.github.com/ | |
* https://github.com/jsonresume/resume-cli |
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
http://sublime-and-sphinx-guide.readthedocs.io/en/latest/code_blocks.html | |
https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst | |
http://docutils.sourceforge.net/docs/ref/rst/directives.html |
NewerOlder