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
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 443 | |
filter_chains: | |
- filters: |
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
import org.apache.logging.log4j.Logger; | |
import org.apache.logging.log4j.core.util.Constants; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
import java.net.InetAddress; | |
import java.net.URL; |
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/python | |
# $ echo bcefgG il | python 14seg.py | |
# | |
# | | | | |
# -- -- | |
# | | | | |
import string | |
import sys |
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
# some ideas from https://mp.weixin.qq.com/s/iBLrrXHvs7agPywVW7TZrg | |
import sys | |
import urllib | |
import urllib2 | |
if len(sys.argv) != 3: | |
print 'Usage: %s [url] [command]' % sys.argv[0] | |
exit(1) |
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
$ docker-compose 2>&1 | grep -E ' [a-z]+ ' | awk '{print $1}' | xargs -n1 -I{} docker-compose {} -h 2>&1 | grep -E '^\s*(Usage:|-+[a-z])' | |
Usage: build [options] [--build-arg key=val...] [SERVICE...] | |
--force-rm Always remove intermediate containers. | |
--no-cache Do not use cache when building the image. | |
--pull Always attempt to pull a newer version of the image. | |
--build-arg key=val Set build-time variables for one service. | |
Usage: bundle [options] | |
--push-images Automatically push images for any services | |
-o, --output PATH Path to write the bundle file to. | |
Usage: config [options] |
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
# https://github.com/frohoff/travistest | |
# https://github.com/travis-ci/docs-travis-ci-com/issues/593 | |
# https://docs.travis-ci.com/user/reference/osx/#OS-X-Version | |
osx_image: xcode9 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8.3 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8.2 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8.1 # oraclejdk8 1.8.0_112-b16 | |
osx_image: xcode8 # oraclejdk8 1.8.0_92-b14 | |
osx_image: xcode7.3 # oraclejdk8 1.8.0_74-b02 | |
osx_image: xcode7.2 # oraclejdk8 1.8.0_66-b17 |
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
function qs( obj ) { | |
return '?'+Object.keys(obj).reduce(function(a,k){a.push(k+'='+encodeURIComponent(obj[k]));return a},[]).join('&') | |
} | |
function fetch_directions(o,d) { | |
Logger.log("fetching: " + JSON.stringify([o,d])); | |
var userProps = UserProperties.getProperties(); |
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 -xe | |
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y && apt-get -y install git python python-pip | |
curl -s https://get.docker.com | sh | |
service docker start | |
pip install -U docker-compose | |
mkdir /opt/docker.d |
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 -xe | |
yum update -y | |
yum install -y git | |
curl -s https://get.docker.com | sh | |
service docker start | |
chkconfig docker on | |
pip install -U docker-compose |
NewerOlder