Importing database backup with progress bar to running docker container.
Use a MySQL image with pv installed.
FROM mysql:8.0
RUN apt-get update
RUN apt-get install -y pv
COPY my.cnf /etc/mysql/conf.d/my.cnf
{ | |
"pl": "Cześć", | |
"en": "Hello" | |
} |
function make_dir() { | |
REPLY=$1 | |
mkdir -p $REPLY $REPLY"/video/A-ROLL" $REPLY"/video/B-ROLL" $REPLY"/EXPORT" $REPLY"/music" $REPLY"/MISC" $REPLY"/THUMB" | |
echo Directory $REPLY created🎉 | |
} | |
echo "VIDEO DIRECTORY MAKER" | |
if ! [ -z $1 ]; then | |
make_dir $1 | |
else |
sudo groupadd devs // Creating a group called devs | |
sudo usermod -a -G devs $USER // Adding curresnt user to group devs | |
// RELOG TO SERVER to see the changes in groups | |
groups // to se if current user has been added to group devs | |
mkdir REPO // creating directory that leter will contain our repository | |
sudo chgrp -R devs REPO // setting group priviliges to dir REPO | |
sudo chmod -R g+swrx REPO // setting other priviliges to dir REPO | |
cd REPO // openinig the direcotry | |
git clone repo.git . // clonning repo to the directory. dot(.) represent here |
proxy_connect_timeout 80; | |
proxy_send_timeout 80; | |
proxy_read_timeout 80; | |
send_timeout 80; |
# Zadanie | |
# Napisz program, który za pomocą obiektów zaprezentuje koszyk oraz wprowadzi funkcję dodawania produktu do koszyka. Napisz klasę Banan która rozszerzy obiekt Produkt zmieniając jego nazwę i cenę. | |
# Uzupełnij obiekt koszyka o medodę dodawania produktu oraz sumy cen wszystkich produktów. | |
from typing import List | |
class Product: | |
_price: float |
Importing database backup with progress bar to running docker container.
Use a MySQL image with pv installed.
FROM mysql:8.0
RUN apt-get update
RUN apt-get install -y pv
COPY my.cnf /etc/mysql/conf.d/my.cnf
.SILENT: | |
SHELL=/bin/bash | |
IS_ENV_PRESENT=$(shell test -e .env && echo -n yes) | |
PWD=`pwd` | |
ifeq ($(IS_ENV_PRESENT), yes) | |
include .env | |
export $(shell sed 's/=.*//' .env) | |
endif |
Future<T> pushModuleAndRouteNamed<T extends Object>( | |
int module, | |
String routeName, { | |
Object arguments, | |
}) async { | |
if (widget.modules.keys.contains(module)) { | |
setState(() { | |
_currentModule = module; | |
}); | |
} |
@override | |
Widget build(BuildContext context) { | |
return ModuleNavigatorData( | |
data: this, | |
child: WillPopScope( | |
onWillPop: () async { | |
_navigationKeys[_currentModule].currentState.maybePop(); | |
return false; | |
}, | |
child: Scaffold( |
List<Widget> _buildModules() { | |
List<Widget> modules = []; | |
widget.modules.forEach((moduleIndex, module) { | |
modules.add(_buildOffstageNavigator(moduleIndex, module)); | |
}); | |
return modules; | |
} | |
Widget _buildOffstageNavigator(int index, Module module) { |