Skip to content

Instantly share code, notes, and snippets.

View farisshajahan's full-sized avatar

Faris Shajahan farisshajahan

View GitHub Profile
@farisshajahan
farisshajahan / openscholar.sh
Last active July 21, 2018 12:52
Setting up OpenScholar on your Linux machine (detailed)
# 1. Installing LAMP stack
sudo apt-get update
sudo apt-get install apache2 mysql-server mysql-client php libapache2-mod-php php-mysql phpmyadmin
# Note: A few questions are asked during the installation of phpmyadmin. Select apache2 in the first window
# using spacebar and use Tabspace and Return key to select options. For most questions, give the recommended
# option else search the Internet.
# 1.1 Setup MySQL
@farisshajahan
farisshajahan / Dockerfile
Created April 30, 2020 08:43
Multistage Dockerfile for rails projects
FROM ruby:2.7.0-alpine as builder
RUN apk add \
build-base \
curl \
ca-certificates \
gnupg1 \
libffi-dev \
graphicsmagick \
libsodium-dev \
@farisshajahan
farisshajahan / Dockerfile
Created May 2, 2020 08:11
Sample Multi-stage Dockerfile for Nest/Node projects
FROM node:12.14-alpine as development
RUN apk add python python3 make g++
WORKDIR /usr/src/app
COPY . ./
RUN npm install
RUN npm run build
RUN npm prune --production
FROM node:12.14-alpine as production
WORKDIR /usr/src/app