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
#!/usr/bin/env python
"""
- Search Github for repos, return results and clone via menu selection.
- Created because we all spend far too much time looking for the repo addresses.
- Requires 'requests' lib, install on deb system with: sudo apt-get install python-pip; sudo pip install requests
- sudo wget https://gist.github.com/LukeBeer/9bb732dd6129ebd92fdc/raw/gitget.py -O /usr/local/bin/gitget; sudo chmod +x /usr/local/bin/gitget
"""
import sys
@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 / luasql_config
Last active August 29, 2015 14:02
luasql_config
# Driver (leave uncommented ONLY the line with the name of the driver)
#T= mysql
#T= oci8
#T= odbc
T= postgres
#T= sqlite
#T=sqlite3
#T=firebird
# Installation directories
@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
@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 / 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 / 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 / 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 / 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 / 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>