Skip to content

Instantly share code, notes, and snippets.

View agungf's full-sized avatar

Agung Firdaus agungf

  • Jakarta, Indonesia
View GitHub Profile
@agungf
agungf / Instructions.md
Last active August 29, 2015 14:09 — forked from bajtos/notice.md

Build a full-stack application with LoopBack and AngularJS

LoopBack logo AngularJS logo

In this workshop, you will learn how to build a full-stack Whiskey-voting application using LoopBack and AngularJS.

@agungf
agungf / install.sh
Last active August 29, 2015 14:14 — forked from wdullaer/install.sh
# 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"
sudo apt-get update
sudo apt-get install lxc-docker -y
# Install fig
sudo sh -c "curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig"
sudo chmod +x /usr/local/bin/fig
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
untagged_containers() {
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1.
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6).
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}'
@agungf
agungf / seo.md
Last active August 29, 2015 14:17 — forked from dypsilon/seo.md