Skip to content

Instantly share code, notes, and snippets.

@ethmz
ethmz / web-servers.md
Created January 18, 2020 09:04 — forked from willurd/web-servers.md
Big list of http static server one-liners

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
@ethmz
ethmz / README.md
Created November 12, 2018 09:49 — forked from mindplay-dk/README.md
ISO 3166-2 Country and State/Region Tables for MySQL
@ethmz
ethmz / _searchresults.php
Created November 4, 2018 07:52 — forked from utrenkner/_searchresults.php
Directory App 2018 - geo search
<?php
require_once(__DIR__ . '/inc/config.php');
/*--------------------------------------------------
init
--------------------------------------------------*/
$total_rows = 0;
$response = array();
$query_city_id = !empty($_GET['city_id']) ? $_GET['city_id'] : 0;