Skip to content

Instantly share code, notes, and snippets.

@chris-zen
chris-zen / Sphere.cpp
Created September 4, 2016 19:59 — forked from zwzmzd/Sphere.cpp
[OpenGL] An example to draw a sphere with vao and vbo
#include "sphere.h"
#include <vector>
#include <iostream>
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
Sphere::Sphere()
{
@chris-zen
chris-zen / install-docker.sh
Created July 20, 2018 22:19 — forked from brianz/install-docker.sh
Install docker on Amazon Linux
#!/bin/bash
#
# steps taken verbatim from:
# http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker
#
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# log out and log in to pickup the added group
sudo softwareupdate --fetch-full-installer
/Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall \
--eraseinstall --agreetolicense --nointeraction