Skip to content

Instantly share code, notes, and snippets.

View mmyers1474's full-sized avatar

Matthew Myers mmyers1474

View GitHub Profile
@mmyers1474
mmyers1474 / gist:27486a410ff03909db11b995ccf2f71e
Created July 24, 2017 02:41
Colors and Cursor Movements
Specific tput sub-commands are discussed later.
Direct
Call tput as part of a sequence of commands:
tput setaf 1; echo "this is red text"
Use ; instead of && so if tput errors the text still shows.
Shell variables
config_host: If present the apache virtual host configuration files will be read from a remote server rather than a local path.
config_path: Specifies the path to the folder containing the apache virtual host configuration files.
dump_urls: Reads apache virtual host configuration files and outputs a list of browser compatible urls.
test_urls: Reads a list of browser compatible urls like produced by dump_urls from a file and tests them.
use_proxy: Flag indicating if we want to use a proxy server or not.
proxy_url: The URL for the proxy to use.