Skip to content

Instantly share code, notes, and snippets.

View Sohaib-Sherif's full-sized avatar
🧐
Analyzing new possiblities

Sohaib Sherif Sohaib-Sherif

🧐
Analyzing new possiblities
View GitHub Profile
@Sohaib-Sherif
Sohaib-Sherif / Dockerfile
Created December 8, 2020 14:56 — forked from shumbashi/Dockerfile
Dockerfile multi-stage example for JS/PHP App
###############################################################################
# Step 1 : NPM Builder image
#
FROM node:lts-alpine AS npm-builder
# Define working directory and copy source
WORKDIR /home/node/app
COPY ./my_app/package.json ./my_app/modernizr-config.json ./
# Install dependencies and build whatever you have to build
RUN apk add --no-cache git
@Sohaib-Sherif
Sohaib-Sherif / H2JDBC
Created February 26, 2018 18:54 — forked from volnoboy/H2JDBC
H2 JDBC Example
package com.volnoboy;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class H2JDBC {