Skip to content

Instantly share code, notes, and snippets.

View akash-rajput's full-sized avatar

Akash Rajput akash-rajput

View GitHub Profile
const sizeof = require("object-sizeof");
class ABC {
constructor() {
this.data = "asdd";
this.iMethod = this.iMethod.bind();
}
iMethod() {
console.log("instance method called");
}
@akash-rajput
akash-rajput / docker_init_lightsail.sh
Created March 5, 2019 14:06 — forked from OrthoDex/docker_init_lightsail.sh
Initialization script for AWS Lightsail to run docker.
sudo apt-get update
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
sudo usermod -aG docker ubuntu
export LC_ALL=C
sudo apt-get -y install python-pip
sudo pip install docker-compose