caffemodel: age_net.caffemodel
caffemodel_url: https://github.com/GilLevi/AgeGenderDeepLearning/raw/master/models/age_net.caffemodel
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen *:80; | |
| listen [::]:80; | |
| listen *:443 ssl http2; |
| #include <ESP8266WiFi.h> | |
| #include <ThingESP.h> | |
| ThingESP8266 thing("username", "project_name", "device_credentials"); | |
| int LED = LED_BUILTIN; | |
| unsigned long previousMillis = 0; | |
| const long INTERVAL = 6000; |
| email/smtp/smtp_client | |
| email/ses/ses_interface | |
| email/email_interface | |
| buckets/storage/storage_interface | |
| buckets/storage/dynamodb_bucket | |
| buckeets/api/buckets_api | |
| buckets/storage/mongodb/mongodb_bucket | |
| buckets/exports/filesystem/filesystem_exports |
caffemodel: age_net.caffemodel
caffemodel_url: https://github.com/GilLevi/AgeGenderDeepLearning/raw/master/models/age_net.caffemodel
| import time | |
| import requests | |
| def getURL(): | |
| requests.get(url = 'http://example.com') | |
| try: | |
| count = input("please enter number of views to get: \n") | |
| pause = input("please enter pause time: \n") |
| version: '3.7' | |
| services: | |
| thingerServer: | |
| image: ############## | |
| container_name: thingerServer | |
| user: root | |
| volumes: | |
| - /sys/fs/cgroup:/sys/fs/cgroup:ro | |
| - /lib/modules:/lib/modules:ro | |
| tmpfs: |
| <?php | |
| error_reporting(0); | |
| session_start(); | |
| $valid_passwords = array ("user" => "pass"); | |
| $user = $_SERVER['PHP_AUTH_USER']; | |
| $pass = $_SERVER['PHP_AUTH_PW']; | |
| $valid_users = array_keys($valid_passwords); | |
| $validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]); | |
| if (!$validated) { |
| sudo apt update -y | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
| sudo apt update | |
| sudo apt install docker-ce -y | |
| sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |
| #define _DEBUG_ | |
| #include <ESP8266WiFi.h> | |
| #include <ThingerESP8266.h> | |
| #define USERNAME "" | |
| #define DEVICE_ID "" | |
| #define DEVICE_CREDENTIAL "" | |
| #define SSID "" | |
| #define SSID_PASSWORD "" | |
| ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL); |