Skip to content

Instantly share code, notes, and snippets.

@greyltc
greyltc / launch-GRD.sh
Last active June 27, 2024 08:04
configures then activates gnome-remote-desktop from the command line
#!/usr/bin/env bash
# run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell
# this will overwrite all the settings it touches
# the name of the user to run these commands as
TARGET_USER=jane
# we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one
# Rspamd WebUI
rewrite ^(/save.+)$ /rspamd$1 last;
location /rspamd/ {
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options SAMEORIGIN;
add_header X-XSS-Protection "1; mode=block";
proxy_pass http://rspamd.controller.ip:11334/;
proxy_redirect http://rspamd.controller.ip:11334/ default;
@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)