Skip to content

Instantly share code, notes, and snippets.

View eriknguyen's full-sized avatar
🎯
f̶̗̣̰̥̝̘̹̞́͑̋̄̋̀̿͐̑͜͝ọ̴͙̦̟̾c̵̡̱̭̲̣͔̦͎͂̈̈́̆͊͗̚͝u̴̡͖̮̬͍͍͊͋̈́̓͠s̷̱̎̓̐͆

Erik Nguyen eriknguyen

🎯
f̶̗̣̰̥̝̘̹̞́͑̋̄̋̀̿͐̑͜͝ọ̴͙̦̟̾c̵̡̱̭̲̣͔̦͎͂̈̈́̆͊͗̚͝u̴̡͖̮̬͍͍͊͋̈́̓͠s̷̱̎̓̐͆
View GitHub Profile
@nrollr
nrollr / Commands.sh
Last active January 10, 2023 11:55
Install PHP and NGINX on Amazon Linux AMI
## Install NGINX
## when installing on Amazon Linux AMI, use:
$ sudo yum install nginx -y
## when installing on Amazon Linux 2 AMI, use
$ sudo amazon-linux-extras install nginx1.12 -y
## Install PHP and PHP-FPM
# for PHP version 7.1 use php71 and php71-fpm instead
$ sudo yum install php -y
$ sudo yum install php-fpm -y
@staltz
staltz / introrx.md
Last active April 24, 2024 19:47
The introduction to Reactive Programming you've been missing
@postrational
postrational / gunicorn_start.bash
Last active April 4, 2024 12:48
Example of how to set up Django on Nginx with Gunicorn and supervisordhttp://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket
USER=hello # the user to run as
GROUP=webapps # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name