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.
#!/usr/bin/env bash | |
set -e | |
SUBJ="/C=TW/ST=Taiwan/L=TPE/O=Goooooooooogle/OU=Goooooooooogle DevOops Team/emailAddress=reboot@goooooooooogle.com" | |
ROOT_CA_NAME=GoooooooooogleRootCA | |
ROOT_CA_DAYS=$((365*4)) | |
ROOT_CA_BITS=8192 |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
#!/opt/bin/perl | |
use warnings; | |
use strict; | |
# Copyright (c) 2013 Jon Nall, STUNTAZ!!! All rights reserved. | |
# | |
# This script is intended to be run on a Synology NAS. It attempts | |
# to determine the external IP where the NAS is connected and then | |
# checks to see if it needs to update a DNS record. The server is | |
# updated if any of these are true: |
{ | |
"packages": [ | |
{ | |
"name": "realtek", | |
"maintainer": "Realtek", | |
"websiteURL": "http://www.amebaiot.com/", | |
"email": "ameba.arduino@gmail.com", | |
"help": { | |
"online": "http://www.amebaiot.com/" | |
}, |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(8, 9); // RX, TX | |
void setup() { | |
// Open serial communications and wait for port to open: | |
Serial.begin(9600); | |
while (!Serial) { | |
; // wait for serial port to connect. Needed for native USB port only | |
} |
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink] | |
"FontLinkControl"=dword:00004000 | |
"FontLinkDefaultChar"=dword:00003000 | |
/* 平滑化(anti-alias) */ | |
/* 如果覺得開了之後字體難看,把三個Y改成N */ | |
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] | |
"ClientSideAntiAliasWithCore"="Y" | |
"ClientSideAntiAliasWithRender"="Y" | |
"ClientSideWithRender"="Y" |