Skip to content

Instantly share code, notes, and snippets.

View amos-kibet's full-sized avatar
💭
Nyiganet

Amos Kibet amos-kibet

💭
Nyiganet
View GitHub Profile
@amos-kibet
amos-kibet / mern-server-setup.md
Created November 7, 2022 15:22 — forked from sankaire/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

@mraaroncruz
mraaroncruz / working_webserver.livemd
Created September 1, 2022 23:22
A livebook with a running http server that can accept requests

Working webserver

Mix.install([
  {:plug_cowboy, "> 0.0.0"},
  {:jason, "> 0.0.0"},
  {:httpoison, "> 0.0.0"}
])
// 20230518173256
// https://gist.githubusercontent.com/theguuholi/0a8d3c8ca651f0fe737e10d53415eb20/raw/5a7e49e9c0a7b88b8449639e620d92dde435e5e6/vscode-settings.json
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"emmet.includeLanguages": {
"html-eex": "html"
},
"files.associations": {
@bradtraversy
bradtraversy / python_mysql.py
Last active August 5, 2023 12:47
Python & MySQL crash course for beginners
import mysql.connector
from mysql.connector import errorcode
config = {
'user': 'root',
'password': '',
'host': 'localhost',
'database': 'acme'
}
@kharioki
kharioki / counties.json
Last active May 7, 2024 10:19 — forked from pensely/counties.json
Kenya county names, codes and capitals in JSON
[{
"name": "Mombasa",
"code": 1,
"capital": "Mombasa City"
}, {
"name": "Kwale",
"code": 2,
"capital": "Kwale"
}, {
"name": "Kilifi",