Skip to content

Instantly share code, notes, and snippets.

View jose-d's full-sized avatar

jose_d jose-d

  • Institute of Physics | Czech Academy of Sciences
  • Prague | EU
View GitHub Profile
@jose-d
jose-d / logstash init script
Last active January 9, 2017 17:38 — forked from piavlo/adduser
logstash init script for centos 5/6 requires daemonize binary and unpacked monolitic jar under /opt/logstash
#!/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
DESC="Logstash Daemon"
LOGSTASH_USER=logstash
DAEMON=/usr/bin/java
CONFIG_DIR="/etc/logstash"
@jose-d
jose-d / crontab_header.sh
Created December 18, 2025 10:22 — forked from wesleyit/crontab_header.sh
A default crontab header that will make the life easier for those who don't remember cron fields or keywords.
## CRONTAB HINTS AND TIPS
##
##
## Entry Description Equivalent To
## @yearly (or @annually) Run once a year at midnight in the morning of January 1 0 0 1 1 *
## @monthly Run once a month at midnight in the morning of the first of the month 0 0 1 * *
## @weekly Run once a week at midnight in the morning of Sunday 0 0 * * 0
## @daily Run once a day at midnight 0 0 * * *
## @hourly Run once an hour at the beginning of the hour 0 * * * *
## @reboot Run at startup @reboot