- have fun with them
- projections
- filters
- resource-keys
- scripting-gcloud
- gcloud alpha interactive
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-1-114924737
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-2-4d049a656f1a
- https://gist.github.com/bborysenko/97749fe0514b819a5a87611e6aea3db8
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
// add this line | |
Alice alice = Alice(showNotification: true); | |
// | |
@override | |
Widget build(BuildContext context) { | |
return StoreProvider<AppState>( | |
store: widget.store, | |
child: MaterialApp( | |
title: 'saidlty', | |
locale: _options.languageLocale, |
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
import 'dart:async'; | |
import 'package:path/path.dart'; | |
import 'package:saidlty/data/model/photo_data.dart'; | |
import 'package:saidlty/data/network_common.dart'; | |
class PhotoRepository { | |
const PhotoRepository(); | |
// method => get | |
// url => baseurl/sliders |
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
import 'dart:convert'; | |
import 'package:dio/dio.dart'; | |
import 'package:saidlty/main.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
class NetworkCommon { | |
static final NetworkCommon _singleton = new NetworkCommon._internal(); | |
factory NetworkCommon() { |
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
class Photo { | |
String createdAt; | |
String photo; | |
int id; | |
int user; | |
String updatedAt; | |
Photo({ | |
this.createdAt = "", | |
this.photo = "", |
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
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `subregions` | |
-- | |
CREATE TABLE IF NOT EXISTS `subregions` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`region_id` int(10) unsigned DEFAULT NULL, | |
`name` varchar(45) DEFAULT NULL, |
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
-- | |
-- Table structure for table `regions` | |
-- | |
CREATE TABLE IF NOT EXISTS `regions` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`iso` varchar(45) DEFAULT NULL, | |
`iso3` varchar(45) DEFAULT NULL, |
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
-- https://en.wikipedia.org/wiki/List_of_country_calling_codes | |
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, |
Moved to git repository: https://github.com/denji/nginx-tuning
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.