Skip to content

Instantly share code, notes, and snippets.

View slivorezka's full-sized avatar

Andrii Malieiev slivorezka

View GitHub Profile
@asugai
asugai / Install composer on Amazon AMI running on EC2
Last active May 12, 2026 19:14
Install composer on Amazon AMI running on EC2
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active June 14, 2026 08:52
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