Skip to content

Instantly share code, notes, and snippets.

angeloxx angeloxx

Block or report user

Report or block angeloxx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View postfix-disable-starttls-for-client.md

Case

Sep 13 00:01:36 mail-c-eqs postfix/smtpd[20124]: SSL_accept error from xxxx.xxxxx.xxxx[xxx.xxx.xxx.xxx]: -1
Sep 13 00:01:36 mail-c-eqs postfix/smtpd[20124]: warning: TLS library problem: 20124:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:293:
Sep 13 00:01:36 mail-c-eqs postfix/smtpd[20124]: lost connection after STARTTLS from xxxx.xxxxx.xxxx[xxx.xxx.xxx.xxx]
Sep 13 00:01:36 mail-c-eqs postfix/smtpd[20124]: disconnect from xxxx.xxxxx.xxxx[xxx.xxx.xxx.xxx]

Solution

  • disable starttls for specific client with this (mail.cf):
@angeloxx
angeloxx / modsec-clamscan.lua
Last active Apr 1, 2018
ModSecurity ClamAV integration script (LUA)
View modsec-clamscan.lua
#!/usr/bin/lua
--[[
This script can be used to inspect uploaded files for viruses
via ClamAV. To implement, use with the following ModSecurity rule:
SecRule FILES_TMPNAMES "@inspectFile /opt/modsecurity/bin/modsec-clamscan.lua" "phase:2,t:none,log,deny"
Author: Angelo Conforti (based on Josh Amishav-Zlatin code)
Requires the clamav-server and clamav-scanner
View keybase.md

Keybase proof

I hereby claim:

  • I am angeloxx on github.
  • I am angeloxx (https://keybase.io/angeloxx) on keybase.
  • I have a public key whose fingerprint is 0F4D 1CBF 4455 2732 1A31 55B9 140F 537E D0BB 8CAA

To claim this, I am signing this object:

@angeloxx
angeloxx / RTGUI-Start-Stop-All.md
Last active Jul 24, 2016
RTgui start/stop all rtorrent downloads
View RTGUI-Start-Stop-All.md

This snippet adds the stopall/startall command to RTgui, you can call it via http://hostname/control.php?cmd=startall GET request and integrate it, like me, the Torrent download with the home automation system (ie VantageControls InFusion system via UselessAngelo.Generic HTTP Client driver). In this way I stop the BitTorrent client when I power on the TV set and restart it when power off the TV or arm the burgalarm system.

@angeloxx
angeloxx / VMwareToolsUpdate.sh
Created Dec 14, 2015
non-interactive vmware tools install/update
View VMwareToolsUpdate.sh
#!/bin/sh
mount /media/cdrom
cd /usr/src
rm -rf vmware-tools-distrib
tar -xzf /media/cdrom/VM*.tar.gz
umount /media/cdrom
cd vmware-tools-distrib
./vmware-install.pl --default
cd ..
rm -rf vmware-tools-distrib
You can’t perform that action at this time.