This tutorial for setting up Ubuntu Server (RPi 3B) as Wifi access point
The main steps can be listed as following:
- Install required packages
- Setup hostapd
- Setup DNSmasq
- Configure AP IP Address
| // OLD FASHION | |
| import mongoose from "mongoose" | |
| // Schema | |
| const UserSchema = mongoose.Schema({ | |
| firstName: { | |
| type: String, | |
| required: true | |
| }, | |
| lastName: String, |
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * Updated by achoisy | |
| */ | |
| function YouTubeGetID(url) { | |
| let ID = ''; | |
| const youtubeRegex = /^(http(s)?:\/\/)?((w){3}.)?youtu(be|.be)?(\.com)?\/.+/gm; | |
| if (url.match(youtubeRegex)) { |