Skip to content

Instantly share code, notes, and snippets.

View moisseev's full-sized avatar
:octocat:
🎖🎖🎖

Alexander Moisseev moisseev

:octocat:
🎖🎖🎖
View GitHub Profile
@moisseev
moisseev / vss_mirror.cmd
Created November 7, 2016 15:05
On-the-fly Windows directory mirroring using VSS snapshot with ShadowSpawn and robocopy
@echo off
rem On-the-fly Windows directory mirroring using VSS snapshot
rem with ShadowSpawn (https://github.com/candera/shadowspawn) and robocopy
rem This script mirrors SRC directory contents into DST directory
set SHADOWSPAWN="C:\Program Files\ShadowSpawn\ShadowSpawn.exe"
@moisseev
moisseev / bl-asn.map
Last active January 10, 2020 08:13
ASN and IP blacklists using multimap. OBSOLETE, up-to-date example: https://github.com/moisseev/rspamd-multimap-bl
16276 # OVH
44493 # Chelyabinsk-Signal
46606 # UNIFIEDLAYER-AS-1
48666 # MAROSNET Telecommunication Company Network
49505 # SELECTEL-NET
133165 # DIGITALOCEAN
201229 # DIGITALOCEAN
202018 # DIGITALOCEAN
200130 # DIGITALOCEAN
21100 # ITLDC-NL (UA)
@moisseev
moisseev / wmi-memory.cmd
Last active November 8, 2017 08:14
Munin Node for Windows external plugin - Physical memory and paging file usage
@echo off
rem Munin Node for Windows external plugin wrapper
rem Low physical memory warnings
rem
rem The default thresholds (usage in percents) are warning=80 critical=90 .
rem Set environment variables as shown below to override the defaults.
rem
rem set mem_used.warning=80
@moisseev
moisseev / .git-commit-template.txt
Created March 9, 2018 10:13
git hook which adds the value of GH_TAGNAME from Makefile to a commit message
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
#Update to [GH_TAGNAME]
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
@moisseev
moisseev / cached_interactive.diff
Created March 18, 2018 18:57
Cache interactivity checks in rspamd_stat
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl
index 3a8affce1..a8d65e36b 100755
--- a/utils/rspamd_stats.pl
+++ b/utils/rspamd_stats.pl
@@ -81,6 +81,7 @@ my %scanTime = (
total => 0,
);
my %bidir_match;
+my %fh_cache; # Cache for sub interactive