Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Akash Rajguru akashrajguru

🎯
Focusing
View GitHub Profile
@akashrajguru
akashrajguru / v1-ubuntu-docker-node-apt-get.sh
Created Jan 25, 2018 — 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.
View v1-ubuntu-docker-node-apt-get.sh
###############################################################################
# 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
@akashrajguru
akashrajguru / Dockerfile
Created Jan 25, 2018 — forked from remarkablemark/Dockerfile
Install node and npm with nvm using Docker.
View Dockerfile
# set the base image to Debian
# https://hub.docker.com/_/debian/
FROM debian:latest
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
@akashrajguru
akashrajguru / ubuntu-cli-install-android-sdk.sh
Created Jan 24, 2018 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
View ubuntu-cli-install-android-sdk.sh
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
View testfile.txt
This file was created on GitHubGist
You can’t perform that action at this time.