Skip to content

Instantly share code, notes, and snippets.

View pngan's full-sized avatar

Phillip Ngan pngan

  • 01:53 (UTC +12:00)
View GitHub Profile

Containers and Orchestration

Traditional Server Deployment

  • All resources are located on physical servers
  • Don't know how many servers to provision

image

@pngan
pngan / cheatsheet-github-markdown.md
Last active May 12, 2018 01:45
Cheatsheet for github markdown

Heading 1

Heading 2

# Heading 1
## Heading 2

Use the code this.IsCode() to find code.

@pngan
pngan / cheatsheet-juypter.md
Last active May 12, 2018 02:02
Cheatsheet for juypter notebooks

Command Mode

Keyboard Shortcut Action
Enter enter edit mode
Ctrl+Enter Run cell
Alt+Enter Run cell and insert below
A/B Insert cell above/below
D,D Delete selected cells
Ctrl+S Save
H Show keyboard shortcuts
@pngan
pngan / gist:c022c1c2152d27fd55a580bf3e4d872a
Created February 28, 2018 18:22
Download audio using javascript and playing in an audio instance
<html>
<head>
<script>
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://pn.tpagent.eilabonline.biz:8957/api/v1/recordingstream/audios/57defc71-6faf-4c98-95fb-06fe1b6acb92");
xhr.setRequestHeader("Authorization", "Bearer <token>");
xhr.responseType = 'blob';
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
console.log("got data");
@pngan
pngan / service-fabric-provisioning.md
Last active April 17, 2025 09:30
This is step by step guide to provision an Azure Service Fabric using PowerShell.

Service Fabric Provisioning

This is step by step guide to provision an Azure Service Fabric using PowerShell.

Prerequisites

  • Windows 7 or later
  • Administrator privileges