Skip to content

Instantly share code, notes, and snippets.


Timothy Gu TimothyGu

View GitHub Profile
# Saucy
sudo apt-get install gdebi synaptic
sudo apt-get install i965-va-driver libva* vainfo
# Remove Ubuntu One
killall ubuntuone-login ubuntuone-preferences ubuntuone-syncdaemon
sudo rm -rf ~/.local/share/ubuntuone
rm -rf ~/.cache/ubuntuone
View convert_xv_flv.c
// xv2flv
// Found on
#include <stdio.h>
#include <stdlib.h>
int convert_file(char *szSourceFile, int bIsFastConv)
char szNewFileName[256] = {0};
int buffer[0x400];
TimothyGu / log.log
Created Jul 16, 2014
BBB's IRC lesson
View log.log
19:39 <BBB> intra prediction is taking edge pixels to predict a block’s content
19:39 <Timothy_Gu_> what is a block?
19:39 <Timothy_Gu_> a part of a frame?
19:39 <Timothy_Gu_> what is a macroblock? a group of blocks?
19:40 <BBB> the base subdivision unit of a frame in which the actual video content is coded
19:40 <BBB> for h264, 16x16 is the base block unit size
19:40 <Timothy_Gu_> ok
19:40 <BBB> vp8 same
19:40 <BBB> vp9/hevc it’s 64x64 -> 8x8 (with 4x4 support throug some hacks)
19:40 <Timothy_Gu_> huh?

DO = a DigitalOcean box with 2 CPUs, SSD, and 2 GB RAM.

IP = an IdeaPad with Intel Core i5-2450M (2 cores, 4 threads), 5400-rpm hard disk, and 4 GB RAM.

Both running Ubuntu 14.04. Building make MXE_TARGETS='i686-w64-mingw32.shared' gcc.

Results for DO

JOBS (total) -j→ | 1 | 2


Benchmark info

Benchmark done with:

This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
# Copyright (c) 2014 Tiancheng "Timothy" Gu
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject
View haiku.profile
function hps { cd /boot/home/haikuports; git grep $1}
export -f inrecipe
alias hp="haikuporter -S -j2 --no-dependencies --no-source-packages"
View jade.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Chapter18.tgnotes
Chapter 18: The Atlantic System and Africa
I. Plantation in the West Indies
Plantations in the West Indies first started out to be successful tobacco
growers, but soon transitioned to sugar cane, a crop more fit for the
A. Colonization Before 1650

GCI Haikuporter Packaging Reflection

Tiancheng "Timothy" Gu


Prior to GCI 2014, I already have some experiences in packaging because my involvement in the [MXE][1] project. The way haikuports operates is very similar to MXE (which uses a makefile-based system), so it was not extremely hard for me get started in the packaging fun.

You can’t perform that action at this time.