Skip to content

Instantly share code, notes, and snippets.

💭
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.
Block or report user

Report or block begueradj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@begueradj
begueradj / FileUpload.js
Created Aug 6, 2019 — forked from un-versed/FileUpload.js
AdonisJs file upload to S3
View FileUpload.js
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 () { }
@begueradj
begueradj / gist:89d806693003ed4a5003c36c8387d9dd
Last active Jan 28, 2019
Installing Node.js with NVM on Ubuntu 18.04 LTS
View gist:89d806693003ed4a5003c36c8387d9dd

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
You can’t perform that action at this time.