This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
FS_CONFIG_PATH=/etc/freeswitch | |
FS_CONF_PATH=/usr/src/newfies-dialer/install/freeswitch-conf | |
#Set branch to install develop / default: master | |
if [ -z "${INSTALL_FS}" ]; then | |
INSTALL_FS='yes' | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Newfies-Dialer License | |
# http://www.newfies-dialer.org | |
# | |
# Copyright (C) 2011-2015 Star2Billing S.L. | |
# Arezqui Belaid <[email protected]> | |
# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Play with Riak | |
# | |
import riak | |
myClient = riak.RiakClient(pb_port=8087, protocol='pbc') | |
myBucket = myClient.bucket('test') | |
val1 = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alias /a2b_webservice /usr/share/a2billing/current/stable/webservice/ | |
<Directory /usr/share/a2billing/current/stable/webservice/> | |
AllowOverride all | |
Options Indexes FollowSymLinks | |
order allow,deny | |
allow from all | |
<IfModule mod_php5.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * | |
Disallow: /cgi-bin | |
Disallow: /wp-admin | |
Disallow: /wp-includes | |
Disallow: /wp-content/plugins | |
Disallow: /wp-content/cache | |
Disallow: /wp-content/themes | |
Disallow: /trackback | |
Disallow: /feed | |
Disallow: /comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault A300 | |
ExpiresByType application/x-javascript A3600 | |
ExpiresByType text/css A3600 | |
ExpiresByType image/gif A3600 | |
ExpiresByType image/png A3600 | |
ExpiresByType image/jpeg A3600 | |
ExpiresByType text/plain A300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# | |
# Install Wordpress Script - This script intend to install WP on Ubuntu 14.04 LTS | |
# | |
INSTALL_DIR="/var/www/" | |
dbuser="root" | |
SALT=`</dev/urandom tr -dc A-Za-z0-9| (head -c $1 > /dev/null 2>&1 || head -c 20)` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.core.exceptions import ValidationError | |
from django.utils.translation import ugettext_lazy as _, ungettext_lazy | |
from django.core.validators import MaxValueValidator, MinValueValidator | |
from django.utils.deconstruct import deconstructible | |
@deconstructible | |
class MaxWordValidator(object): | |
print "MaxWordValidator" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install xapian Core and Bindings | |
apt-get install zlib1g-dev | |
apt-get install g++ | |
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-core-1.2.18.tar.xz | |
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-bindings-1.2.18.tar.xz | |
unxz xapian-core-1.2.18.tar.xz | |
unxz xapian-bindings-1.2.18.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You will need to make this file executable (chmod u+x) and run it with sudo | |
apt-get update | |
apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libglu1-mesa-dev fop xsltproc libxml2-utils | |
mkdir -p /usr/src/erlang | |
cd /usr/src/erlang | |
wget http://www.erlang.org/download/otp_src_17.1.tar.gz | |
tar -xvzf otp_src_17.1.tar.gz | |
cd otp_src_17.1 | |
./configure | |
make |