Metadata in PDF files can be stored in at least two places:
- the Info Dictionary, a limited set of key/value pairs
- XMP packets, which contain RDF statements expressed as XML
#ifndef lint | |
static char sccsid[] = "@(#)gzcompat.c 5.2 (Berkeley) 12/21/00"; | |
#endif | |
/* gzcompat converts between compress -s and gzip formats. */ | |
#include <stdio.h> | |
char magic_strong[2] = {037, 0241}; | |
char magic_gzip[2] = {037, 0213}; |
/* Copyright (C) 2001 by First Peer, Inc. All rights reserved. | |
** | |
** Redistribution and use in source and binary forms, with or without | |
** modification, are permitted provided that the following conditions | |
** are met: | |
** 1. Redistributions of source code must retain the above copyright | |
** notice, this list of conditions and the following disclaimer. | |
** 2. Redistributions in binary form must reproduce the above copyright | |
** notice, this list of conditions and the following disclaimer in the | |
** documentation and/or other materials provided with the distribution. |
// this code fragment shows how to print a stack trace (to stderr) | |
// on Linux using the functions provided by the GNU libc | |
#include <execinfo.h> | |
#define MAX_STACK_LEVELS 50 | |
// helper-function to print the current stack trace | |
void print_stacktrace() | |
{ |
#! /usr/bin/env python | |
import fileinput | |
import argparse | |
from operator import itemgetter | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int) | |
parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+') | |
args = parser.parse_args() |
git checkout "`git rev-list master -n 1 --first-parent --before=2008-03-02`" |
require 'formula' | |
class Aquaterm < Formula | |
homepage 'https://github.com/AquaTerm/AquaTerm' | |
url 'https://github.com/AquaTerm/AquaTerm/tarball/tempv1.1.1a' | |
md5 'a91bd7c6fc188fb33d2f1684eed600fd' | |
version '1.1.1' | |
head 'https://github.com/AquaTerm/AquaTerm.git', :using => :git |
#import <pthread.h> | |
#import <mach/thread_act.h> | |
// These two functions are declared in mach/thread_policy.h, but are commented out. | |
// They are documented here: https://developer.apple.com/library/mac/#releasenotes/Performance/RN-AffinityAPI/_index.html | |
kern_return_t thread_policy_set( | |
thread_t thread, | |
thread_policy_flavor_t flavor, | |
thread_policy_t policy_info, | |
mach_msg_type_number_t count); |