Skip to content

Instantly share code, notes, and snippets.

# Ubuntu 12.04 LTS Clang3.3 + libc++
# ==================================
# Do not use old Clang 3.0 for bootstrapping...
# which does not work.
# Perl is required in some LLVM build processes.
set -e
# apt-get sometimes exits with non-zero code even it installed successfully.
# And that makes script to halt. This is nonsense and ridiculous!
@eonil
eonil / Oracle 11g XE on CentOS 6 Pitfalls
Created November 6, 2013 00:10
Oracle 11g XE on CentOS 6 Pitfalls
# Don't trust the fucking manual about minimum requirements.
# You always need 2GB of *swap* space at least and 512MB physical RAM.
# Maybe server can run with less resources, but it fails to create initial database.
# So don't expect it to run on low-end machine.
# Configure hostname properly... Oracle fails if it cannot find the server using hostname.
# Example.
echo "127.0.0.1 oracle11g.local"
# Install requirements properly. Especially, 'bc' is undocumented dependency.
@eonil
eonil / Helper_EEGLDebugStub.h
Created August 14, 2012 20:00
Generate debugging stubs with OpenGL-ES headers.
// Example usage
// fixed and added some codes
//
#define EEGL_DEBUG_STUB_FUNC_DECORATION static
#define EEGL_DEBUG_STUB_EXCEPT_ERROR {HelperAssertGLError();}
static
void
HelperAssertGLError()