Skip to content

Instantly share code, notes, and snippets.

View ramitsurana's full-sized avatar

Ramit Surana ramitsurana

View GitHub Profile
@ramitsurana
ramitsurana / rkt-gc
Created July 7, 2016 15:55
Steps to use Garbage collection method on rkt
# Using Garbage collection method in rkt
# Check the list of containers
rkt list
# Collecting Garbage collection
rkt gc
# Deleting the not used containers
rkt gc --grace-period=0
@ramitsurana
ramitsurana / rkt-setup
Last active July 7, 2016 15:53
Some commands and setup method for using rkt
# Commands to setup rkt
# Installing rkt
wget https://github.com/coreos/rkt/releases/download/v1.0.0/rkt-v1.0.0.tar.gz
tar xfv rkt-v1.0.0.tar.gz
alias rkt="sudo '${PWD}/rkt-v1.0.0/rkt'"
# Running alpine container from quay.io registry
rkt run --interactive quay.io/coreos/alpine-sh
@ramitsurana
ramitsurana / install.sh
Created May 20, 2016 06:57 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@ramitsurana
ramitsurana / active.md
Last active August 29, 2015 14:19 — forked from paulmillr/active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Thu, 03 Apr 2014 02:35:55 GMT till Fri, 03 Apr 2015 02:35:55 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -> user.followers > 386)