- Create a .gitignore file in the git repository if it does not contain one
touch .gitignore
2. Open up the .gitignore and add the following line to the file
node_modules 3. Remove the node_modules folder from the git repository
#!/bin/sh | |
# This script is called on startup to remap keys. | |
# Increase key speed via a rate change | |
xset r rate 300 50 | |
setxkbmap us -variant colemak # set up the default keyboard layout to colemak | |
# make CapsLock behave like Ctrl: | |
setxkbmap -option ctrl:nocaps | |
# make short-pressed Ctrl behave like Escape: | |
xcape -e 'Control_L=Escape' |
#!/bin/sh | |
# This script is called on startup to remap keys. | |
# Increase key speed via a rate change | |
xset r rate 300 50 | |
setxkbmap us -variant colemak # set up the default keyboard layout to colemak | |
# Map the caps lock key to super... | |
setxkbmap -option caps:super | |
# But when it is pressed only once, treat it as escape. | |
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' |
const http = require('http'); | |
const fs = require('fs'); | |
// the http module has a createServer method. | |
// Takes 1 arg | |
// 1. callbacks, callbacks, has 2 args: req, res | |
const server = http.createServer((req, res) => { | |
if (req.url === '/') { | |
//res = ouw way of responding to the requester. | |
//http message. | |
//1. start line check |
[ | |
{ | |
"name": "Advanced Git Workshop", | |
"instructor": "Edwin Kamau", | |
"description": "level up your Git Skills", | |
"website": "https://eduuh.codes", | |
"phone": "(333) 333-3333", | |
"email": "[email protected]", | |
"address": "Dkut Kenya", | |
"careers": ["Web Development", "Data Science", "Business"], |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
[
// ===================================================
// window navigation
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+l",
#### Functional requirements. | |
1. Mantain a library of albums/songs. | |
2. Allow users to browse albums/songs. | |
3. Allow users to select individual songs. | |
4. Prevent user from selecting entire albums. | |
5. Maitain a queue of song to play. | |
6. Play music. | |
7. Allow users to sort by artist. |