- Debian: Jessie
- Mail Server: Exim
- Anti-Virus: Clamav
apt-get install clamav clamav-daemon exim4-daemon-heavy
- Modify
/etc/clamav/clamd.conf
/* To avoid mixing em and rem units during compilation */ | |
.select2-container--bootstrap { | |
display: block; | |
/*------------------------------------* #COMMON STYLES | |
\*------------------------------------*/ | |
/** | |
* Search field in the Select2 dropdown. | |
*/ | |
/** |
# Ignore everything in this directory | |
* | |
# Except this file | |
!.gitignore |
<img src="watermark.php?watermark=watermark.png&src=test.jpg" /> |
function isUploadSupported() { | |
if (navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/)) { | |
return false; | |
} | |
var elem = document.createElement('input'); | |
elem.type = 'file'; | |
return !elem.disabled; | |
}; |
#!/bin/bash | |
set -eux | |
ca_subject='/CN=Test CA' | |
domains=( | |
'a.example.com' | |
'b.example.com' | |
) | |
# create the CA keypair and a self-signed certificate. |
<template> | |
<div id="app"> | |
<header> | |
<h1>Buy this</h1> | |
<div class="cart" ref="cart">Cart</div> | |
</header> | |
<main> | |
<div class="item"> | |
<h2>Item01</h2> |
<?php | |
/** | |
* Function to search for key/value in recursive mode. If last arg is true | |
* it returns it's value or key. By default give true or false if key/value have been found. | |
* | |
* @param array $array Array to search | |
* @param string $search What to search | |
* @param string $mode Mode search for value or key | |
* @param boolean $return Return value or key |
<?php | |
/* app/validators.php */ | |
Validator::extend('alpha_spaces', function($attribute, $value) | |
{ | |
return preg_match('/^[\pL\s]+$/u', $value); | |
}); | |
/* |