Skip to content

Instantly share code, notes, and snippets.

View begueradj's full-sized avatar
💭
Testing is the process of executing a program with the intent of finding errors.

Billal BEGUERADJ begueradj

💭
Testing is the process of executing a program with the intent of finding errors.
View GitHub Profile
@begueradj
begueradj / gist:89d806693003ed4a5003c36c8387d9dd
Last active January 28, 2019 08:09
Installing Node.js with NVM on Ubuntu 18.04 LTS

Install Nodes.js with NVM:

  1. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
  2. source ~/.bashrc
  3. nvm install v11.8.0

Install Yarn

  1. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  2. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  3. sudo apt-get update
  4. sudo apt-get install upgrade
  5. sudo apt install --no-install-recommends yarn # because Node.js is already installed
@begueradj
begueradj / FileUpload.js
Created August 6, 2019 16:57 — forked from un-versed/FileUpload.js
AdonisJs file upload to S3
const { ServiceProvider } = require('@adonisjs/fold')
const path = require('path')
const fs = require('fs')
const Drive = use('Drive')
const Helpers = use('Helpers')
class FileUpload extends ServiceProvider {
register () { }
boot () { }