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
-- /etc/rspamd/rspamd.local.lua | |
local lua_maps = require 'lua_maps' | |
local rspamd_util = require 'rspamd_util' | |
local mail_to_allowed_user_map = rspamd_config:add_map{ | |
type = "map", | |
url = '/etc/rspamd/mail_to_allowed_user.map', | |
} |
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
import os | |
from ldap3 import Server, Connection, ALL, core | |
# XXX: Update these with settings apropriate to your environment: | |
# (I use FreeIPA and an homeassistant group assignment) | |
SERVER = "ipa.example.com" | |
USERDN = "uid={},cn=users,cn=accounts,dc=example,dc=com" | |
TIMEOUT = 3 | |
BASEDN = USERDN | |
SCOPE = "base" |
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/env python | |
# Copyright (c) 2017 Kurt Jacobson | |
# License: https://kcj.mit-license.org/@2017 | |
import os | |
import gi | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('Gdk', '3.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
# Assumptions: easyrsa3 available in current dir, and functional openssl. | |
# This basic example puts the "offline" and "sub" PKI dirs on the same system. | |
# A real-world setup would use different systems and transport the public components. | |
# Build root CA: | |
EASYRSA_PKI=offline ./easyrsa init-pki | |
EASYRSA_PKI=offline ./easyrsa build-ca nopass | |
# Build sub-CA request: | |
EASYRSA_PKI=sub ./easyrsa init-pki |
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
module hexagon(radius) | |
{ | |
circle(r=radius,$fn=6); | |
} | |
module shell(radius) | |
{ | |
difference() | |
{ | |
hexagon(radius*1.2); // base |