Skip to content

Instantly share code, notes, and snippets.

View theKidOfArcrania's full-sized avatar

Henry Wang theKidOfArcrania

View GitHub Profile
@Jinmo
Jinmo / tcache-memcpy.c
Created February 15, 2019 15:27
A hard way to do memcpy
// The whole code below does container[2] = buf[0]
#include <stdio.h>
#include <stdlib.h>
#define SIZE 0x100
__attribute__((aligned(0x10)))
long container[] = {0, 0x100 + 0x11, 0};
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 9, 2024 06:43
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@mrdoob
mrdoob / RequestAnimationFrame.js
Created February 22, 2011 14:50
Provides requestAnimationFrame in a cross browser way.
/**
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish / http://paulirish.com/
*/
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||