Skip to content

Instantly share code, notes, and snippets.

@mariobadr
mariobadr / FindWayland.cmake
Created April 26, 2017 19:07
A CMake find module for wayland
find_path(
WAYLAND_CLIENT_INCLUDE_DIR
NAMES wayland-client.h
)
find_library(
WAYLAND_CLIENT_LIBRARY
NAMES wayland-client libwayland-client
)
@mariobadr
mariobadr / X86_64-vmlinux-3.4.112
Created October 18, 2016 22:54
gem5 Linux Kernel Configuration
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.4.112 Kernel Configuration
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@mariobadr
mariobadr / game_loop.cpp
Last active March 5, 2024 22:20
A basic game loop using std::chrono
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Mario Badr
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@mariobadr
mariobadr / .tmux.conf
Last active October 10, 2020 17:58
tmux configuration
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000