Skip to content

Instantly share code, notes, and snippets.

@arx76
arx76 / wordpress.vcl
Created January 11, 2018 12:17 — forked from matthewjackowski/wordpress.vcl
Varnish 4 VCL configuration for WordPress. Also allows purging
# A heavily customized VCL to support WordPress
# Some items of note:
# Supports https
# Supports admin cookies for wp-admin
# Caches everything
# Support for custom error html page
vcl 4.0;
import directors;
import std;
vcl 4.0;
import std;
import directors;
backend server1 {
.host = "127.0.0.1"; # IP or Hostname of backend
.port = "8081"; # Port Apache or whatever is listening
.max_connections = 800; # That's it
.first_byte_timeout = 300s; # How long to wait before we receive a first byte from our backend?
vcl 4.0;
import directors;
# Default backend definition. Set this to point to your content server.
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
@arx76
arx76 / install_zimbra.sh
Created October 14, 2017 17:48 — forked from jniltinho/install_zimbra.sh
Install Zimbra 8.6.0
#!/bin/bash
## Install Zimbra 8.6
## Ubuntu 14.04 64Bits, 4GB RAM, 100GB HD
## For best performance use SSD.
## http://www.linuxpro.com.br/2015/06/instalacao-do-zimbra-8-6-0-no-ubuntu.html
## Download Zimbra: https://www.zimbra.com/downloads/zimbra-collaboration-open-source/
## http://serverfault.com/questions/707997/zimbra-8-6-sends-some-mail-into-black-hole
## Run as root
@arx76
arx76 / get_sasl.pl
Created October 14, 2017 17:47 — forked from jniltinho/get_sasl.pl
Get sasl AUTH Postfix
#!/usr/bin/perl
$ENV{"LANG"}="C";
use strict;
$ENV{'PATH'} = "/bin:/sbin:/usr/bin:/usr/sbin";
my %hash_mail = ();
#!/bin/bash
## Integrar Ubuntu 16.04 32/64Bits no Windows Active Directory Domain – Fullest Integration
### Primeira Etapa ----------------------------------------------------------------------------
## Voce precisa mudar a linha abaixo
MY_DOMAIN="mydomain.local"
GET_ARCH=$(getconf LONG_BIT)
#!/bin/bash
### Install PHP 5.6.29 on Ubuntu 16.04 64Bits
### https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/
apt-get -y install build-essential libxml2-dev libxslt1-dev
apt-get -y install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libxml2-dev
apt-get -y install libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev
apt-get -y install libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev
apt-get -y install libfreetype6-dev libkrb5-dev libpq-dev libicu-dev
@arx76
arx76 / install-ispconfig3-centos.sh
Created October 14, 2017 17:44
Install ISPConfig3 CentOS 7 64Bits
#!/bin/bash
## Install ISPConfig 3.x on CentOS 7 64Bits
## http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html
## https://www.howtoforge.com/tutorial/perfect-server-centos-7-2-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/2/
## http://nareshv.blogspot.com.br/2014/02/configure-hhvm-with-apache-fastcgi-on.html
## ISPConfig3 3.x + Apache2 + CentOS 7 64Bits
## VM HD 50GB, swap 2GB, / 19GB, /var/www all
## Filesystem ext4
## Run as root
@arx76
arx76 / install_gogs_debian.sh
Created October 14, 2017 17:44 — forked from jniltinho/install_gogs_debian.sh
Install Gogs Debian Apache2 Webserver
#!/bin/bash
## Install Gogs v0.9.113 + Apache2 Webserver + Mysql
## On Debian 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 0.1
### Tested on Debian 8.7 64Bits
echo 'Support Debian'
echo 'Installs Gogs 0.9.113'
@arx76
arx76 / install_redmine.sh
Created October 14, 2017 17:41 — forked from jniltinho/install_redmine.sh
Install Redmine 3.3.2 on Debian 8.7 64Bits ISPConfig Server
#!/bin/bash
## Install Redmine 3.3.2 Integrated with ISPConfig
## On Debian 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 0.1
### Tested on Debian 8.7 64Bits
apt-get install -y ruby ruby-dev libmysqlclient-dev libmagickwand-dev
gem install unicorn
gem install bundler