This file contains hidden or 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
$ gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config |
This file contains hidden or 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
ERROR: Error installing pg: | |
ERROR: Failed to build gem native extension. | |
... | |
Can't find the 'libpq-fe.h header | |
... |
This file contains hidden or 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/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
This file contains hidden or 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
# The newrelic agent generates its own log file to keep its logging | |
# information separate from that of your application. Specify its | |
# log level here. | |
log_level: 'error' | |
# Optionally set the path to the log file This is expanded from the | |
# root directory (may be relative or absolute, e.g. 'log/' or | |
# '/var/log/') The agent will attempt to create this directory if it | |
# does not exist. | |
# log_file_path: 'log' |
This file contains hidden or 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
# NewRelic rpm | |
# agent_logger.rb#L134-L136 | |
def wants_stdout? | |
::NewRelic::Agent.config[:log_file_path].upcase == "STDOUT" | |
end |
This file contains hidden or 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
set :logging, true |
This file contains hidden or 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
IMAGE_NAME := "foo" | |
docker-build: | |
@(docker build -t $(IMAGE_NAME) -f Dockerfile .) | |
test: docker-build | |
@(docker-compose -f dockercompose/test.yml up -d) | |
@(docker-compose -f dockercompose/test.yml run wait) | |
@(docker-compose -f dockercompose/test.yml run search bash -c "rspec") | |
@(docker-compose -f dockercompose/test.yml down) |
This file contains hidden or 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
IMAGE_NAME := "foo" | |
docker-build: | |
@(docker build -t $(IMAGE_NAME) -f Dockerfile .) | |
test: docker-build | |
@(docker-compose -f dockercompose/test.yml up -d) | |
@(docker-compose -f dockercompose/test.yml run search bash -c "sleep 15; rspec") | |
@(docker-compose -f dockercompose/test.yml down) |
This file contains hidden or 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
IMAGE_NAME := "foo" | |
docker-build: | |
@(docker build -t $(IMAGE_NAME) -f Dockerfile .) | |
test: docker-build | |
@(docker-compose -f dockercompose/test.yml up -d) | |
@(docker-compose -f dockercompose/test.yml run search bash -c "rspec") | |
@(docker-compose -f dockercompose/test.yml down) |