Skip to content

Instantly share code, notes, and snippets.

View mflint's full-sized avatar

Matthew Flint mflint

View GitHub Profile
@mflint
mflint / stripfatlibrary.sh
Created April 5, 2014 23:45
bash script to strip unwanted symbols from an Apple fat-binary library
#!/bin/sh
# this is the name of the problematic lib
FRAMEWORK=ActivityX.framework
LIB=ActivityX
# these are the duplicate symbols
SYMBOLS="AFURLRequestSerialization.o AFHTTPRequestOperationManager.o AFURLSessionManager.o"
# the architectures in the lib
@mflint
mflint / ThreadPool.java
Last active August 29, 2015 13:56
A simple thread pool in Java
package org.tthew.core;
import java.util.ArrayDeque;
import java.util.Queue;
public final class ThreadPool
{
public interface IThreadPool
{
void submitJob(final IJob job);