Skip to content

Instantly share code, notes, and snippets.

View adegbengaagoro's full-sized avatar

Agoro, Adegbenga. B adegbengaagoro

View GitHub Profile
@adegbengaagoro
adegbengaagoro / LoginController.js
Created January 7, 2022 11:49 — forked from rogerforner/LoginController.js
AdonisJS Login (JWT): Autenticar usuario/ria por nombre de usuario, email, etc.
'use strict'
const User = use('App/Models/User')
class LoginController {
/**
* INICIAR SESIÓN
* -> formData: Obtener datos introducidos por el usuario (request).
* -> regexEmail: Regex que nos permite validar un email.
* -> user: Obtener el objeto user asociado al uid (email, nombre de usuario, etc.).
@adegbengaagoro
adegbengaagoro / .dockerignore
Created May 12, 2021 22:48 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@adegbengaagoro
adegbengaagoro / emulator-install-using-avdmanager.md
Created October 23, 2019 02:15 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

About

  • The goal of this gist is to quickly pre-install a range of system images to provide our project teams the ability to run emulators on a range of API levels, from API 19 to API 28.
    • These can be run locally or on the base build agent.
  • Note: X86 is the fastest architecture for emulators, though x86_64 would probably be better to test against because most phones are 64 bit now.
  • We create two sets of emulators here, one set with pixel hardware emulation and one set with default oem emulation.

See: Google Documentation on Start the emulator from the command line for more info

@adegbengaagoro
adegbengaagoro / v1-ubuntu-docker-node-apt-get.sh
Created June 14, 2018 23:26 — forked from garystafford/v1-ubuntu-docker-node-apt-get.sh
Install the latest versions of Node.js and npm into a Docker Ubuntu container, with or without need for root access. Easily update both applications to the latest versions. Creates a new user account ('testuser') and installs common npm packages.
###############################################################################
# Version 1: using ‘apt-get install’
# Installs using apt-get
# Requires update to npm afterwards
# Harder to get latest copy of node
# Requires sudo to use npm
###############################################################################
# create new docker ubuntu container
sudo docker run -i -t ubuntu /bin/bash # drops you into container as root