Skip to content

Instantly share code, notes, and snippets.

@iondune
iondune / SafeRun.md
Last active August 29, 2015 14:02
SafeRun docs

SafeRun

Name

SafeRun - Run an executable, providing pty I/O, security against output overruns, excess runtimes, and process runaways

Usage

SafeRun [options] test_subject

@iondune
iondune / TriangleCube.cpp
Created August 11, 2014 08:49
Triangle cube puzzle solver
#include <iostream>
#include <list>
#include <vector>
#include <algorithm>
#include <cassert>
int add(int const a, int const b)
{
int val = a + b;
@iondune
iondune / DevAndBuildEnv.md
Created November 5, 2014 04:33
Development and Build Environment instructions for Capstone - Windows9

Setup Instructions

These instructions are for Ubuntu 14.04 but should work comparably in most UNIX environments.

Deployment

To deploy to the Heroku dyno, open up your .git/config file and add the following three lines:

[remote "heroku"]
@iondune
iondune / metrics.h
Last active August 29, 2015 14:14
Interface for IHV metrics
#pragma once
#include <vector>
#include <map>
#include <string>
struct ID3D11Device;
typedef unsigned __int64 uint64;
@iondune
iondune / SimpleOpenGL.cpp
Created January 28, 2015 19:28
Simple OpenGL sample using GLEW and GLFW
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <string>
void PrintOpenGLErrors(char const * const Function, char const * const File, int const Line)
{
@iondune
iondune / OpenGL.cpp
Last active January 15, 2016 08:04
Some VAO OpenGL code
void PrintShaderInfoLog(GLint const Shader)
{
int InfoLogLength = 0;
int CharsWritten = 0;
glGetShaderiv(Shader, GL_INFO_LOG_LENGTH, & InfoLogLength);
if (InfoLogLength > 0)
{
@iondune
iondune / DemoGL-01.cpp
Last active January 31, 2016 12:10
Minimal ionGraphics demo using OpenGL
#include <ionWindow.h>
#include <ionGraphics.h>
#include <ionGraphicsGL.h>
using namespace ion::Graphics;
int main()
{
@iondune
iondune / DemoGL-02.cpp
Created January 31, 2016 12:10
Slightly more advanced ionGraphics demo
#include <ionWindow.h>
#include <ionGraphics.h>
#include <ionGraphicsGL.h>
using namespace ion::Graphics;
int main()
@iondune
iondune / OpenGLDebugging.cpp
Created February 4, 2016 23:32
OpengL debugging
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, true);
void GLAPIENTRY DebugMessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * message, void const * userParam)
{
string Source = "";
string Type = "";
string Severity = "";