Skip to content

Instantly share code, notes, and snippets.

@HungHuynh
HungHuynh / fbme.py
Created May 20, 2019 09:36 — forked from espeed/fbme.py
Facebook Graph API Example in Python
# Facebook Graph API Example in Python
# by James Thornton, http://jamesthornton.com
# Facebook API Docs
# https://developers.facebook.com/docs/graph-api/using-graph-api#reading
# Get Your Facebook Access Token Here...
# https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me
# Before running this script...

Module 1: Create cluster

Start with minikube

minikube version

minikube start

Start with kubectl

Organization name: leexij@gmail.com
Serial Key: eNrzzU/OLi0odswsqslJTa3IzHJIz03MzNFLzs+tMTQyNrcwsTQyAIEa5xpDAIFxDy8k
@HungHuynh
HungHuynh / tmux.conf
Created October 26, 2018 08:18 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@HungHuynh
HungHuynh / pipeline.sh
Created October 25, 2018 10:13 — forked from caroso1222/pipeline.sh
Jenkins pipeline sample
#!/usr/bin/env groovy
node {
def app
stage("Clone") {
git 'https://github.com/caroso1222/ast-viewer.git'
}
stage("Build") {
@HungHuynh
HungHuynh / app.js
Created September 11, 2018 05:40 — forked from zyxar/app.js
WebRTC <-> SIP <-> WebRTC
var express = require('express');
var app = express();
app.configure(function () {
"use strict";
app.use(express.logger('dev'));
app.use(express.static(__dirname + '/public'));
});
app.use(function (req, res, next) {
@HungHuynh
HungHuynh / asterisk_webrtc.md
Created September 10, 2018 07:33 — forked from paneru-rajan/asterisk_webrtc.md
[Configure Asterisk with webrtc support] Setting up asterisk for webrtc #asterisk #webrtc #sipml5 #configuration

Setting up Asterisk for webrtc

To set up with sipml5 I had been through the asterisk offiial site and I do recommand you to visit it.

We need to update several config file which are located on /etc/asterisk. Those filename are listed below

  1. modules.conf
  2. extensions.conf
  3. http.conf
  4. pjsip.conf
  5. rtp.conf
@HungHuynh
HungHuynh / centos_python_env_setup
Created May 19, 2017 11:42 — forked from floer32/centos_python_env_setup
CentOS 6: Install Python 2.7.4, pip, virtualenv, and virtualenvwrapper on CentOS (plus some bonus items at the end if you want). You should probably run with `sudo`.
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
#!/bin/bash
#
# btsync Start up the btsync server daemon
#
# chkconfig: 2345 55 25
# description: btsync is like this sync thing. Google it.
#
# processname: btsync
# config: /etc/btsync.conf
# pidfile: /var/run/btync/btsync.pid
(ns your-app.app
(:require
[matchbox.core :as m]
[rum.core :as rum]))
(enable-console-print!)
(def root (m/connect "https://student-realestate.firebaseio.com"))
(m/auth-anon root)