Skip to content

Instantly share code, notes, and snippets.

@ybudimirov
ybudimirov / web-servers.md
Created September 29, 2020 15:27 — 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
@ybudimirov
ybudimirov / Apache.md
Created August 6, 2018 10:33 — forked from ignatisD/Apache.md
MailHog localhost xampp/wamp integration

#MailHog example page

MailHog is an email testing tool for developers.

It gives the developer the option to intercept and inspect the emails sent by his application.

You can download the MailHog Windows client from one of the links below.

@ybudimirov
ybudimirov / add-dns-record.sh
Last active April 11, 2018 12:06 — forked from justinclayton/add-dns-record.sh
CLI to add DNS Records in Route53
#!/bin/bash
## Allows for creation of "Basic" DNS records in a Route53 hosted zone
## set some defaults if variables haven't been overridden on script execute
zone_name=${zone_name:-example.com.}
action=${action:-UPSERT}
record_type=${record_type:-A}
ttl=${ttl:-300}
wait_for_sync=${wait_for_sync:-false}
# echo $zone_name
@ybudimirov
ybudimirov / gist:24ed05f4adae6aeecaf6da19864b6712
Created May 10, 2017 09:35 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>