Skip to content

Instantly share code, notes, and snippets.

@wh13371
wh13371 / jq_install.sh
Created December 17, 2020 11:12
jq - install
cd tmp
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq
chmod +x jq
sudo cp jq /usr/bin
@wh13371
wh13371 / docker-compose_REDIS.yml
Created November 24, 2020 12:41
A Redis Docker Container
version: '3'
services:
redis:
image: redis
container_name: redis
ports:
- 6379:6379
network_mode: host
sudo firewall-cmd --zone=public --add-masquerade --permanent
sudo firewall-cmd --reload

CentOS 8 - install "rsyslog"

sudo dnf install rsyslog -y
rpm -q rsyslog # check
dnf info rsyslog --verbose # check
sudo systemctl status rsyslog # status
sudo systemctl start rsyslog # start
sudo systemctl enable rsyslog # enable for reboot
echo "test message from fizz" | logger
version: '3'
services:
influx2:
image: quay.io/influxdb/influxdb:2.0.0-beta
container_name: influx2
volumes:
- $PWD/data:/root/.influxdbv2
- $PWD/data/engine:/root/.influxdbv2/engine
command:
- --reporting-disabled
@wh13371
wh13371 / EK_docker-compose.yml
Created August 26, 2020 12:45
A simple Elasticsearch and Kibana stack
version: '3'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
#
# A "httpie" container
#
# docker build --network host -t wh13371/httpie .
# docker login
# docker push wh13371/httpie
# docker run -it --rm --network host wh13371/httpie
# Usage: / # http 10.20.30.40:46664
#
FROM alpine:latest
hostname = "3c18ec3c89ea"
data_dir = "/var/lib/kapacitor"
skip-config-overrides = false
default-retention-policy = ""
[alert]
persist-topics = true
[http]
bind-address = ":9092"
# Global tags can be specified here in key="value" format.
[global_tags]
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
interval = "60s"
## Rounds collection interval to 'interval'
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = true
# Once every 24 hours InfluxDB will report usage data to usage.influxdata.com
reporting-disabled = true
[meta]
# Where the metadata/raft database is stored
dir = "/var/lib/influxdb/meta"
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "/var/lib/influxdb/data"