Skip to content

Instantly share code, notes, and snippets.


Timur Kristóf Venemo

  • Budapest, Hungary
View GitHub Profile
Venemo /
Last active Dec 22, 2020
How to build and use mesa from source

Building and using mesa for development and testing

This explains how to build mesa from source, and how to use the custom built mesa to run some apps and games, without needing to replace the mesa libraries that your operating system runs on.

Let's assume that you are using an x86_64 system.

Install dependencies

This is how to install them on Fedora. You can substitute with other distros' package managers, the packages are named similarly but maybe have a different naming convention (eg. -dev vs. -devel, etc.).

View contiguous array
* Collection that stores the number of elements and the actual elements
* in a contiguous chunk of memory, making it ideal for a number of use cases.
template<typename T>
class Array final {
bool ownsData;
void *data;
Venemo / fileserver.js
Created Aug 1, 2014
Simple Node.js file server
View fileserver.js
// Very simple Node.js file server by Timur Kristóf
var http = require('http');
var url = require('url');
var fs = require('fs');
var mime = require('mime');
// Figure out port number