npm v3.10 - ◾
If you are learning npm then i would suggest to go for yarn, dont waste your time in learning npm
npm install -g npm
# Downgrade to a specific version
[alias] | |
recent = "!r(){ git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' --color=always|column -ts'|'; }; r" |
for i in $( ls | grep [A-Z] ); do mv -i $i `echo $i | tr 'A-Z' 'a-z'`; done |
docker run -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb |
# start nodeenv virtual env if it exists | |
# for whenever you open integrated terminal in vscode | |
if [ -d ".nenv" ]; then | |
. ".nenv/bin/activate" | |
fi |
If you are learning npm then i would suggest to go for yarn, dont waste your time in learning npm
npm install -g npm
# Downgrade to a specific version
A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.
A collection of links to the "Master the JavaScript Interview" series of medium stories by Eric Elliott.
Here's an example of how to debug Mocha v4 if it hangs.
Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).
If you run your test, you'll notice it hangs:
$ mocha test.js
#!/bin/bash | |
# CREDITS | |
# Author: Markus Geiger <mg@evolution515.net> | |
# Permission to copy and modify is granted under the Creative Commons Attribution 4.0 license | |
# Updated by Bluerayne: https://gist.github.com/blurayne/f63c5a8521c0eeab8e9afd8baa45c65e | |
# INSPIRED BY | |
# - https://serverfault.com/questions/144939/multi-select-menu-in-bash-script | |
# https://www.bughunter2k.de/blog/cursor-controlled-selectmenu-in-bash |
Are you tired of having to run docker as root? Well look no further, the solution is here. The instructions below were tested on Ubuntu 20.04
First, if you haven't already, install and enable docker:
sudo apt update && sudo apt install docker.io --yes
sudo systemctl enable --now docker
Download latest docker compose (or replace latest
in url with desired version number):