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
backend default { | |
.host = "127.0.0.1"; # IP address of your backend (Apache, nginx, etc.) | |
.port = "8080"; # Port your backend is listening on | |
} | |
sub vcl_recv { | |
# Set the URI of your system directory | |
if (req.request == "POST" || req.http.X-Requested-With == "XMLHttpRequest") | |
{ |
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/python | |
import json | |
from subprocess import Popen, PIPE | |
txt = raw_input(); | |
cmd = txt.split() | |
o = None | |
e =None | |
try: | |
p = Popen(cmd, stdout=PIPE, stderr=PIPE) |
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
<?php | |
/** | |
* BoxBilling | |
* | |
* LICENSE | |
* | |
* This source file is subject to the license that is bundled | |
* with this package in the file LICENSE.txt | |
* It is also available through the world-wide-web at this URL: | |
* http://www.boxbilling.com/LICENSE.txt |
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/sh | |
git reset --hard HEAD | |
git pull | |
git submodule update --init |
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
<?php | |
$CsvString = file_get_contents('https://raw.github.com/gavingmiller/second-level-domains/master/SLDs.csv'); | |
$Data = str_getcsv($CsvString, PHP_EOL); | |
foreach($Data as &$Row) { | |
list($tld, $stld) = str_getcsv($Row, ","); | |
$Row = $stld; | |
} | |
var_export($Data, true); |
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
#http://pear.phpunit.de/ | |
sudo pear install phpunit/PHP_Invoker | |
sudo pear install phpunit/PHPUnit_Selenium | |
sudo pear install phpunit/PHPUnit_Story |
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
<?php | |
class WebHookEvent | |
{ | |
private $name = null; | |
private $params = array(); | |
public function setName($event) | |
{ | |
$this->name = $event; |
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/sh | |
killall -9 svnserve | |
svnserve -d -r /var/repositories/ |
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
<?php | |
/* | |
* This file is part of Queue Manager. | |
* | |
* (c) 2011 SparkleBit <info@sparklebit.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
<target name="stage" depends="build-source"> | |
<property name="remote.user" value="username" /> | |
<property name="remote.address" value="hostname" /> | |
<property name="remote.path" value="~/v_${version}" /> | |
<property name="remote.shared_path" value="~/v_shared" /> | |
<echo message="Deploying project ${ant.project.name} source ${source} to server ${remote.address} ${remote.path}" /> | |
<exec dir="." executable="rsync" failonerror="true"> | |
<arg line="-avPe ssh ${source}/ ${remote.user}@${remote.address}:${remote.path}" /> |