Adapted from here
- Install all packages
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git- Configure PostgresSQL
| Function Remove-Certificates { | |
| $usercerts = @() | |
| $exchangecerts = @() | |
| Write-Host "Connecting to Exchange Online" | |
| #used to connect to exchange online, must be customized for each tenant and certificate | |
| $ClientId = "" | |
| $Organization = "" | |
| $CertificateThumbprint = "" | |
| Try { |
| UPDATE PROCESS START [ 05/04/17 23:26:31 ] | |
| ===[ DNSBL Process ]================================================ | |
| [ EasyList_wo_Elements ] Reload [ 05/04/17 23:26:32 ] . completed .. | |
| ---------------------------------------------------------------------- | |
| Orig. Unique # Dups # White # Alexa Final | |
| ---------------------------------------------------------------------- | |
| 7964 7577 0 0 0 7577 | |
| ---------------------------------------------------------------------- |
| --- | |
| - hosts: webservers | |
| tasks: | |
| - name: Install Apache | |
| apt: pkg=apache2 update_cache=true state=installed | |
| - name: Install bunch of php packages | |
| apt: pkg={{ item }} update_cache=true state=installed | |
| with_items: | |
| - php5 | |
| - php5-cli |
Adapted from here
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git| #!/bin/sh | |
| sudo apt-get install apache2-prefork-dev libxml2 libxml2-dev apache2-dev | |
| mkdir ~/modbuild/ && cd ~/modbuild/ | |
| wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c | |
| wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h | |
| sudo apxs2 -aic -I/usr/include/libxml2 ./mod_xml2enc.c | |
| cd ~ | |
| sudo rm -rfd ~/modbuild/ | |
| sudo service apache2 restart |
| #!/usr/bin/env python | |
| """Simple script to merge multiple RRD files together. | |
| Accepts any number of RRD file names as arguments. Produces an "rrdtool dump" | |
| style file on stdout. The last RRD file should have a slot for every possible | |
| record in the resulting merged RRD. | |
| Run something like: | |
| $ python simple-merge-rrd.py filea.rrd fileb.rrd filec.rrd | \ |