For Homebrew v2.6.x and below:
brew cask install ngrok
For Homebrew v2.7.x and above:
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ESP8266httpUpdate.h> | |
#define USE_SERIAL Serial | |
#define SKETCH_NAME "app222le112122" | |
//#define LAMBDA_URL "https://xxxx.execute-api.us-east-1.amazonaws.com/prod/iot-update-handler" | |
//#define SSL_SIGNATURE "xx xx xx ... xx" |
/** | |
* ESP8266 project template with optional: | |
* - WiFi config portal - auto or manual trigger | |
* - OTA update - Arduino or web server | |
* - Deep sleep | |
* - Process timeout watchdog | |
* | |
* Copyright (c) 2016 Dean Cording <dean@cording.id.au> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
- Check rails version | |
$ rails -v | |
- To update rails | |
$ gem update rails | |
- Creating a new rails app using postgresql | |
$ mkdir rails_projects | |
$ cd rails_projects | |
$ rails new myapp --database=postgresql |
If you're writing web applications with Ruby there comes a time when you might need something a lot simpler, or even faster, than Ruby on Rails or the Sinatra micro-framework. Enter Rack.
Rack describes itself as follows:
Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.
Before Rack came along Ruby web frameworks all implemented their own interfaces, which made it incredibly difficult to write web servers for them, or to share code between two different frameworks. Now almost all Ruby web frameworks implement Rack, including Rails and Sinatra, meaning that these applications can now behave in a similar fashion to one another.
At it's core Rack provides a great set of tools to allow you to build the most simple web application or interface you can. Rack applications can be written in a single line of code. But we're getting ahead of ourselves a bit.