Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| ##FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' | |
| # triple space a file |
| #!/usr/bin/env python | |
| ''' | |
| Update/create a page containing a table w/ Confluence REST API | |
| ''' | |
| import requests | |
| import json | |
| # Get api credentials from local config file |
| #!/usr/bin/env python | |
| from __future__ import with_statement # needed for python 2.5 | |
| from fabric.api import * | |
| from fabric.contrib.console import confirm | |
| # ================================================================ | |
| # NOTE: | |
| # using this fabfile expects that you have the python utility | |
| # fabric installed locally, ssh access to reamea.com, and your | |
| # ssh public key associated with the account 'mboza@reamea.com' |
| #cloud-config | |
| package_update: true | |
| package_upgrade: true | |
| packages: | |
| # Update the apt package index and install packages needed to use the Docker and Kubernetes apt repositories over HTTPS | |
| - apt-transport-https | |
| - ca-certificates | |
| - curl | |
| - gnupg | |
| - lsb-release |
URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
| ### prerequisites | |
| sudo yum groupinstall "Development Tools" | |
| git --version | |
| gcc --version | |
| bash --version | |
| python --version # (system) | |
| sudo yum install -y openssl-devel readline-devel zlib-devel | |
| sudo yum update | |
| ### install `pyenv` |
| 'Update or create a stack given a name and template + params' | |
| from __future__ import division, print_function, unicode_literals | |
| from datetime import datetime | |
| import logging | |
| import json | |
| import sys | |
| import boto3 | |
| import botocore |