Skip to content

Instantly share code, notes, and snippets.

@przor3n
przor3n / README.md
Created April 1, 2020 07:44 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@przor3n
przor3n / Email Server (Linux, Unix, Mac).md
Last active January 15, 2020 16:59 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@przor3n
przor3n / web-servers.md
Created August 16, 2019 18:02 — 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