Skip to content

Instantly share code, notes, and snippets.

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;
#!/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
@lightszentip
lightszentip / hostsfile.py
Last active March 5, 2017 18:58 — forked from jtyr/hostsfile.py
Ansible dynamic inventory script that reads any Ansible hosts file and transforms it into the JSON data structure.
!/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.
#
@lightszentip
lightszentip / logstash-start-script
Created December 29, 2018 20:04
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