Skip to content

Instantly share code, notes, and snippets.

Avatar
🍕
🍕 🍕 🍕 🍕 🍕 🍕 🍕 🍕 🍕

Greg Mann greggomann

🍕
🍕 🍕 🍕 🍕 🍕 🍕 🍕 🍕 🍕
  • Mesosphere
  • Berkeley, CA
View GitHub Profile
View gist:5404d134b246a6b5fd5a34e4e9dfd412
{
"id": "/test-pod",
"labels": {},
"version": "2016-09-29T17:26:51.984Z",
"user": null,
"environment": {},
"containers": [
{
"name": "healthTask1",
"exec": {
View gist:4e1d6a4101d4a3c52a5d9ea2571a043b
I0805 14:35:37.722849 261648384 process.cpp:2863] Resuming __gc__@127.0.0.1:61417 at 2016-08-05 21:35:37.722859008+00:00
I0805 14:35:37.722861 262721536 process.cpp:2863] Resuming reaper(756)@127.0.0.1:61417 at 2016-08-05 21:35:37.722874880+00:00
I0805 14:35:37.722932 262721536 process.cpp:2968] Cleaning up reaper(756)@127.0.0.1:61417
I0805 14:35:37.722954 262721536 process.cpp:2820] Dropping event for process help@127.0.0.1:61417
I0805 14:35:37.723021 261648384 process.cpp:2863] Resuming __gc__@127.0.0.1:61417 at 2016-08-05 21:35:37.723030016+00:00
I0805 14:35:37.723044 260575232 process.cpp:2863] Resuming system@127.0.0.1:61417 at 2016-08-05 21:35:37.723058944+00:00
I0805 14:35:37.723109 260575232 process.cpp:2820] Dropping event for process metrics@127.0.0.1:61417
I0805 14:35:37.723131 260575232 process.cpp:2820] Dropping event for process metrics@127.0.0.1:61417
I0805 14:35:37.723147 260575232 process.cpp:2820] Dropping event for process metrics@127.0.0.1:61417
I0805 14:35:37.723162 260575232 process.cpp:
@greggomann
greggomann / test-authz.py
Last active Jun 22, 2016
Tests Mesos HTTP authorization
View test-authz.py
#!/usr/bin/env python3
#
# Usage: ./test-authz.py --master=[master_ip] --agent=[agent_ip] --good-jwt=[JWT] --bad-jwt=[JWT]
import requests
import sys
# These will be used to populate the mustache variables in 'config.py'.
# Parameters under 'all' will be used for all remotes; parameters within other
# keys are used for their respective remotes only.
View README.md

Libprocess Developer Guide

Note This Developer Guide is Work in Progress.

The library libprocess provides high level elements for an actor programming style with asynchronous message-handling and a variety of related basic system primitives. Its API and implementation are written in C++.

View gist:c0489d45946270bd5d97
g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.24.0\" -DPACKAGE_STRING=\"mesos\ 0.24.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.24.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_APR_POOLS_H=1 -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" -DMESOS_HAS_PYTHON=1 -DHAVE_EVENT2_EVENT_H=1 -DHAVE_LIBEVENT=1 -DHAVE_EVENT2_THREAD_H=1 -DHAVE_LIBEVENT_PTHREADS=1 -DHAVE_OPENSSL_SSL_H=1 -DHAVE_LIBSSL=1 -DHAVE_LIBCRYPTO=1 -DHAVE_EVENT2_BUFFEREVENT_SSL_H=1 -DHAVE_LIBEVENT_OPENSSL=1 -DUSE_SSL_SOCKET=1 -I. -I../../src -Wall -Werror -DLIBDIR=\"/usr/local/lib\" -DPKGLIBEXEC
View pire.html
<!-- This code parses through the below KML mapping data and utilizes the Google Maps API to calculate -->
<!-- land areas based on these coordinates. Javascript is found at the bottom. -->
<!-- Author: Greg Mann -->
<!-- Pacific Institute for Research and Evaluation, 2011 -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>PIRE MUZ Area Calculator - 2011</title>
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA8YSnLSDuxY__9frpprJN7RStF51Xnic-R6PcLJkIG3tO2lnhJBSxTbbsH-CvLzPF6fumG8XGxt0Caw"></script>
@greggomann
greggomann / ninjutsu.cpp
Created Aug 4, 2011
Ninjutsu - Google Code Jam 2011
View ninjutsu.cpp
// This is an attempted solution to the Ninjutsu pratice problem from the Google Code Jam, 2011
// http://code.google.com/codejam/contest/dashboard?c=801485#s=p4
// Programmer: Greg Mann
// Location: Berkeley, CA
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <conio.h>
@greggomann
greggomann / dft.cpp
Created Aug 4, 2011
DFT Implementation
View dft.cpp
#include <somestuff>