Skip to content

Instantly share code, notes, and snippets.

View coleca's full-sized avatar

Cole Calistra coleca

View GitHub Profile
@coleca
coleca / ServiceA
Last active December 17, 2018 21:51
go-haapi-v2-74cbcd85f4-m56nf linkerd-proxy DBUG admin={server=metrics listen=0.0.0.0:4191 remote=100.98.190.10:54854} linkerd2_proxy::proxy::http::metrics::report fmt_metrics: by_target=1
go-haapi-v2-74cbcd85f4-m56nf linkerd-proxy TRCE proxy={server=in listen=0.0.0.0:4143} linkerd2_proxy::transport::addr_info get_original_dst BoxedIo(TcpStream { addr: V4(100.98.113.164:4143), peer: V4(10.33.25.179:40244), fd: 18 })
go-haapi-v2-74cbcd85f4-m56nf linkerd-proxy TRCE proxy={server=in listen=0.0.0.0:4143 remote=10.33.25.179:40244} linkerd2_proxy::proxy::server detected HTTP/1
go-haapi-v2-74cbcd85f4-m56nf linkerd-proxy DBUG proxy={server=in listen=0.0.0.0:4143 remote=10.33.25.179:40244} linkerd2_proxy::app::inbound::orig_proto_downgrade downgrading requests; source=Source { remote: V4(10.33.25.179:40244), local: V4(100.98.113.164:4143), orig_dst: Some(V4(100.98.113.164:80)), tls_status: None(Disabled), _p: () }
go-haapi-v2-74cbcd85f4-m56nf linkerd-proxy TRCE proxy={server=in listen=0.0.0.0:4143 remote=10.33.25.179:
#!/bin/bash
##
## Script: Installs a HA PROXY server for RDS on Debian Linux
##
## Run the script as ./install_rds_proxy.sh <DNS NAME OF RDS INSTANCE>
##
SERVER=${1:-usawssdb01.c1jinrprkxs4.us-east-2.rds.amazonaws.com}
apt-get update
"""
A simple selenium test example written by python
"""
import unittest
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
class TestTemplate(unittest.TestCase):
"""Include test cases on a given url"""
FROM python:3.7-alpine3.8
# update apk repo
RUN echo "http://dl-4.alpinelinux.org/alpine/v3.8/main" >> /etc/apk/repositories && \
echo "http://dl-4.alpinelinux.org/alpine/v3.8/community" >> /etc/apk/repositories
# install chromedriver
RUN apk update
RUN apk add chromium chromium-chromedriver py3-lxml
FROM node:8-slim
# See https://crbug.com/795759
RUN apt-get update && apt-get install -yq libgconf-2-4
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
### Keybase proof
I hereby claim:
* I am coleca on github.
* I am coleca (https://keybase.io/coleca) on keybase.
* I have a public key ASCocafhiMz5aPfyDuX0ZXE9hp-vjsTmFcUxPxfbEiGm5go
To claim this, I am signing this object:

Using XDebug with Docker for Mac and IntelliJ or PHPStorm

  1. Add the following into your Dockerfile

    RUN yes "" | pecl install xdebug                                                             && \
    	echo "zend_extension="$(find / -name xdebug.so) > /etc/php5/fpm/conf.d/xdebug.ini && \
    	echo "xdebug.remote_enable = on" >> /etc/php5/fpm/conf.d/xdebug.ini                      && \
        echo "xdebug.remote_host = 10.254.254.254" >> /etc/php5/fpm/conf.d/xdebug.ini            && \
        echo "xdebug.remote_port = 9000" >> /etc/php5/fpm/conf.d/xdebug.ini                      && \