Skip to content

Instantly share code, notes, and snippets.

/* Example of a library interposer: interpose on malloc().
* gcc -D_GNU_SOURCE -fPIC -O2 -Wall -o malloc_interposer.so -shared malloc_interposer.c -ldl
* setenv LD_PRELOAD $cwd/malloc_interposer.so
* run the app
*/
#include <stdio.h>
#include <dlfcn.h>
#include <string.h>
<?xml version="1.0" ?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title><![CDATA[Airplane Flying Handbook FAA-H-8083-3A - Vol. 1 by Federal Aviation Administration (1958 - )]]></title>
<link><![CDATA[https://librivox.org/airplane-flying-handbook-faa-h-8083-3a-vol-1-by-federal-aviation-administration/]]></link>
<description><![CDATA[This audiobook contains chapters 1 through 10 from the Airplane Flying Handbook FAA-H-8083-3A. Study of the handbook should include the PDF from the FAA, which is available at http://www.faa.gov/regulations_policies/handbooks_manuals/. From the preface: "The Airplane Flying Handbook is designed as a technical manual to introduce basic pilot skills and knowledge that are essential for piloting airplanes. It provides information on transition to other airplanes and the opera
# Spicy Gochujang Glazed Pork Chops
Ingredients
- 4 teaspoons gochujang paste
- 4 teaspoons white miso (or substitute red miso)
- 1 tablespoon soy sauce
- 1 tablespoon maple syrup
- 1 tablespoon orange juice
- 1 garlic clove, minced
- 1 teaspoon kosher salt
Thai Hot and Sour Noodle Soup with Shrimp
Ingredients
- 2 ounced rice vermicelli
- 1 lemon grass stalks, trimmed to bottom, 6 inches
- 2 scallions, trimmed, white parts left whole, greed parts cut into 1 inch lengths
- 3 makrut lime leaves, torn if large (sometimes sold as kaffir lime leaves)
- 0.5 thai chiles, stemmed, left whole
- 0.5 thai chiles, stemmed, sliced thin
- 1.5 thai chiles, stemmed, sliced thin, for serving
Beet Salad with Goat Cheese and Argulua
Ingredients
- 2 pounds beets, trimmed, peeled and cut into 3/4 in pieces
- 1/2 teaspoon plus 1/8 teaspoon plus 2 pinches table salt, divided
- 4 ounces goat cheese, crumbled (about 1 cup)
- 1 tablespoons plus 1 tablespoon minced chives, divided
- 1/2 teaspoon grated lemon zest
- 5 teaspoons lemon juice plus extra for seasoning
- 1/2 teaspoon caraway seeds
using namespace std;
#include<iostream>
#include<cmath>
#include<iomanip>
void readit(int);
void calcit(int, float, int, int);
int writeit(float, float, float, float, int, int);
int GetNumber(string Give) {
#include <utility>
int main() {
std::pair<int, volatile long> x(3, 4);
}
class X {
public:
X() {
this->val = rand();
}
int val;
};
static X global_value;
class X {
public:
X() {
this->val = rand();
}
int val;
};
static X global_value;
@sharth
sharth / gist:2997272
Created June 26, 2012 17:31
Valgrind fails to build
[12:26pm][wlynch@watermelon ~] brew install valgrind
==> Downloading http://valgrind.org/downloads/valgrind-3.7.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/valgrind-3.7.0.tar.bz2
==> ./configure --prefix=/Users/wlynch/Homebrew/Cellar/valgrind/3.7.0 --mandir=/Users/wlynch/Homebrew/Cellar/valgrind/3.7.0/share/man --enable-only64bit --build=amd64-darwin
==> make
echo "# This is a generated file, composed of the following suppression rules:" > default.supp
echo "# " exp-sgcheck.supp xfree-3.supp xfree-4.supp darwin10-drd.supp darwin11.supp >> default.supp
cat exp-sgcheck.supp xfree-3.supp xfree-4.supp darwin10-drd.supp darwin11.supp >> default.supp
make all-recursive
Making all in include