A simple way to test this is to run wait_for_port.sh against localhost on a random unused port:
$ .ci/wait_for_port.sh localhost 12345
.....
Then in another shell, listen on that port:
$ nc -l 12345
| Sub DumpTints() | |
| Dim names As Variant, i As Long, c As Long, nm As String | |
| names = Array("20% - Accent1", "40% - Accent1", "60% - Accent1", _ | |
| "20% - Accent2", "40% - Accent2", "60% - Accent2", _ | |
| "20% - Accent3", "40% - Accent3", "60% - Accent3", _ | |
| "20% - Accent4", "40% - Accent4", "60% - Accent4", _ | |
| "20% - Accent5", "40% - Accent5", "60% - Accent5", _ | |
| "20% - Accent6", "40% - Accent6", "60% - Accent6") | |
| Cells(1, 1) = "Style": Cells(1, 2) = "Hex (RRGGBB)" | |
| For i = 0 To UBound(names) |
A simple way to test this is to run wait_for_port.sh against localhost on a random unused port:
$ .ci/wait_for_port.sh localhost 12345
.....
Then in another shell, listen on that port:
$ nc -l 12345
| import sys | |
| UTF8Writer = codecs.getwriter('utf8') | |
| class SafeStdoutWriter(UTF8Writer): | |
| """ A safe stdout writer class which expects to output only unicode string objects | |
| but if it encounters a decoding error (because the given string is not unicode but | |
| a normal 'str') it will attempt to convert it to unicode and try again. If that | |
| conversion fails we fall back to decoding iso-8859-1 which is the default codec | |
| the CSVOutput writer uses. |
I hereby claim:
To claim this, I am signing this object:
| # This is a list of Circle CI environment variables, pulled on Feb 9th 2017 @ 00:10 | |
| # This can be useful for example when running tests inside a docker and you wish to | |
| # pass environment variables into the docker via docker-compose. That's why I made | |
| # this list by starting a build with SSH enabled, and executing: | |
| # | |
| # ubuntu@box103:~$ env|grep ^CI|cut -d\= -f1|sort -u | |
| CI | |
| CI_PULL_REQUEST | |
| CI_PULL_REQUESTS |
| user www-data; | |
| worker_processes auto; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; | |
| } | |
| import threading | |
| import time | |
| from functools import wraps | |
| FN_LOCKS = {} | |
| class Lock(object): | |
| def __init__(self, func_id): | |
| global FN_LOCKS |
| import time | |
| timings = ( | |
| (1, 'up'), | |
| (2, 'down'), | |
| (7, 'up'), | |
| (8, 'down'), | |
| (13, 'up'), | |
| (14, 'down'), | |
| (19, 'up'), |
| container_commands: | |
| 01setup_swap: | |
| command: "bash .ebextensions/setup_swap.sh" |
| #!/bin/bash | |
| SWAPFILE=/var/swapfile | |
| SWAP_MEGABYTES=2048 | |
| if [ -f $SWAPFILE ]; then | |
| echo "Swapfile $SWAPFILE found, assuming already setup" | |
| exit; | |
| fi |