Skip to content

Instantly share code, notes, and snippets.

@renalexster
renalexster / gist:98a5bcea2570c7f79e17f047d9fdf562
Last active Nov 18, 2022
Configurar filebeat com JBOSS-AS ou Wildfly
View gist:98a5bcea2570c7f79e17f047d9fdf562
Configurar filebeat em JBOSS/Wildfly
1. Instalar o filebeat
> curl -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-6.3.2-amd64.deb
> dpkg -i filebeat-oss-6.3.2-amd64.deb
2. Configurar o filebeat
> /etc/filebeat/filebeat.yml
@isweluiz
isweluiz / git.md
Created Jun 7, 2018 — forked from leocomelli/git.md
Lista de comandos úteis do GIT
View git.md

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@drmalex07
drmalex07 / README-tomcat-as-systemd-service.md
Last active Nov 9, 2022
An example configuration for Tomcat as systemd service. #tomcat #systemd #systemd.service
View README-tomcat-as-systemd-service.md

README

Let Tomcat is download and installed under /opt/tomcat. Also, let tomcat be a non-provileged user under which the server will be running.

We assume that we keep server's binaries under /opt/tomcat and we will create a server instance named foo under /var/tomcat/ (carrying its own conf, logs, webapps, work, lib directories). See also https://dzone.com/articles/running-multiple-tomcat.

Create a template service unit file at /etc/systemd/system/tomcat@.service:

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active Nov 23, 2022
How to add a collapsible section in markdown.
View markdown-details-collapsible.md

How to

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux
@jhmartin
jhmartin / gist:c09e450853e273ee88f2
Created May 21, 2015
Multiple Elasticsearch outputs in logstash
View gist:c09e450853e273ee88f2
#http://pastebin.com/xGt6vv9R from yardenbar
output {
if [type] == "postfix" {
elasticsearch {
host => [ "ES_HOSTNAME" ]
protocol => "transport"
cluster => "elasticsearch"
index => "postfix-%{+YYYY.MM.dd}"
manage_template => true
template_overwrite => true
@cgswong
cgswong / logstash.conf
Last active Jun 24, 2021
Logstash configuration file.
View logstash.conf
# #####################################################################
# DESC: Logstash configuration file. Typically forwarding logs to
# Elasticsearch instance.
# #####################################################################
# Where to get input
input {
# Get input from standard input device/interface
stdin {
type => "stdin-type"
@leocomelli
leocomelli / git.md
Last active Nov 25, 2022
Lista de comandos úteis do GIT
View git.md

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda