Skip to content

Instantly share code, notes, and snippets.

View mayowDev's full-sized avatar
🎯
passionate ❤️ Dev

Abdirahman Abukar mayowDev

🎯
passionate ❤️ Dev
  • Self Contractor
  • Remote
View GitHub Profile
@mayowDev
mayowDev / nvmCommands.js
Created February 11, 2021 13:51 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@mayowDev
mayowDev / node_nginx_ssl.md
Created August 13, 2020 09:51 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@mayowDev
mayowDev / mysql_cheat_sheet.md
Created August 13, 2020 08:24 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@mayowDev
mayowDev / pdocrash.php
Created April 16, 2020 06:46 — forked from bradtraversy/pdocrash.php
PDO & Prepared Statements Snippets
<?php
$host = 'localhost';
$user = 'root';
$password = '123456';
$dbname = 'pdoposts';
// Set DSN
$dsn = 'mysql:host='. $host .';dbname='. $dbname;
// Create a PDO instance
@mayowDev
mayowDev / npmcrashcourse.md
Last active October 26, 2020 12:58 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands

GET VERSION

npm -v (or --version)

GET HELP

npm help npm

CREATE PACKAGE.JSON

npm init npm init -y (or --yes)