Skip to content

Instantly share code, notes, and snippets.

View SiddheshNan's full-sized avatar

Siddhesh Nandurkar SiddheshNan

View GitHub Profile
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
@SiddheshNan
SiddheshNan / README.md
Created October 11, 2020 17:09 — forked from GilLevi/README.md
Age and Gender Classification using Convolutional Neural Networks
@SiddheshNan
SiddheshNan / getVisits.py
Created May 13, 2020 06:52
Dumb Script that GETs URL
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")
@SiddheshNan
SiddheshNan / docker-compose.yml
Last active April 16, 2020 08:24
thinger.io maker server running in snapcraft for amd64
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);
description
This section explains how to perform the process of subscription and deployment of a private Thinger.io platform server.

SERVER DEPLOYMENT

Freemium accounts are perfect for learning and testing Thinger.io platform,