23 Jan 2012
Command | Description |
---|---|
csf -s | Start the firewall rules |
csf -f | Flush/Stop firewall rules (note: lfd may restart csf) |
<?php | |
/** | |
* Is RTL | |
* Check if there RTL characters (Arabic, Persian, Hebrew) | |
* | |
* @author Khaled Attia <[email protected]> | |
* @param String $string | |
* @return bool | |
*/ |
23 Jan 2012
Command | Description |
---|---|
csf -s | Start the firewall rules |
csf -f | Flush/Stop firewall rules (note: lfd may restart csf) |
Automatically deletes old emails that match the specified label.
LABEL_TO_DELETE
: the label that should be have old messages deleted#!/bin/bash | |
set -e | |
# REQUIRED ACTION: Configure your backup server vars - see OVH Server Manager's "Backups" tab. | |
# BACKUP_HOST_PREFIX: use the prefix domain for the listed "Name" value on the "Backups" tab. | |
# Example: With a 'Name' value `ftpback-bhs1-3.ip-111-222-333.net` you would need to set `BACKUP_HOST_PREFIX=ftpback-bhs1-3` | |
# Add something likethese to your ~/.bashrc - /etc/profile | |
#export OVH_SERVER_ID="ns5xxxxx.ip-x-x-x.net" | |
#export BACKUP_HOST_PREFIX="ftpback-bhs1-x" |
<?php | |
/** | |
* Is RTL | |
* Check if there RTL characters (Arabic, Persian, Hebrew) | |
* this function works in fuzzy mode | |
* | |
* @author Khaled Attia <[email protected]> Mahdi Ghayour <[email protected]> | |
* @param String $string | |
* @return float betwwen 0~1, (0 for ltr and 1 for rtl) | |
* @example if( is_rtl($string) > 0.5 ) { // do sth } |