Original by chriscook8 from esp8266.com I just modified to use ESP8266WebServer library for easy to handle the http request.
This is sample code not yet complete.
- when Wifi connected need to close the softAP.
#!/bin/bash | |
# ---------------- | |
AS= | |
SUBNET= | |
ROUTER_ID= | |
GATEWAY_IP= | |
SUBNET_v6= | |
GATEWAY_IP_v6= | |
SNMP_IP= |
#!/usr/bin/env python3 | |
import subprocess | |
import json | |
import os | |
from pathlib import Path | |
import requests | |
from requests.compat import urljoin |
#!/bin/bash | |
# IPv6 Tunnel setup of an tunnelbroker.net tunnel on Linux using the configuration file `/etc/network/interfaces` | |
# (needs the `ip` tool from the iproute suite, Ubuntu package: <http://packages.ubuntu.com/iproute>) | |
# | |
# Run like this: | |
# ./tunnelbroker-net.linux.etc-network-interfaces.sh | |
# | |
# 2011 by Philipp Klaus | |
# Published on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-tunnel-setup-on-ubuntu-11-04/> |
######################################################################### | |
# ================================================== # | |
# $ Mikrotik RouterOS update script for CloudFlare $ # | |
# ================================================== # | |
# # | |
# - You need a CloudFlare account & api key (look under settings), # | |
# a zone and A record in it # | |
# - All variables in first section are obvious, except CFid, # | |
# To obtain CFzoneid use following command in any unix shell: # | |
# curl -X GET "https://api.cloudflare.com/client/v4/zones" -H "X-Auth-Email: YOUR_EMAIL" -H "X-Auth-Key: YOUR_API_KEY" -H "Content-Type: application/json" | python -mjson.tool |
#!/bin/bash | |
# Setup encrypted IPv4 tunnel over IPv4 or IPv6 on two Linux nodes using SSH for tunnel setup. | |
# Requires only ipsec-tools, iproute2, ssh and necessry kernel modules locally and remotely. | |
# Warning: it flushes IPsec settings both locally and remotely. | |
# Don't use with other IPsec tunnnels. | |
# Sample usage: | |
# simplevpn -6 fc::1 fc::2 ssh -T root@fc::2 |
/// <reference path="../tsd/tsd.d.ts" /> | |
import mongoose = require('mongoose'); | |
import passport = require('passport'); | |
interface IUser extends mongoose.Document { | |
provider: string; | |
id: string; | |
authorId: string; | |
displayName: string; |
import * as mongoose from 'mongoose'; | |
export let Schema = mongoose.Schema; | |
export let ObjectId = mongoose.Schema.Types.ObjectId; | |
export let Mixed = mongoose.Schema.Types.Mixed; | |
export interface IHeroModel extends mongoose.Document { | |
name: string; | |
power: string; |
#include <stdint.h> | |
#include <avr/interrupt.h> | |
#include <avr/wdt.h> | |
byte sample = 0; | |
boolean sample_waiting = false; | |
byte current_bit = 0; | |
byte result = 0; | |
void setup() { |
//[email protected] wrote this file | |
/* | |
2 bytes string 1 byte string 1 byte | |
----------------------------------------------- | |
RRQ/ | 01/02 | Filename | 0 | Mode | 0 | | |
WRQ ----------------------------------------------- | |