Skip to content

Instantly share code, notes, and snippets.

View achoisy's full-sized avatar
🏠
Working from home

Alexandre Choisy achoisy

🏠
Working from home
View GitHub Profile
@achoisy
achoisy / Ubuntu_AP.md
Created May 30, 2022 23:14 — forked from ExtremeGTX/Ubuntu_AP.md
Setup Ubuntu server as Access point

Introduction

This tutorial for setting up Ubuntu Server (RPi 3B) as Wifi access point

Overview:

The main steps can be listed as following:

  1. Install required packages
  2. Setup hostapd
  3. Setup DNSmasq
  4. Configure AP IP Address
@achoisy
achoisy / model.old.js
Last active July 15, 2021 22:36
Mongoose Typescript Example
// OLD FASHION
import mongoose from "mongoose"
// Schema
const UserSchema = mongoose.Schema({
firstName: {
type: String,
required: true
},
lastName: String,
@achoisy
achoisy / youtubeID.js
Created November 7, 2018 12:21
YoutubeId extrator
/**
* 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)) {