Skip to content

Instantly share code, notes, and snippets.

Tobi lightszentip

Block or report user

Report or block lightszentip

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View logstash-start-script
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start logstash with system logs
@lightszentip
lightszentip / hostsfile.py
Last active Mar 5, 2017 — forked from jtyr/hostsfile.py
Ansible dynamic inventory script that reads any Ansible hosts file and transforms it into the JSON data structure.
View hostsfile.py
!/usr/bin/python
#####
#
# Description
# -----------
#
# This is an Ansible dynamic inventory script that reads any Ansible hosts file
# and transforms it into the JSON data structure.
#
View script-for-rsync-backup.sh
#!/bin/bash
#
##### Backup Script for my local Filesystem
##### run only if I have connection with my secure home wlan
# Get the wlan essid
essid=$(iwgetid -r)
echo $essid;
# check the name, exit otherwise
if [ "$essid" = "nameofmywlan" ]
then
View FileTemplateThymeleafConfig
package com.iw.immowebapp.webapp;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.env.Environment;
import org.thymeleaf.spring4.SpringTemplateEngine;
You can’t perform that action at this time.