Skip to content

Instantly share code, notes, and snippets.

View zhangjianyu1979's full-sized avatar

jianyu zhangjianyu1979

  • china telecom
  • shanghai
View GitHub Profile
@zhangjianyu1979
zhangjianyu1979 / vlcsms.c
Last active March 4, 2019 07:59 — forked from TimSC/vlcsms.c
Using libvlc to extract raw frames and audio from media via smem
//To compile:
//cc vlcsms.c -o vlcsms -lvlc
//This source is by Tim Sheerman-Chase and it is released as public domain.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <inttypes.h>
#include <vlc/vlc.h>

Mac Homebrew (RVM/MySQL/Redis) setup

Follow the steps below to setup a local development environment:

XQuartz

Recommended to download latest XQuartz

iTerm2

#!/bin/bash
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf tmux-1.8.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
yum install gcc kernel-devel make ncurses-devel -y