Skip to content

Instantly share code, notes, and snippets.

View urbanmarcen's full-sized avatar

Urban Marcen urbanmarcen

  • Intersol d.o.o.
  • Maribor, Slovenia
View GitHub Profile
@urbanmarcen
urbanmarcen / ReactFunctionalComponentTemplate.js
Last active January 30, 2020 07:51
A simple template for a Functional react component (with i18n, Redux, Material UI)
import React, { useState, useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
// Get context for services and actions
import context from "context/";
// Material UI
import Grid from "@material-ui/core/Grid";
@urbanmarcen
urbanmarcen / docker-image-backup.txt
Last active November 2, 2019 21:55
Docker container image backup
1. LIST CONTAINERS
docker ps
2. CREATE A BACKUP IMAGE OF DOCKER CONTAINER
docker commit -p <DOCKER_ID>:<VERSION> <BACKUP_IMAGE_NAME>
3. LIST AND PACK NEW IMAGE TO .TAR
docker images
docker save -o <BAKUP_ARCHIVE_NAME(.tar)> <BACKUP_IMAGE_NAME>