- I use this docker-compose for MySQL
services:
# Database
db:
image: mysql:8.0.35
# volumes:
# - docker_mysql_data:/var/lib/mysql
restart: always
environment:
services:
# Database
db:
image: mysql:8.0.35
# volumes:
# - docker_mysql_data:/var/lib/mysql
restart: always
environment:
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
# Rewrite non /app/build/ requests to /app/build/ | |
RewriteCond %{REQUEST_URI} !^/app/build/ | |
RewriteRule ^(.*)$ /app/build/$1 [L] | |
# Rewrite requests to non-existing files/dirs to /app/build/index.html | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
web: | |
image: 'gitlab/gitlab-ee:latest' | |
restart: always | |
hostname: 'gitlab.example.com' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://gitlab.example.com' | |
# Add any other gitlab.rb configuration here, each on its own line | |
puma['worker_processes'] = 0 | |
sidekiq['max_concurrency'] = 10 |
import 'package:bloc/bloc.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:meta/meta.dart'; | |
void main() { | |
runApp( | |
BlocProvider( | |
create: (context) => MyBloc(), | |
child: MaterialApp( |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
// is the name L5PCbiophys fine? | |
// How should we reference the cell? $o1? | |
// Should we use $o1.distribute_channels? | |
begintemplate L5PCbiophys | |
public biophys | |
proc biophys() { | |
forsec $o1.all { | |
insert pas |
#!/bin/sh | |
echo "IMPORTANT! INSTALL_DIR arg must be an absolute path!" | |
set -e | |
SRC_DIR=$1 | |
INSTALL_DIR=$2 | |
if [ ! -e ${INSTALL_DIR}/.install_finished ] | |
then | |
echo 'Neuron was not fully installed in previous build, installing ...' |
<html> | |
<body> | |
<h2>Privacy Policy</h2> | |
<p>Aleksei Sanin built the NGS Run Calculator (com.asanin.ngs.run.calculator) app as a free app. This SERVICE is provided by Aleksei Sanin at no cost and is intended | |
for use as is.</p> | |
<p>This page is used to inform website visitors regarding my policies with the collection, use, and | |
disclosure of Personal Information if anyone decided to use my Service.</p> | |
<p>If you choose to use my Service, then you agree to the collection and use of information in | |
relation with this policy. The Personal Information that I collect are used for providing and | |
improving the Service. I will not use or share your information with anyone except as described |
// пример глубокого копирования в Javascript. Берет на вход объект obj и возвращает его глубокую копию. | |
function deepCopy(obj) { | |
return JSON.parse(JSON.stringify(obj)); | |
} | |
// Каковы значения `o_direct`, `o_shallow`, `o_deep` в каждом нижеприведенном блоке кода? | |
// Каждый блок кода отделен друг от друга длинным комментарием `/////////////////`. | |
// Считается, что каждый блок исполняется независимо друг от друга. | |
function a_b_numbers() { |