Visual Studio Code NVM Node Issue
NVM
Given that nvm
is installed on Mac OS X High Sierra or Mojave using the install script
~/.bash_profile
export NVM_DIR="$HOME/.nvm"
Given that nvm
is installed on Mac OS X High Sierra or Mojave using the install script
~/.bash_profile
export NVM_DIR="$HOME/.nvm"
How to resolve Git line ending issues in Docker containers resulting in many modified files.
Since Windows and Linux use different default line endings, Git may report a
Standard escape codes are prefixed with Escape
:
^[
\033
\u001b
\x1b
27
FROM node:latest | |
# ---------------------------------------------------------------------------- | |
# Gist: https://gist.github.com/jonlabelle/fafd49c64ce299ba7bd7227de0df995a | |
# ---------------------------------------------------------------------------- | |
# Update NPM and Yarn to the latest versions | |
RUN npm install --global npm | |
WORKDIR /app |
5 simple steps that I tested and used to make the change in under 1 minute.
Move the master
branch to main
git branch --move master main
title | subtitle | author | date | source | snippet | gist | notoc |
---|---|---|---|---|---|---|---|
kubectl Cheatsheet |
This page contains a list of commonly used kubectl commands and flags. |
July 19, 2021 |
false |
title | subtitle | date | source |
---|---|---|---|
BEM cheatsheet |
Block Element Modifier (BEM) naming convention cheatsheet. |
June 13, 2021 |
The name of a BEM entity is unique. The same BEM entity always has the same name
function Get-Basename | |
{ | |
<# | |
.SYNOPSIS | |
Gets the file name or directory portion of a path. | |
Similar (but not exact) to the POSIX BASENAME(1) command, written in PowerShell. | |
Author: Jon LaBelle | |
License: MIT |
#!/usr/bin/env bash | |
# | |
# Performs a simple semver comparison of the two arguments. | |
# | |
# Original: https://github.com/mritd/shell_scripts/blob/master/version.sh | |
# Snippet: https://jonlabelle.com/snippets/view/shell/compare-semver-versions-in-bash | |
# Gist: https://gist.github.com/jonlabelle/6691d740f404b9736116c22195a8d706 | |
# |
npm uses Semantic Versioning. Given a version number MAJOR.MINOR.PATCH
, increment the: