- Debian: Jessie
- Mail Server: Exim
- Anti-Virus: Clamav
apt-get install clamav clamav-daemon exim4-daemon-heavy
adduser clamav Debian-exim
| #!/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. |
| 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 | |
| } |
| 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` |