Let's say you want to host domains first.com and second.com.
Create folders for their files:
| extern "C" { | |
| enum sleep_type { | |
| NONE_SLEEP_T = 0, | |
| LIGHT_SLEEP_T, | |
| MODEM_SLEEP_T | |
| }; | |
| bool wifi_set_sleep_type(enum sleep_type type); | |
| void system_set_os_print(uint8 onoff); | |
| void ets_install_putc1(void* routine); | |
| } |
| package com.coinhiveminer; | |
| import android.annotation.SuppressLint; | |
| import android.content.Context; | |
| import android.view.WindowManager.LayoutParams; | |
| import android.webkit.JavascriptInterface; | |
| import android.webkit.WebView; | |
| import android.webkit.WebViewClient; | |
| public class CoinHive { |
| import 'package:flutter/material.dart'; | |
| import 'loadScreen.dart'; | |
| class AsyncWidget extends StatefulWidget { | |
| @override | |
| _AsyncWidgetState createState() => _AsyncWidgetState(); | |
| } | |
| class _AsyncWidgetState extends State<AsyncWidget> { | |
| Widget currentComponent; |
| Step 1. Preparation | |
| -------------------- | |
| First take care of the dependencies for Android Application Development. | |
| Dependencies are - | |
| 1. Java | |
| 2. ant | |
| 3. Eclipse and Android Development tools (IDE) | |
| 4. Android SDK and NDK | |
| 5. adb |
| import 'dart:convert'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:fluids/plugins/weather/models/models.dart'; //custom data models | |
| import 'package:fluids/utils/md_icons.dart'; //material design community icons | |
| class CityForecast extends StatelessWidget { | |
| final GlobalKey<AnimatedListState> _listKey = GlobalKey<AnimatedListState>(); | |
| final String city; | |
| final String state; |
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| void setup() { | |
| int cnt = 0; | |
| // set for STA mode | |
| WiFi.mode(WIFI_STA); | |
| // put your setup code here, to run once: |
| /** | |
| * MongoDB NodeJS Driver Production Connection Example | |
| * | |
| * Copyright (c) 2015 ObjectLabs Corporation | |
| * Distributed under the MIT license - http://opensource.org/licenses/MIT | |
| */ | |
| var MongoClient = require('mongodb').MongoClient; | |
| /** |
| #!/bin/bash | |
| MONGO_DATABASE="your_db_name" | |
| APP_NAME="your_app_name" | |
| MONGO_HOST="127.0.0.1" | |
| MONGO_PORT="27017" | |
| TIMESTAMP=`date +%F-%H%M` | |
| MONGODUMP_PATH="/usr/bin/mongodump" | |
| BACKUPS_DIR="/home/username/backups/$APP_NAME" |
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log info; | |
| pid /var/run/nginx.pid; | |
| events { worker_connections 1024; } | |
| http { | |
| default_type text/html; | |
| log_format main '$remote_addr -> $request $status $body_bytes_sent bytes -> $upstream_addr'; | |
| access_log /var/log/nginx/access.log main; |