This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SDHSTAT="/opt/service-discovery-helper/sdh.stat" | |
CURLOPTIONS='-s -i -XPOST -u youruser:yourpasswd https://your.influxdb.server:8086/write?db=event --data-binary' | |
re='^[0-9]+$' | |
function toInflux { | |
if [ ! -z $2 ]; then | |
echo $1:$2 | |
curl $CURLOPTIONS $1',event=DHDE17 value='$2 >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gist: 11375877 | |
# Url: https://gist.github.com/goodevilgenius/11375877 | |
# | |
# All memcache functions are supported. | |
# | |
# Can also be sourced from other scripts, e.g. | |
# source membash.sh | |
# MCSERVER="localhost" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; KeePassXC AutoIt3 Script to give the possibility to activate KeePassXC by HotKeySet | |
; Currently tested with Win10 x64 and KeePassXC 2.3.3 | |
; CTRL-ALT-k will toggle KeePassXC (if in tray) | |
; if KeePassXC is focused ESC Key will minimize it to Tray | |
; | |
; feel free to improve this script | |
; www.solariz.de | |
; | |
#Include <GuiToolBar.au3> | |
HotKeySet("^!k", "ShowKeePassXC") ; Ctrl-Alt-k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>quadrazid.com</ShortName> | |
<Description>Use www.quadrazid.com to search anonymously the web.</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16" type="image/x-icon">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAeBQTFRFAAAAsbGx/71AWrKkYbSVsrKyZ7WFcXFwdbhmLUwPRIa3cHBvfHx7cnJxbm5ti74rsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxs7GxqrG1sbGxsbGxsbGxsbGxsbGxsbGxsbGxsrGxaK7KMazisbGxsbGxsbGxtrGxnrGwSq7JSa7PsrKysbGxsbGxW7KkV7KpUrC5T6+/n5+fq6urYrSUX7OZWLKpVrGva2tqfHx7ra2tsrKyaLWFZbWKXrOaXLKgb29ubm5tgYGAiYmIKCgmhbtGb7dya7Z6ZbWKYrSRb29ub29ucHBvcnJxf7tMerpWdrlha7Z7abWBcHBvb29ub29ucG9vcnNvhrQ9hL0/cbhrb7dycnJxcHBvb29ub29ub3Bud4ZdeLlcdblicHBvb29ub29ub29ucXVpfpxLiL01frtNe7pTcHBvb29ub29ub25vb2tyi78sib0xh702hLw9grxDcXFwcHBvjb4pir4uib0xiL0zsbGxrrGykrC5c7G0U6/AVLGxW7KilZWVYb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* This is a simple PHP example to host your own Amazon Alexa Skill written in PHP. | |
In my Case it connects to my smarthome Raspberry pi Cat Feeder with two intents; | |
1: Dispense Food to the cats. | |
2: When did the Feeder last time feed the cats? Return a spoken time / date | |
This Script contains neccessary calls and security to give you a easy to use DIY example. | |
v2016.12.29 | |
Details in my Blogpost: https://solariz.de/de/amazon-echo-alexa-meets-catfeeder.htm | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fail2Ban filter for postfix authentication failures | |
# more strict version of SASL Filter | |
# EXAMPLE: | |
# Mar 27 20:16:40 cc postfix/smtpd[959]: warning: unknown[123.123.123.123]: SASL PLAIN authentication failed: | |
# | |
[INCLUDES] | |
before = common.conf | |
[Definition] | |
_daemon = postfix/(submission/)?smtp(d|s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# based on this version http://www.timokorthals.de/?p=334 | |
# adapted by Stéphane T. | |
# update Marco Goetze see: https://solariz.de/en/preventive-blocking-of-bad-ips-using-iptables.htm | |
_ipt=/sbin/iptables # Location of iptables (might be correct) | |
_input=badips.db # Name of database (will be downloaded with this name) | |
_pub_if=eth0 # Device which is connected to the internet (ex. $ifconfig for that) | |
_droplist=droplist # Name of chain in iptables (Only change this if you have already a chain with this name) | |
_level=2 # Blog level: not so bad/false report (0) over confirmed bad (3) to quite aggressive (5) (see www.badips.com for that) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
## License: CC0 | |
## Author: Marco Goetze | |
## Web: http://solariz.de | |
## Version: 1.2 | |
## DIZ: | |
## Little Helper Script for Linux to make my KeePass Copy and Paste cooperate again with | |
## Chrome Browser. | |
## You need to have the latest keepass version and XSEL installed. | |
## Tested with: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tiny little helper script to automatically grab the boot ID | |
# from grub.cfg and force to boot into windows next booth then reboot. | |
# https://tcpip.wtf | |
# Request sudo access | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
sudo "$0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* tiny tool to move all Windows to the main Screen | |
* https://tcpip.wtf/en/rescreen-tool-to-move-all-windows-to-your-win-main-screen.htm | |
*/ | |
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
namespace rescreen | |
{ | |
class Program |