Skip to content

Instantly share code, notes, and snippets.

View areski's full-sized avatar
🤗
Working at DialerAI

Areski Belaid areski

🤗
Working at DialerAI
  • Star2Billing // DialerAI
  • Barcelona
  • X @areskib
View GitHub Profile
@areski
areski / install-fs16.sh
Created December 1, 2015 17:31
Install FreeSWITCH 1.6
#!/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
@areski
areski / install-freeswitch.sh
Created November 30, 2015 17:54
FreeSWITCH 1.6
#!/bin/bash
#
# Newfies-Dialer License
# http://www.newfies-dialer.org
#
# Copyright (C) 2011-2015 Star2Billing S.L.
# Arezqui Belaid <info@star2billing.com>
#
@areski
areski / playriak.py
Created January 9, 2015 16:25
Play with Riak - Python
#
# Play with Riak
#
import riak
myClient = riak.RiakClient(pb_port=8087, protocol='pbc')
myBucket = myClient.bucket('test')
val1 = 1
@areski
areski / a2billing_webservice.conf
Created September 14, 2014 21:49
a2billing_webservice.conf
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>
@areski
areski / robots.txt
Last active August 29, 2015 14:06
Wordpress robots.txt
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
@areski
areski / wp_htaccess
Created September 14, 2014 18:00
Wordpress HTAccess
<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
@areski
areski / wp.sh
Last active January 25, 2022 05:41 — forked from bgallagh3r/wp.sh
#!/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)`
@areski
areski / django-class-based-val.py
Created August 8, 2014 13:46
Figuring out Django class-based validators
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"
@areski
areski / install-xapian
Created August 6, 2014 15:55
Install xapian Core and Bindings on Ubuntu 14.04 LTS
# 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
@areski
areski / install-r17b01.sh
Created June 30, 2014 10:10
Script to install Erlang R17B01
# 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