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
#!/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 | |
# | |
# 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 |
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
<!-- 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> |
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
<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> |
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 - Stress testing stack | |
# Copyright (C) <2019> <Belaid Arezqui> | |
# | |
# | |
# Install and run SIPP | |
# | |
# Usage: | |
# bash run-sipp.sh install |
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 | |
# | |
# Arezqui Belaid <areski@gmail.com> | |
# | |
FS_CONFIG_PATH=/etc/freeswitch | |
FS_BASE_PATH=/usr/src | |
FS_VERSION=v1.7 | |
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
#!/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 | |
# |
NewerOlder