- Debian: Jessie
- Mail Server: Exim
- Anti-Virus: Clamav
apt-get install clamav clamav-daemon exim4-daemon-heavy
adduser clamav Debian-exim
| #!/usr/bin/perl -n | |
| # argument: /path/to/exim.conf | |
| if (/^\s*\.else/) { | |
| $spaces=" "x($level-1); | |
| print $spaces.$_; next; | |
| } | |
| if (/^\s*\.if/) { | |
| $spaces=" "x$level; | |
| print $spaces.$_; |
| #!/usr/bin/env python | |
| # SMTP client ip tunneler | |
| # | |
| # ./SMTPRedirector 0.0.0.0 LISTENPORT SMTPHOST SMTPPORT | |
| # | |
| # Based on https://gist.githubusercontent.com/sivachandran/1969859/raw/f834e72c27488c279166a53ce1623b7f2f79e70c/SimpleTcpRedirector.py | |
| import socket | |
| import threading | |
| import select |
| #!/bin/bash | |
| . ~/jenkins-google-auth/bin/activate | |
| ~/bin/agent.py list 2>/dev/null | grep '.' | while read agent; do | |
| #echo | |
| #echo "Checking status of $agent..." | |
| # 1. Check to see if there is such a host in DNS. | |
| # 2. check if we can SSH into the host. If we can, then check the process and maybe shut down. | |
| # This makes sure that we don't consider an SSH failure to be reason to shut down the node. |
| https://github.com/mozilla/mozregression/blob/4ad1545405c364ccf1c2104314450c10956e650c/mozregression/test_runner.py#L110 | |
| This line is bad. | |
| It hints that one can enter "broken", but it doesn't actually accept that. |
| Homebrew build logs for pyenv-virtualenv on macOS 10.13.4 | |
| Build date: 2018-05-17 14:36:46 |
| function Stick() { | |
| this.pos = createVector(width/2, height) // the position of the stick | |
| this.vel = createVector() // the velocity of the stick | |
| this.acc = createVector() // the acceleration rate of the stick | |
| this.dna = new dna() // one strand of DNA to last the lifespan of the stick | |
| this.applyForce = function(force) { | |
| this.acc.add(force) // this allows for movement | |
| } |
| class Foo { | |
| // this is a complicated definition that I haven't finished parsing | |
| typedef std::function< | |
| int( | |
| const ComboAddress& ip, | |
| const DNSName& qdomain, | |
| int qtype, | |
| bool doTCP, | |
| bool sendRDQuery, | |
| int EDNS0Level, |
| So I've installed a dead simple backup, in /home/USER/git_backup/: | |
| git clone --mirror [email protected]:USER/PROJECT.git | |
| update.sh (launched every 5 minutes by cron): | |
| #/bin/sh | |
| cd /home/USER/git_backup/PROJECT.git | |
| LINES=`git remote update 2>&1 | wc -l` |
| So I've installed a dead simple backup, in /home/USER/git_backup/: | |
| git clone --mirror [email protected]:USER/PROJECT.git | |
| update.sh (launched every 5 minutes by cron): | |
| #/bin/sh | |
| cd /home/USER/git_backup/PROJECT.git | |
| LINES=`git remote update 2>&1 | wc -l` |