Skip to content

Instantly share code, notes, and snippets.

#Remove Java 1.7
yum remove java-1.7.0*
#Install Java 1.8*
yum install java-1.8*
#Setup the jre path -
find /usr/lib/jvm/java-1.8* | head -n 3
#Open the bash file
import { ApolloClient, InMemoryCache } from "@apollo/client";
import { NextPageContext } from "next";
import React from "react";
import App from "next/app";
import Head from "next/head";
import { ApolloProvider } from "@apollo/client";
// On the client, we store the Apollo Client in the following variable.
{ "_id" : { "$oid" : "50b59cd75bed76f46522c34e" }, "student_id" : 0, "class_id" : 2, "scores" : [ { "type" : "exam", "score" : 57.92947112575566 }, { "type" : "quiz", "score" : 21.24542588206755 }, { "type" : "homework", "score" : 68.19567810587429 }, { "type" : "homework", "score" : 67.95019716560351 }, { "type" : "homework", "score" : 18.81037253352722 } ] }
{ "_id" : { "$oid" : "50b59cd75bed76f46522c34f" }, "student_id" : 0, "class_id" : 28, "scores" : [ { "type" : "exam", "score" : 39.17749400402234 }, { "type" : "quiz", "score" : 78.44172815491468 }, { "type" : "homework", "score" : 20.81782269075502 }, { "type" : "homework", "score" : 70.44520452408949 }, { "type" : "homework", "score" : 50.66616327819226 }, { "type" : "homework", "score" : 53.84983118363991 } ] }
{ "_id" : { "$oid" : "50b59cd75bed76f46522c350" }, "student_id" : 0, "class_id" : 5, "scores" : [ { "type" : "exam", "score" : 88.22950674232497 }, { "type" : "quiz", "score" : 79.28962650427184 }, { "type" : "homework", "score" : 18.662549465
ARG BASE_IMAGE_TAG=7.2-apache
FROM drupaldocker/php:${BASE_IMAGE_TAG}
# Install CLI dependencies
RUN apt-get update && apt-get install -y mariadb-client curl git vim \
&& apt-get clean
# Install Composer
RUN echo "allow_url_fopen = On" > /usr/local/etc/php/conf.d/drupal-01.ini
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -- --filename=composer
# from https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements
FROM php:7.4-apache-buster
# install the PHP extensions we need
# install the PHP extensions we need
RUN set -ex; \
\
if command -v a2enmod; then \
a2enmod rewrite; \
a2enmod headers; \
{
"_id" : ObjectId("5f9a940f9d32533a3dc9b2d6"),
"gender" : "male",
"name" : {
"first" : "john",
"last" : "doe"
},
"location" : {
"coordinates" : {
"latitude" : "-10.5930",
aws cognito-idp --region ap-south-1 sign-up --client-id 2gehuu8k4c1l3e975 --username jay.desai@leobur.co.in --password jaydesai --user-attributes Name=name,Value=Jay
/* 1 createdAt:31/10/2020, 13:24:33*/
{
"_id" : ObjectId("5f9d18391e7c5fbc3e2475c6"),
"username" : "jazz",
"email" : "jazz@hotmail.com",
"age" : 30,
"password" : "b",
"playlists" : [
{
"_id" : 8,
const express = require('express');
const helmet = require('helmet');
const app = express();
app.use(helmet.hsts({
maxAge: 2592000 //ThirtyDaysInSeconds
}))
FROM node:12
ENV PORT 3000
# Create app directory
RUN mkdir /var/movable/ && mkdir /var/movable/app
WORKDIR /var/movable/app
RUN rm -rf .next*
# Installing dependencies