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
#!/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 |
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
# 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 |
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 |
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
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 -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
<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
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
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> |