Skip to content

Instantly share code, notes, and snippets.

@perigee
perigee / server.go
Created March 20, 2017 23:07
Simple Go restful server
package main
import (
"encoding/json"
"log"
"net/http"
"flag"
"github.com/golang/glog"

Top references

SAML2 Notes


SAML2.0 is an XML based portocol using security tokens containing assertions to pass information about a principal (ex. end user) between a SAML authority (Idp-Identity provider, for planet labs, it is MS ADFS 2012 R2), and a SAML consumer (SP-service provider, for example, plotly On-Prem side authentication). The standrad was ratified as an OASIS standard in 03/2005, which eventually may be replaced by Oauth2 based OpenID.

@perigee
perigee / barman.conf
Created September 2, 2015 21:45
barman original configuration file
; Barman, Backup and Recovery Manager for PostgreSQL
; http://www.pgbarman.org/ - http://www.2ndQuadrant.com/
;
; Main configuration file
[barman]
; Main directory
barman_home = /var/lib/barman
; System user

Emacs cheating sheet

Installation

Install the nox non-x-window version of Emacs, ex: emacs23-nox

shortcuts

@perigee
perigee / tmp.md
Last active January 14, 2016 17:56

TODO


  • coupe with the stuffs for on-perm
  • update the documentation

#Asterisk

Dockerize

  1. Asterisk with several udp ports open for simultaneously call handling
  2. Configuration files integration

MongoDB connection CDR

@perigee
perigee / Hardconfig.md
Last active August 29, 2015 14:20
Hardwares configuration, for example touchpad on laptop

#LapTop

####Touchpad off

The detail explanation can be found here

> synclient TouchpadOff=1

\

Server Settings

MQTT

  1. mqtt cluster building

Nginx

Installation (with script for ubuntu upstart, systemd for other linux)

@perigee
perigee / Streaming.md
Last active April 11, 2022 18:02
Streaming related subjects

Fundamental Information

Protocols and formats

A brief description of streaming protocols and formats here

Fantastic blog for video streaming