Skip to content

Instantly share code, notes, and snippets.

From: Red Hat Errata Notifications <[email protected]>
Subject: [Security Advisory] RHSA-2019:0366 Important: Red Hat JBoss Core Services Apache HTTP Server 2.4.29 SP1 security update
The following Red Hat Security Advisory has been published which may affect
subscriptions which you have purchased.
RHSA-2019:0366 Important: Red Hat JBoss Core Services Apache HTTP Server 2.4.29 SP1 security update
@nagetsum
nagetsum / gist:ff198f548727d0f0e64031a6ec51ebeb
Created August 24, 2020 23:51
Example postgres-ds.xml for AS5
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about local-tx-datasource -->
<!-- $Id: postgres-ds.xml 106351 2010-06-30 19:17:22Z rrajesh $ -->
<datasource jndi-name="java:jboss/datasources/OracleDS" pool-name="OracleDS">
<connection-url>jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(CONNECT_TIMEOUT=10)(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCLCDB.localdomain)))</connection-url>
<connection-property name="oracle.jdbc.ReadTimeout">
310000
</connection-property>
<driver>oracle</driver>
<pool>
<min-pool-size>20</min-pool-size>
<initial-pool-size>20</initial-pool-size>
<max-pool-size>20</max-pool-size>
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Resource name="jdbc/myappDS"
auth="Container"
type="javax.sql.DataSource"
initialSize="20" maxTotal="20" maxIdle="20" maxWaitMillis="10000"
username="postgres" password="postgres" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/test"
connectionProperties="loginTimeout=10;socketTimeout=310"
validationQuery="SELECT 1"
= How to install SAP ASE 16.0 SP03 for Linux
1. Download product binally
Download product binally(ASE_Suite.linuxamd64.tgz) from below url instruction:
https://help.sap.com/viewer/23c3bb4a29be443ea887fa10871a30f8/16.0.3.8/en-US/c14592e2df414678b3620e75ccbc0248.html
2. Install
```
mkdir ~/tmp
mv ASE_Suite.linuxamd64.tgz ~/tmp
@nagetsum
nagetsum / Dockerfile
Created March 25, 2020 02:38
EAP custom container
FROM registry.access.redhat.com/ubi8/ubi:8.1-397
LAUNCH_JBOSS_IN_BACKGROUND="true" \
ENV JAVA_HOME="/usr/lib/jvm/java-1.8.0" \
JAVA_VENDOR="openjdk" \
JAVA_VERSION="1.8.0" \
JBOSS_EAP_VERSION="7.2.0.GA" \
JBOSS_HOME="/opt/eap" \ /
LAUNCH_JBOSS_IN_BACKGROUND="true" \
PRODUCT_VERSION="7.2.0.GA"openjdk-devel hostname \
&& yum clean all \
input {
stdin { }
}
filter {
grok {
match => { "message" => "%{IPORHOST:clientip} %{DATA:ident} %{DATA:auth} \[(?<timestamp>%{MONTHDAY}/%{MONTH}/%{YEAR}:%{TIME} %{DATA})\] \"%{WORD:verb} %{NOTSPACE:request} HTTP\/%{NUMBER:httpversion}\" %{NUMBER:response} (?:%{DATA:bytes}|-) %{QS:referer} %{QS:agent} %{QS:cookie} (?:\"\[%{GREEDYDATA:setcookie}\]\"|%{QS:setcookie}) %{DATA:sessionid} %{QS:threadname} %{NUMBER:durationsec}" }
}
date {
@nagetsum
nagetsum / mail.txt
Last active August 24, 2019 15:25
Sample errata notification mail
E-mail subject: [Security Advisory] RHSA-2019:1815 Moderate: java-1.8.0-openjdk security update
From: Red Hat Errata Notifications <[email protected]>
The following Red Hat Security Advisory has been published which may affect
subscriptions which you have purchased.
RHSA-2019:1815 Moderate: java-1.8.0-openjdk security update
@nagetsum
nagetsum / ConsumerClient.java
Created October 15, 2017 05:05
Kafka Comsumer Sample
package kafka;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.errors.WakeupException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Arrays;
import java.util.Properties;
@nagetsum
nagetsum / export.json
Created February 24, 2016 13:32
COMMONAPACHELOG Kibana Sample Dashboard
[
{
"_id": "COMMONAPACHELOGダッシュボード",
"_type": "dashboard",
"_source": {
"title": "COMMONAPACHELOGダッシュボード",
"hits": 0,
"description": "",
"panelsJSON": "[{\"id\":\"日別アクセス数\",\"type\":\"visualization\",\"panelIndex\":1,\"size_x\":7,\"size_y\":4,\"col\":1,\"row\":1},{\"id\":\"日別Verb別\",\"type\":\"visualization\",\"panelIndex\":2,\"size_x\":7,\"size_y\":2,\"col\":1,\"row\":5},{\"id\":\"レスポンスコードの分布\",\"type\":\"visualization\",\"panelIndex\":3,\"size_x\":7,\"size_y\":2,\"col\":1,\"row\":7},{\"id\":\"アクセスの多いURLトップ50\",\"type\":\"visualization\",\"panelIndex\":4,\"size_x\":5,\"size_y\":5,\"col\":8,\"row\":1},{\"id\":\"時間帯別応答bytes数の合計\",\"type\":\"visualization\",\"panelIndex\":5,\"size_x\":5,\"size_y\":3,\"col\":8,\"row\":6}]",
"optionsJSON": "{\"darkTheme\":false}",