Skip to content

Instantly share code, notes, and snippets.

@ninjahoahong
ninjahoahong / install-hashicorp-vault-v1.0.3.sh
Last active March 25, 2019 14:05
Install hashicorp vault version 1.0.3 to Ubutun 18.04
#!/bin/bash -e
echo "-> Installing dependencies....."
apt-get update
apt-get upgrade -y
apt-get install -y \
apt-transport-https \
build-essential \
ca-certificates \
curl \
@ninjahoahong
ninjahoahong / install-hashicorp-vault.sh
Last active March 12, 2019 14:06
Script to install hashicorp vault to ubuntu
#!/bin/bash
set -e
VAULT_VERSION=$1
echo "-> Update and Installing dependencies....."
apt-get update
apt-get upgrade -y
apt-get install -y \

sudo -i will do a complete reset while sudo su doesn't

@ninjahoahong
ninjahoahong / googlecloud.md
Created May 15, 2018 10:39
Google Cloud Learning

Google Cloud

IAM

Cloud Launcher

  • Third party to be launch --> click to deploy to compute engine.
@ninjahoahong
ninjahoahong / opengl.md
Last active May 9, 2018 07:15
Learn OpenGL

OPENGL

Modern OpenGL

Getting started

  • When using functionality from the most recent version of OpenGL, only the most modern graphics cards will be able to run your application. This is often why most developers generally target lower versions of OpenGL and optionally enable higher version functionality
@ninjahoahong
ninjahoahong / terraform.md
Last active January 18, 2018 14:19
My DevOps notes
@ninjahoahong
ninjahoahong / class-diagram.md
Created January 4, 2018 11:21
My UML notes

Class Diagram

Definition

A class diagram models the static structure of a system. It shows relationships between classes, objects, attributes, and operations.

@ninjahoahong
ninjahoahong / Ports.md
Created January 1, 2018 12:11
My network notes
  • 443
  • 22
@ninjahoahong
ninjahoahong / angular-5-note.md
Last active December 29, 2017 14:33
My Angular X notes

Folders

  • Root folder: contains config files and the src and e2e folder
  • src folder: main app code
  • e2e folder: for end to end testing the main app

Useful concepts

  • ngRx/store

My choice of code editors

  • Visual Studio Code
@ninjahoahong
ninjahoahong / jmonkey-notes.md
Created December 17, 2017 16:58
My JMonkey notes

Input

  • 2 types of action: digital action (on/off) input and analog input (gradually repeated).