Skip to content

Instantly share code, notes, and snippets.

View 9had's full-sized avatar

9had 9had

  • DK
View GitHub Profile
@9had
9had / country_bl.map
Created May 17, 2019 22:52
RSPAMD Country Blacklist
# List of country codes (ISO) on the blacklist.
# Usually countries I do not expect email traffic form.
TH
CN
RU
@9had
9had / copy.sh
Last active July 13, 2019 19:19
bash example copy folder a to folder b
#!/bin/bash
source=/Users/user1/one/
destination=/Users/user1/two/
cp -R $source $destination
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
@9had
9had / antivirus.conf
Created July 17, 2019 09:14
Rspam + clamav
# local.d/antivirus.conf
# multiple scanners could be checked, for each we create a configuration block with an arbitrary name
clamav {
# If set force this action if any virus is found (default unset: no action is forced)
action = "reject";
message = '${SCANNER}: virus found: "${VIRUS}"';
# Scan mime_parts seperately - otherwise the complete mail will be transfered to AV Scanner
attachments_only = false; # Before 1.8.1
#scan_mime_parts = true; # After 1.8.1
#!/usr/bin/env bash
# Directory variables
# Where to start, in what directory.
start="/Users/ne/tmp/macnyt/music/"
# Subdir to look for.
sf="Soundfiles"
sb="soundbites"