Skip to content

Instantly share code, notes, and snippets.

@sebastianlipponer
sebastianlipponer / rspamd.lua
Last active June 1, 2024 16:33
rspamd fetchmail plugin
local rspamd_ip = require "rspamd_ip"
local rspamd_logger = require "rspamd_logger"
local fun = require 'fun'
rspamd_config:register_symbol{
name = 'FWD_FETCHMAIL',
type = 'prefilter',
weight = 0.0,
callback = function(task)
-- Fetchmails runs on localhost
@sebastianlipponer
sebastianlipponer / update_gitea.sh
Created September 2, 2021 20:56
gitea update bash script
#!/bin/bash
set -e
echo "Checking github.com for most recent Gitea release..."
GITHUB=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/go-gitea/gitea/releases/latest)
GITEA_DIR=/opt/gitea
TAG_NAME=$(echo $GITHUB | jq -r '[.tag_name] | first')
VERSION=${TAG_NAME:1}