Skip to content

Instantly share code, notes, and snippets.

View timothykimemia's full-sized avatar

Timothy Kimemia timothykimemia

View GitHub Profile
@timothykimemia
timothykimemia / mern-server-setup.md
Created June 21, 2022 19:18 — forked from bradtraversy/mern-server-setup.md
Setup Ubuntu & Deploy MERN app

Linux Server Setup & MERN App Deployment

These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.

Create an account at Linode

Click on Create Linode

Choose your server options (OS, region, etc)

SSH Keys

@timothykimemia
timothykimemia / fullNameToFirstName.php
Created January 21, 2018 14:01 — forked from stilliard/fullNameToFirstName.php
PHP - Get a users first name from the full name
<?php
/**
* Get a users first name from the full name
* or return the full name if first name cannot be found
* e.g.
* James Smith -> James
* James C. Smith -> James
* Mr James Smith -> James
* Mr Smith -> Mr Smith
@timothykimemia
timothykimemia / mydomain.com
Created November 2, 2017 17:58 — forked from wells/mydomain.com
Example nginx config for Laravel
server {
listen 80;
server_name mydomain.com;
root "/srv/www/mydomain.com/public";
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri d$uri/ /index.php?$query_string;