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 / 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-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_luasql.sh
Last active August 2, 2022 12:38
Install LuaSQL for FreeSWITCH on Debian7
#!/bin/bash
#
# Install LuaSQL on Debian7
#
#Install Dependencies
apt-get install -y lua5.2 liblua5.2-dev
apt-get install -y libpq-dev
#apt-get install lua-sql-postgres-dev
@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)`
<!-- contact form -->
<div class="contact-form mb-5">
<form id="contactform" name="contactform" method="post">
<div class="row">
<div class="col-md-6 spaces">
<input name="email" class="form-control" type="text" placeholder="Email" aria-label="Email">
</div>
<div class="col-md-6">
<input name="phonenumber" class="form-control" type="text" placeholder="Phone Number" aria-label="Request live demo">
</div>
@areski
areski / contact.html
Created April 16, 2019 10:24 — forked from ShuvoHabib/contact.html
Mailgun Contact Form
<div class="contact-form">
<form id="contactform" name="contactform" method="post">
<div class="row">
<div class="col-sm-6">
<input name="name" class="form-control" type="text" placeholder="Name*"/>
</div>
<div class="col-sm-6">
<input name="email" class="form-control" type="email" placeholder="Email*"/>
</div>
<div class="clearfix"></div>
@areski
areski / run-sipp.sh
Last active February 1, 2019 09:28
Run SIPP
#!/bin/bash
#
# Newfies-Dialer - Stress testing stack
# Copyright (C) <2019> <Belaid Arezqui>
#
#
# Install and run SIPP
#
# Usage:
# bash run-sipp.sh install
@areski
areski / install-freeswitch-17.sh
Created March 23, 2016 10:44
Install FreeSWITCH 1.7
#!/bin/bash
#
# Arezqui Belaid <areski@gmail.com>
#
FS_CONFIG_PATH=/etc/freeswitch
FS_BASE_PATH=/usr/src
FS_VERSION=v1.7
@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 / freeswitch-debian.init
Created March 23, 2016 10:20
FreeSWITCH init
#!/bin/bash
### BEGIN INIT INFO
# Provides: freeswitch
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Freeswitch debian init script.
# Author: Matthew Williams
#