Skip to content

Instantly share code, notes, and snippets.

View geega's full-sized avatar
🇺🇦

Svyatoslav Varpikhovsky geega

🇺🇦
View GitHub Profile
@geega
geega / react-on-docker.md
Created May 7, 2023 19:36 — forked from przbadu/react-on-docker.md
Setup Docker for React development

STEP 2: setup docker to run react app (dev and production) configuration: https://gist.github.com/przbadu/929fc2b0d5d4cd78a5efe76d37f891b6

Setup Docker for React development

Because we are using Docker, we are not going to install node, npm, create-react-app in our development machine, not even for generating create-react-app scaffold.

For this purpose I am using 2-step docker configuration:

  • In first step, we will create a simple docker container, that does only one thing, install create-react-app
@geega
geega / Comparison Espressif ESP MCUs.md
Created March 24, 2023 21:58 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@geega
geega / deploy.dev.new.yml
Last active March 2, 2023 14:31
Spryker Diff deploy dev yml
version: '0.1'
namespace: spryker-dynamic-store
tag: 'dev'
environment: docker.dev
image:
tag: spryker/php:8.1
php:
enabled-extensions:
@geega
geega / calendar.php
Created January 28, 2023 20:05
Calendar HTML render
<?php
//http://keithdevens.com/software/php_calendar
$time = time();
$today = date('j', $time);
$days = array($today => array(null, null,'<div id="today">' . $today . '</div>'));
$pn = array('&laquo;' => date('n', $time) - 1, '&raquo;' => date('n', $time) + 1);
echo generate_calendar(date('Y', $time), date('n', $time), $days, 1, null, 0);
// PHP Calendar (version 2 . 3), written by Keith Devens
// http://keithdevens . com/software/php_calendar

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

@geega
geega / mac.md
Last active September 13, 2022 19:11
NFS server on Ubuntu and NFS Clint Mac
@geega
geega / fix.sh
Created September 8, 2019 08:55
MySQL fix permission in docker
chown -R mysql:mysql /var/lib/mysql
@geega
geega / mysql-docker.sh
Created July 20, 2019 06:47 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">