Execute the following command to create a self signed certificate
openssl genrsa -out private.key 2048
openssl req -nodes -x509 -days 3650 -config ssl.cnf -new -key private.key -out example.com
aws logs get-query-results --output text --query 'results[]|[?field==`@message`][value]' --query-id $(aws logs start-query --log-group-name "XXXX" --start-time `date -d '12 hour ago' "+%s"` --end-time `date "+%s"` --output text --query-string 'fields @message |filter (@logStream like /YYY/) | sort @timestamp desc | limit 20') |
Execute the following command to create a self signed certificate
openssl genrsa -out private.key 2048
openssl req -nodes -x509 -days 3650 -config ssl.cnf -new -key private.key -out example.com
#!/usr/bin/env | |
docker run --interactive --tty --rm --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate engines:install | |
docker run --interactive --tty --rm --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f text |
require 'logger' | |
module Dim | |
class Logger < ::Logger | |
def initialize(*) | |
super | |
@formatter = NoTimestampFormatter.new | |
end | |
end |
Hortonworks wrote a great article how to add new components into Amabri:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=38571133
Unfortunately, this document is not enough if you really want to add your own component.
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"os" | |
"strconv" |
rpm -qa --queryformat '%{size} %{name}\n' | sort -rn | more |
$ scl enable nodejs010 'npm i hoxy'
$ scl enable nodejs010 'node proxy.js' &
$ rhc apps --header 'X-Remote-User:demo' --server http://localhost:1337/
request made to: { 'x-remote-user': 'demo',
accept: 'application/json',
'user-agent': 'rhc/1.30.2 (ruby 1.8.7; x86_64-linux) (API 1.11.21.31.41.51.61.7) (2.4.0, ruby 1.8.7 (2011-06-30))',