- Lite images: https://downloads.raspberrypi.org/raspbian_lite/images/
- With desktop: https://downloads.raspberrypi.org/raspbian/images/
- With desktop & recommended software: https://downloads.raspberrypi.org/raspbian_full/images/
STEP 2: setup docker to run react app (dev and production) configuration: https://gist.github.com/przbadu/929fc2b0d5d4cd78a5efe76d37f891b6
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '0.1' | |
namespace: spryker-dynamic-store | |
tag: 'dev' | |
environment: docker.dev | |
image: | |
tag: spryker/php:8.1 | |
php: | |
enabled-extensions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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('«' => date('n', $time) - 1, '»' => 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 |
Based on https://gist.github.com/joaomlneto/74338ef17f3591f04ee20413b5b4a57e
IP: 192.168.88.125
- Create directory for mount
mkdir -p /Users/username/nfs/linux-server/projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chown -R mysql:mysql /var/lib/mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
NewerOlder