Skip to content

Instantly share code, notes, and snippets.

@HungHuynh
HungHuynh / DetailViewController.h
Created September 30, 2012 08:27 — forked from anonymous/DetailViewController.h
Simple iOS YouTube App - Use this code to put a list of videos from a YouTube user in your app.
//
// DetailViewController.h
// youtubedemo
//
// Created by Your Name on 4/24/12.
// Copyright (c) 2012 Company Name. All rights reserved.
//
#import <UIKit/UIKit.h>
@HungHuynh
HungHuynh / gist:3913977
Created October 18, 2012 18:34 — forked from andrewzimmer906/gist:3145581
Post Photo and Message wall with Facebook iOS6 SDK
// Start here https://developers.facebook.com/docs/getting-started/getting-started-with-the-ios-sdk/
// Install the Facebook SDK, get it linked up, create an app, and get that setup correctly
// in your info.plist, appDelegate, and build settings.
//Note: This example uses ARC. If you aren't using ARC, made sure to release/retain objects as needed.
//Now for the fun part.
////////////////////////////
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.
@HungHuynh
HungHuynh / boost.sh
Created March 26, 2014 01:21 — forked from rsobik/boost.sh
#===============================================================================
# Filename: boost.sh
# Author: Pete Goodliffe
# Copyright: (c) Copyright 2009 Pete Goodliffe
# Licence: Please feel free to use this, with attribution
# Modified version
#===============================================================================
#
# Builds a Boost framework for the iPhone.
# Creates a set of universal libraries that can be used on an iPhone and in the
#!/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
@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
@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 / 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 / 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 / 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