Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 06:10 (UTC -07:00)
View GitHub Profile
# Saucy
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get install gdebi synaptic
sudo apt-get install i965-va-driver libva* vainfo
# Remove Ubuntu One
# http://askubuntu.com/questions/309122/removing-ubuntu-one
killall ubuntuone-login ubuntuone-preferences ubuntuone-syncdaemon
sudo rm -rf ~/.local/share/ubuntuone
rm -rf ~/.cache/ubuntuone
// xv2flv
// Found on http://hi.baidu.com/naylonslain/item/9586125a9f5979dbd58bac47
#include <stdio.h>
#include <stdlib.h>
int convert_file(char *szSourceFile, int bIsFastConv)
{
char szNewFileName[256] = {0};
int buffer[0x400];
@TimothyGu
TimothyGu / log.log
Created July 16, 2014 03:16
BBB's IRC lesson
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

@TimothyGu
TimothyGu / a.md
Last active August 29, 2015 14:08

Benchmark info

Benchmark done with:

This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
#!/bin/sh
#
# 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
function hps { cd /boot/home/haikuports; git grep $1}
export -f inrecipe
alias hp="haikuporter -S -j2 --no-dependencies --no-source-packages"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
climate.
A. Colonization Before 1650

GCI Haikuporter Packaging Reflection

Tiancheng "Timothy" Gu

Challenges

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.