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
#!/bin/bash | |
function _template(){ | |
local OPTION1 | |
local OPTION2 | |
while [ "$#" -gt 0 ]; do | |
case "$1" in | |
-o1|--option1) echo o1; OPTION1='true' ;; | |
-o2|--option2) echo o2; OPTION2='true' ;; | |
-h|--help) echo "listem get all instances tagged with '${QH_APP_TAG}' |
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 | |
from time import time | |
import threading | |
import urllib3 | |
timeout = urllib3.Timeout(total=5.0) # see note https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.html#urllib3.util.Timeout | |
header = { 'Cache-Control': 'no-cache' } | |
http = urllib3.PoolManager(timeout=timeout) | |
def time_request(url): |