Skip to content

Instantly share code, notes, and snippets.

View nickganguly07's full-sized avatar

Abhishek (Nick) Ganguly nickganguly07

View GitHub Profile
@nickganguly07
nickganguly07 / nvmCommands.js
Created September 16, 2021 16:00 — 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
Commands
------------
1. Build Docker Image
docker build -t test .
2. Run container /w image
docker run -d --publish 8888:5000 test
3. Login to ECR
aws ecr get-login-password --region REGIONHERE!!!! | docker login --username AWS --password-stdin ACCOUNTIDHERE!!!!.dkr.ecr.REGIONHERE!!!.amazonaws.com
@nickganguly07
nickganguly07 / Dockerfile
Last active July 11, 2020 23:16
Docker build script for Miniconda dedicated for machine learning
# Build an image
FROM python:3.7.8-buster
RUN apt-get update && apt-get install apt-utils vim nano wget curl zsh git libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 -qq
RUN curl -o- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN /bin/bash Miniconda3-latest-Linux-x86_64.sh -b
RUN rm -rf Miniconda3-latest-Linux-x86_64.sh
RUN echo "export PATH=/root/miniconda3/bin:$PATH" >> /root/.zshrc
@nickganguly07
nickganguly07 / .gitignore
Last active January 15, 2020 14:00
Default .gitignore file for most projects
# Created by https://www.gitignore.io/api/vim,clion,macos,adobe,pycharm,appcode,codekit,rubymine,archives,intellij,webstorm,phpstorm,sublimetext,intellij+iml
### Adobe ###
# Adobe Source Files
*.psd
*.ai
*.indd
*.prproj
*.aep