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/env python3 | |
# | |
# Helper script to do major version upgrades of a cloudnative-pg based | |
# PostgreSQL cluster. | |
# | |
# Usage: python3 upgrade-pg.py <cluster-name> <new-pg-version> | |
# | |
# Example: python3 upgrade-pg.py my-backend-db 17.0 | |
# | |
# Make sure to include major and minor version in the pg version. |
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
""" | |
Download handler for HTTP/2 supporting proxy CONNECT over HTTP/1. | |
You can use this by configuring it in the spider settings: | |
DOWNLOAD_HANDLERS = { | |
'https': 'scrapy_h2_proxy.H2DownloadHandler', | |
} | |
Tested with Scrapy 2.5.0. |
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/env ruby | |
# | |
# Example of parsing a remote XML stream. | |
# | |
# Fetches data from an HTTP endpoint, and processes it bit by bit, without | |
# loading the whole file into memory. | |
# | |
# This example shows recent articles from the W3C blog feed. | |
# | |
require 'nokogiri' |