Skip to content

Instantly share code, notes, and snippets.

View UmairBaig8's full-sized avatar
No one is you and that is your superpower.

Umair Baig UmairBaig8

No one is you and that is your superpower.
View GitHub Profile
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active August 22, 2025 13:17
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

@willurd
willurd / web-servers.md
Last active October 24, 2025 16:17
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