Skip to content

Instantly share code, notes, and snippets.

solariz / rescreen.c
Created Feb 3, 2021
tiny tool to move all Windows to the main Screen
View rescreen.c
/* tiny tool to move all Windows to the main Screen
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace rescreen
class Program
solariz /
Last active Mar 24, 2020
iptables droplist;
# based on this version
# adapted by Stéphane T.
# update Marco Goetze see:
_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 for that)
solariz / postfix-sasl.conf
Created Mar 27, 2019
Fail2Ban filter for postfix authentication failures, SASL Strict
View postfix-sasl.conf
# Fail2Ban filter for postfix authentication failures
# more strict version of SASL Filter
# Mar 27 20:16:40 cc postfix/smtpd[959]: warning: unknown[]: SASL PLAIN authentication failed:
before = common.conf
_daemon = postfix/(submission/)?smtp(d|s)
View KeePassXC-hotkey.au3
; 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
#Include <GuiToolBar.au3>
HotKeySet("^!k", "ShowKeePassXC") ; Ctrl-Alt-k
solariz / quadrazid.xml
Last active Jul 25, 2018
quadrazid Firefox Search Plugin
View quadrazid.xml
<OpenSearchDescription xmlns=""
<Description>Use to search anonymously the web.</Description>
<Image width="16" height="16" type="image/x-icon">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAeBQTFRFAAAAsbGx/71AWrKkYbSVsrKyZ7WFcXFwdbhmLUwPRIa3cHBvfHx7cnJxbm5ti74rsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxs7GxqrG1sbGxsbGxsbGxsbGxsbGxsbGxsbGxsrGxaK7KMazisbGxsbGxsbGxtrGxnrGwSq7JSa7PsrKysbGxsbGxW7KkV7KpUrC5T6+/n5+fq6urYrSUX7OZWLKpVrGva2tqfHx7ra2tsrKyaLWFZbWKXrOaXLKgb29ubm5tgYGAiYmIKCgmhbtGb7dya7Z6ZbWKYrSRb29ub29ucHBvcnJxf7tMerpWdrlha7Z7abWBcHBvb29ub29ucG9vcnNvhrQ9hL0/cbhrb7dycnJxcHBvb29ub29ub3Bud4ZdeLlcdblicHBvb29ub29ub29ucXVpfpxLiL01frtNe7pTcHBvb29ub29ub25vb2tyi78sib0xh702hLw9grxDcXFwcHBvjb4pir4uib0xiL0zsbGxrrGykrC5c7G0U6/AVLGxW7KilZWVYb
solariz /
Last active Feb 28, 2018 — forked from goodevilgenius/
BASH script which may be used to interact with memcache. All main memcache functions are supported. Fixed Revision working with new nc. New nc Versions do not terminate their connection after receiving EOL/EOF this need to be done by timeout or EOF Handling. Added both line #41
# Gist: 11375877
# Url:
# All memcache functions are supported.
# Can also be sourced from other scripts, e.g.
# source
# MCSERVER="localhost"
solariz /
Created Jan 18, 2017
Bash Script to push Service Discovery Helper stats into a influx DB
CURLOPTIONS='-s -i -XPOST -u youruser:yourpasswd https://your.influxdb.server:8086/write?db=event --data-binary'
function toInflux {
if [ ! -z $2 ]; then
echo $1:$2
curl $CURLOPTIONS $1',event=DHDE17 value='$2 >/dev/null
solariz / alexa_skill_example.php
Last active Nov 9, 2019
Amazon Echo / Alexa Intent example in PHP with Security validation
View alexa_skill_example.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.
Details in my Blogpost:
View KeePass Linux Copy & Paste to Chome Workaround
## License: CC0
## Author: Marco Goetze
## Web:
## 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: